Package com.singularsys.jep.configurableparser.matchers

This package contains matchers for tokens and grammar elements.

See:
          Description

Interface Summary
GrammarMatcher Interface defining matchers for custom grammatical elements.
TokenBuilder Sub-interface of TokenMatcher which allows tokens to be created without matching input text.
TokenMatcher Interface defining classes which match tokens
 

Class Summary
ArrayAccessGrammarMatcher Matches syntax for array element access a[3].
CommentTokenMatcher Matches various styles of comments.
FunctionGrammarMatcher A GrammarMatcher which matches functions in the form 'atan2(y,x)'.
HexNumberTokenMatcher Matches hexadecimal numbers, in the format 0xff.
IdentifierTokenMatcher Matches identifiers: variables or function names.
ListGrammarMatcher A GrammarMatcher which matches lists of items.
ListOrBracketGrammarMatcher A GrammarMatcher which matches overloaded lists of items or brackets.
MultiLineMatcher Matches tokens which span multiple lines of the input.
NumberTokenMatcher Matches numbers.
OperatorTokenMatcher TokenMatcher for matching operators from the operator set.
RegExpTokenMatcher An abstract TokenMatcher which uses RegExp patterns to match patterns.
RoundBracketGrammarMatcher A GrammarMatcher which matches bracketed expressions.
StringTokenMatcher Base class for matching quoted strings.
StringTokenMatcher2 Base class for matching quoted strings.
SymbolTokenMatcher Matches a fixed set of symbols, each represented by a SymbolToken.
TerminatorTokenMatcher A token matcher which matches the end of an expression
UpperCaseOperatorTokenMatcher A case insensitive operator token matcher.
WhiteSpaceTokenMatcher Matches whitespace.
 

Exception Summary
GrammarException Signals grammatical errors.
 

Package com.singularsys.jep.configurableparser.matchers Description

This package contains matchers for tokens and grammar elements.

TokenMatchers

The following classes implement the TokenMatcher interface and are responsible for matching various elements in the input .

Comments
CommentTokenMatcher contains static factory methods for matching various styles of comments.
Whitespace
WhiteSpaceTokenMatcher.defaultWhiteSpaceTokenMatcher() matches standard white space characters.
Strings
StringTokenMatcher contains static factory methods for matching single and double quoted string.
Numbers
NumberTokenMatcher contains static factory methods for matching single and double quoted string.
Identifiers
IdentifierTokenMatcher is the basic class for matching variable and function names. Static factory methods are provided to match specific type of input.
Operators
OperatorTokenMatcher a token matcher which matches operators specified in the OperatorTable.
Symbols
SymbolTokenMatcher matches other symbols used by the parser.

See Also:
Token, Tokenizer


Copyright © 2010 Singular Systems http://www.singularsys.com/jep