Package Martel :: Module Expression
[show private | hide private]
[frames | no frames]

Module Martel.Expression

Classes for nodes in the Expression tree.

Expression
 |--- Any           - match (or don't match) a set of characters
 |--- AnyEol        - match any newline representation ("
", "
" or "
")
 |--- Assert        - used for positive and negative lookahead assertions 
 |--- AtBeginning   - match the beginning of a line
 |--- AtEnd         - match the end of a line
 |--- Debug         - print a debug message
 |--- Dot           - match any character except newline
 |--- Group         - give a group name to an expression
 |--- GroupRef      - match a previously identified expression
 |--- Literal       - match (or don't match) a single character
 |--- MaxRepeat     - greedy repeat of an expression, within min/max bounds
 |--- NullOp        - does nothing (useful as an initial seed)
 |--- PassThrough   - used when overriding 'make_parser'; match its subexp
 |      |--- FastFeature  - keeps information about possibly optional tags
 |      |--- HeaderFooter - files with a header, records and a footer
 |      `--- ParseRecords - parse a record at a time
 |--- Str           - match a given string
 `--- ExpressionList  - expressions containing several subexpressions
        |--- Alt    - subexp1 or subexp2 or subexp3 or ...
        `--- Seq    - subexp1 followed by subexp2 followed by subexp3 ...

Classes
Alt An Expression tree with a list of alternate matches.
Any  
AnyEol Match a newline (" ", " " or " ")
Assert  
AtBeginning Match the beginning of a line
AtEnd Match the end of a line
Debug  
Dot Match any character except newline
Expression Base class for nodes in the Expression tree
ExpressionList shares implementation used by 'Expressions with subexpressions'
FastFeature  
Group  
GroupRef  
HeaderFooter  
Literal  
MaxRepeat  
NullOp  
ParseRecords  
PassThrough  
Seq An Expression matching a set of subexpressions, in sequential order
Str  

Function Summary
  escape(pattern)
Escape all non-alphanumeric characters in pattern.
  NoCase(expr)
expression -> expression where the text is case insensitive

Variable Summary
int MAXREPEAT = 65535                                                                 

Function Details

escape(pattern)

Escape all non-alphanumeric characters in pattern.

NoCase(expr)

expression -> expression where the text is case insensitive

Variable Details

MAXREPEAT

Type:
int
Value:
65535                                                                 

Generated by Epydoc 2.1 on Thu Mar 31 20:15:38 2005 http://epydoc.sf.net