Package snap.parse
Class ParseUtils
java.lang.Object
snap.parse.ParseUtils
Reads/Writes ParseRules from/to file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getStringForRule
(ParseRule aRule) Returns string definition of rule.static String
getStringForRules
(Grammar aGrammar) Returns a string for the currently loaded set of rules.static void
printHandlerClassesForParentClass
(Class<?> aClass, int classesPerLine) Prints handler classes so parsers can include as constant and avoid reflection for handler install.static void
printRuleNames
(Grammar aGrammar, int namesPerLine) Prints the names of all rules.
-
Constructor Details
-
ParseUtils
public ParseUtils()
-
-
Method Details
-
printRuleNames
Prints the names of all rules. -
getStringForRules
Returns a string for the currently loaded set of rules. -
getStringForRule
Returns string definition of rule. -
printHandlerClassesForParentClass
Prints handler classes so parsers can include as constant and avoid reflection for handler install.
-