Package eu.bandm.tools.option
Class Compiler.Phase_parser
java.lang.Object
eu.bandm.tools.tdom.runtime.BaseVisitor
eu.bandm.tools.option.absy.Visitor
eu.bandm.tools.option.Compiler.Phase
eu.bandm.tools.option.Compiler.Phase_parser
- All Implemented Interfaces:
PCDataVisitor
- Enclosing class:
Compiler
Create a parsing method for each option, and two "switch" methods calling these,
one for short and one for long names.
-
Field Summary
Fields inherited from class eu.bandm.tools.option.Compiler.Phase
abbrev, currentOptionElement, name, option_qualifierFields inherited from class eu.bandm.tools.tdom.runtime.BaseVisitor
validating -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd to the growing code the call to a parser for an option with no argument, = of "switch" or "flag" type.protected voidmakeparsercall(String fun) Compile one parse-call statement for one argument type to the global result array.voidtranslate(Element_optionlist olist) Entry method, reset registers and descend.voidvisit(Element_bool el) Add to the growing code the call to a parser for an argument of boolean type.voidvisit(Element_enum el) Add to the growing code the call to a parser for an argument of an enumeration type.voidvisit(Element_enumset el) Add to the growing code the call to a parser for an argument of enum set type.voidvisit(Element_float el) Add to the growing code the call to a parser for an argument of float type.voidvisit(Element_int el) Add to the growing code the call to a parser for an argument of integer type.voidvisit(Element_option element) Create a parsing method for the option under visitation.voidvisit(Element_rat el) Add to the growing code the call to a parser for an argument of Rational type.voidvisit(Element_rep el) Add to the growing code the call to the parser of the repeting group.voidvisit(Element_string el) Add to the growing code the call to a parser for an argument of string type.voidvisit(Element_uri el) Add to the growing code the call to a parser for an argument of uri/file name type.Methods inherited from class eu.bandm.tools.option.Compiler.Phase
bothtags, bothtags_formatted, ERROR, longestname, longesttag, shortestname, shortesttag, WARNING, WARNINGMethods inherited from class eu.bandm.tools.option.absy.Visitor
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visitMethods inherited from class eu.bandm.tools.tdom.runtime.BaseVisitor
visit
-
Constructor Details
-
Phase_parser
protected Phase_parser()
-
-
Method Details
-
translate
Entry method, reset registers and descend. -
visit
Create a parsing method for the option under visitation.- Overrides:
visitin classCompiler.Phase
-
makeparsercall
Compile one parse-call statement for one argument type to the global result array. This will be added to the code when the list of types has been visited. -
visit
Add to the growing code the call to a parser for an argument of integer type. -
visit
Add to the growing code the call to a parser for an argument of float type. -
visit
Add to the growing code the call to a parser for an argument of Rational type. -
makeNoArgSwitch
public void makeNoArgSwitch()Add to the growing code the call to a parser for an option with no argument, = of "switch" or "flag" type. -
visit
Add to the growing code the call to a parser for an argument of boolean type. -
visit
Add to the growing code the call to a parser for an argument of string type. -
visit
Add to the growing code the call to a parser for an argument of uri/file name type. -
visit
Add to the growing code the call to a parser for an argument of an enumeration type. -
visit
Add to the growing code the call to a parser for an argument of enum set type. -
visit
Add to the growing code the call to the parser of the repeting group.
-