Package org.yecht
Class DefaultYAMLParser
java.lang.Object
org.yecht.DefaultYAMLParser
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
must be implemented by a scanner object to supply input to the parser. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Parser
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
protected static final short[]
parser tables.protected static final short[]
parser tables.protected static final short[]
parser tables.static final int
protected static final int
number of final state.protected static final short[]
parser tables.protected static final short[]
parser tables.protected static final short[]
parser tables.protected int
initial size and increment of the state/value stack [default 256].protected static final String[]
maps symbol value to printable name.protected static final short[]
parser tables.protected static final short[]
parser tables.protected static final short[]
parser tables. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
applySeqInMap
(Parser parser, Node n) static Node
protected Object
executed at the beginning of a reduce action.void
yyparse
(DefaultYAMLParser.yyInput yyLex) the generated parser.yyparse
(DefaultYAMLParser.yyInput yyLex, Object yydebug) the generated parser, with debugging messages.
-
Field Details
-
YAML_ANCHOR
public static final int YAML_ANCHOR- See Also:
-
YAML_ALIAS
public static final int YAML_ALIAS- See Also:
-
YAML_TRANSFER
public static final int YAML_TRANSFER- See Also:
-
YAML_TAGURI
public static final int YAML_TAGURI- See Also:
-
YAML_ITRANSFER
public static final int YAML_ITRANSFER- See Also:
-
YAML_WORD
public static final int YAML_WORD- See Also:
-
YAML_PLAIN
public static final int YAML_PLAIN- See Also:
-
YAML_BLOCK
public static final int YAML_BLOCK- See Also:
-
YAML_DOCSEP
public static final int YAML_DOCSEP- See Also:
-
YAML_IOPEN
public static final int YAML_IOPEN- See Also:
-
YAML_INDENT
public static final int YAML_INDENT- See Also:
-
YAML_IEND
public static final int YAML_IEND- See Also:
-
yyErrorCode
public static final int yyErrorCode- See Also:
-
yyFinal
protected static final int yyFinalnumber of final state.- See Also:
-
yyLhs
protected static final short[] yyLhsparser tables. Order is mandated by jay. -
yyLen
protected static final short[] yyLenparser tables. Order is mandated by jay. -
yyDefRed
protected static final short[] yyDefRedparser tables. Order is mandated by jay. -
yyDgoto
protected static final short[] yyDgotoparser tables. Order is mandated by jay. -
yySindex
protected static final short[] yySindexparser tables. Order is mandated by jay. -
yyRindex
protected static final short[] yyRindexparser tables. Order is mandated by jay. -
yyGindex
protected static final short[] yyGindexparser tables. Order is mandated by jay. -
yyTable
protected static final short[] yyTableparser tables. Order is mandated by jay. -
yyCheck
protected static final short[] yyCheckparser tables. Order is mandated by jay. -
yyNames
maps symbol value to printable name.- See Also:
-
#yyExpecting
-
yyMax
protected int yyMaxinitial size and increment of the state/value stack [default 256]. This is not final so that it can be overwritten outside of invocations ofyyparse(org.yecht.DefaultYAMLParser.yyInput, java.lang.Object)
. -
parser
-
-
Constructor Details
-
DefaultYAMLParser
-
-
Method Details
-
yyparse
the generated parser, with debugging messages. Maintains a dynamic state and value stack.- Parameters:
yyLex
- scanner.yydebug
- debug message writer implementing yyDebug, or null.- Returns:
- result of the last reduction, if any.
- Throws:
IOException
-
yyDefault
executed at the beginning of a reduce action. Used as $$ = yyDefault($1), prior to the user-specified action, if any. Can be overwritten to provide deep copy, etc.- Parameters:
first
- value for $1, or null.- Returns:
- first.
-
yyparse
the generated parser. Maintains a dynamic state and value stack.- Parameters:
yyLex
- scanner.- Returns:
- result of the last reduction, if any.
- Throws:
IOException
-
NULL_NODE
-
applySeqInMap
-
yyerror
-