Class StandardConfigurableParser
java.lang.Object
com.singularsys.jep.configurableparser.ConfigurableParser
com.singularsys.jep.configurableparser.StandardConfigurableParser
- All Implemented Interfaces:
JepComponent,Parser,Serializable
The standard configurable parser with a standard set of options.
Implemented as:
Since Jep 4.1 the symbols used
are specified in the properties file.
public StandardConfigurableParser() {
this.addHashComments();
this.addSlashComments();
this.addSingleQuoteStrings();
this.addDoubleQuoteStrings();
this.addWhiteSpace();
this.addExponentNumbers();
this.addSymbols("(",")","[","]",",");
this.setImplicitMultiplicationSymbols("(","[");
this.addOperatorTokenMatcher();
this.addIdentifiers();
this.addSemiColonTerminator();
this.addWhiteSpaceCommentFilter();
this.addBracketMatcher("(",")");
this.addFunctionMatcher("(",")",",");
this.addListMatcher("[","]",",");
this.addArrayAccessMatcher("[","]");
}
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a standard configurable parse with standard options. -
Method Summary
Methods inherited from class com.singularsys.jep.configurableparser.ConfigurableParser
addArrayAccessMatcher, addBracketMatcher, addDoubleQuoteStrings, addExponentNumbers, addFunctionMatcher, addGrammarMatcher, addHashComments, addIdentifiers, addListMatcher, addListOrBracketMatcher, addOperatorTokenMatcher, addSemiColonTerminator, addSimpleNumbers, addSingleQuoteStrings, addSlashComments, addSymbols, addTokenFilter, addTokenMatcher, addWhiteSpace, addWhiteSpaceCommentFilter, continueParse, filter, getGrammarMatchers, getGrammarParserFactory, getJep, getLightWeightInstance, getOperatorTokenMatcher, getSymbolToken, getSymbolTokenMatcher, getToken, getTokenFilters, getTokenizerFactory, getTokenMatchers, init, parse, parse, replaceGrammarMatcher, replaceTokenMatcher, restart, scan, scan, setGrammarParserFactory, setImplicitMultiplicationSymbols, setTokenizerFactory
-
Constructor Details
-
StandardConfigurableParser
public StandardConfigurableParser()Create a standard configurable parse with standard options.
-