This package contains matchers for tokens and grammar elements.
TokenMatchers
The following classes implement the {@link com.singularsys.jep.configurableparser.matchers.TokenMatcher} interface and are responsible for matching
various elements in the input .
- Comments
- {@link com.singularsys.jep.configurableparser.matchers.CommentTokenMatcher} contains static factory methods for matching various styles of comments.
- {@link com.singularsys.jep.configurableparser.matchers.CommentTokenMatcher#hashCommentMatcher} match single line comments starting #
- {@link com.singularsys.jep.configurableparser.matchers.CommentTokenMatcher#slashSlashCommentMatcher} match single line comments starting //
- {@link com.singularsys.jep.configurableparser.matchers.CommentTokenMatcher#slashStarCommentMatcher} matches a single line java style /* ...*/ comment
- {@link com.singularsys.jep.configurableparser.matchers.CommentTokenMatcher#multiLineSlashStarCommentMatcher} matches a multi-line line java style /* ...*/ comment
- Whitespace
- {@link com.singularsys.jep.configurableparser.matchers.WhiteSpaceTokenMatcher#defaultWhiteSpaceTokenMatcher} matches standard white space characters.
- Strings
- {@link com.singularsys.jep.configurableparser.matchers.StringTokenMatcher} contains static factory methods for matching single and double quoted string.
- {@link com.singularsys.jep.configurableparser.matchers.StringTokenMatcher#doubleQuoteStringMatcher} matches double quoted strings " ... "
- {@link com.singularsys.jep.configurableparser.matchers.StringTokenMatcher#singleQuoteStringMatcher} matches single quoted strings ' ... '
- Numbers
- {@link com.singularsys.jep.configurableparser.matchers.NumberTokenMatcher} contains static factory methods for matching single and double quoted string.
- {@link com.singularsys.jep.configurableparser.matchers.NumberTokenMatcher#defaultNumberTokenMatcher} matches decimal numbers 123.456 without an exponent.
- {@link com.singularsys.jep.configurableparser.matchers.NumberTokenMatcher#exponentNumberTokenMatcher} matches decimal numbers 1.23456e2 with or without an exponent.
- Identifiers
- {@link com.singularsys.jep.configurableparser.matchers.IdentifierTokenMatcher} is the basic class for matching variable and function names. Static factory methods
are provided to match specific type of input.
- {@link com.singularsys.jep.configurableparser.matchers.IdentifierTokenMatcher#basicIndetifierMatcher} java-style names.
- {@link com.singularsys.jep.configurableparser.matchers.IdentifierTokenMatcher#dottedIndetifierMatcher} java-style names containing dots.
- Operators
- {@link com.singularsys.jep.configurableparser.matchers.OperatorTokenMatcher} a token matcher which matches operators specified in the OperatorTable.
- Symbols
- {@link com.singularsys.jep.configurableparser.matchers.SymbolTokenMatcher} matches other symbols used by the parser.
@see com.singularsys.jep.configurableparser.tokens.Token
@see com.singularsys.jep.configurableparser.Tokenizer