CTTL Home http://cttl.sourceforge.net/

Common Text Transformation Library
Version 3.01


SourceForge.net Logo cttl on
sourceforge
download
latest
cttl
docs
index
api
lambda
docs
index
api
utils
api
sponsor
c-jump.com

  1. Alphabetical Index
  2. Substrings
    1. Logical input position: cttl::node
    2. node::find_class() and node::rfind_class()
    3. Substring classes const_edge and edge

  3. EBNF grammars
    1. Lexer design
    2. Lexical analysis interface
    3. Stateless lexer example
    4. match: pattern matching
    5. find: terminal symbol search
    6. bang_find: non-terminal symbol search

  4. Space policy classes
    1. Predefined space policy classes
    2. Void regions
    3. Stream parsers

  5. Parser design
    1. Production rule functions
    2. Strict-mode grammar evaluation
    3. Semantic actions

  6. Text transformations
    1. Mutable substring example

  7. CTTL grammar tutorial
  8. Grammar debugging and tracing
    1. Trace output format

  9. Grammar reference
  10. Regular expression pattern map
  11. Lexemes
    1. Lexeme symbol()
    2. Lexeme entity()
    3. Lexeme begin()
    4. Lexeme end()
    5. Lexeme symbol(true)
    6. Lexeme symbol(false)
    7. Lexeme begin(true)
    8. Lexeme begin(false)
    9. Lexeme begin(std::set)
    10. Lexeme symbol(char) and entity(char)
    11. Lexeme begin(char)
    12. Lexeme end(char)
    13. Lexeme entity(is...)
    14. Lexeme begin(is...)
    15. Lexeme end(is...)
    16. Lexeme first(is...)
    17. Lexeme symbol(text)
    18. Lexeme entity(text)
    19. Lexeme begin(text)
    20. Lexeme end(text)
    21. Lexeme first(text)
    22. literal() and wchar_literal() metaphors

  12. C++ function adaptors
    1. rule() function adaptor
    2. CTTL_STATIC_RULE() function adaptor
    3. CTTL_MEMBER_RULE() function adaptor
    4. CTTL_RULE() function adaptor

  13. Grammar expression adaptors
    1. begin(R) positive lookahead assertion
    2. node(R) expression adaptor
    3. edge(R) expression adaptor
    4. entity(R) grammar expression adaptor

  14. Quotes
    1. Quote evaluation rules
    2. quote(RL,RM,RR) generic quote
    3. quote(true,RM,RR) asymmetric quote
    4. quote(char,RM,char) single character quote
    5. wchar_quote(wchar_t,RM,wchar_t) single wide character quote
    6. ansi_single_quote(RM) ANSI single quote
    7. ansi_double_quote(RM) ANSI double quote
    8. c_single_quote(RM) C single quote
    9. c_double_quote(RM) C double quote
    10. wchar_ansi_single_quote(RM) wide char ANSI single quote
    11. wchar_ansi_double_quote(RM) wide char ANSI double quote
    12. wchar_c_single_quote(RM) wide char C single quote
    13. wchar_c_double_quote(RM) wide char C double quote
    14. Quote search parser example

  15. Overloaded operators
    1. Search operators
      1. !R, terminal symbol search operator
      2. !!R, non-terminal symbol search operator

    2. Kleene quantifiers
      1. *R, zero or more matches
      2. R*N, zero to N matches
      3. +R, one or more matches
      4. R+N, one to N matches
      5. R+pair(N,M), N to M matches
      6. R+pair(N,npos), exactly N matches

    3. Sequence operators
      1. R1+R2, binary sequence operator
      2. R1^R2, binary concatenation operator

    4. Assertions
      1. lookbehind(R1,R2) positive lookbehind assertion
      2. lookbehind example: CSV to XML conversion
      3. -R, negative lookahead assertion

    5. Logical set operators
      1. R1-R2, binary set complement
      2. R1&R2, binary set intersection operator
      3. R1|R2, binary set union operator
      4. R1||R2, binary POSIX union operator

  16. Utility functions, classes, and programs
    1. Case-insensitive string
    2. Source code generation
    3. Filename and path parser example
    4. Number to words conversion
    5. File offset to line number conversion


Copyright © 1997-2009 Igor Kholodov mailto:cttl@users.sourceforge.net.

Permission to copy and distribute this document is granted provided this copyright notice appears in all copies. This document is provided "as is" without express or implied warranty, and with no claim as to its suitability for any purpose.