Package org.yecht
Class DefaultYAMLParser
- java.lang.Object
-
- org.yecht.DefaultYAMLParser
-
public class DefaultYAMLParser extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDefaultYAMLParser.yyInputmust be implemented by a scanner object to supply input to the parser.
-
Field Summary
Fields Modifier and Type Field Description private Parserparserstatic intYAML_ALIASstatic intYAML_ANCHORstatic intYAML_BLOCKstatic intYAML_DOCSEPstatic intYAML_IENDstatic intYAML_INDENTstatic intYAML_IOPENstatic intYAML_ITRANSFERstatic intYAML_PLAINstatic intYAML_TAGURIstatic intYAML_TRANSFERstatic intYAML_WORDprotected static short[]yyCheckparser tables.protected static short[]yyDefRedparser tables.protected static short[]yyDgotoparser tables.static intyyErrorCodeprotected static intyyFinalnumber of final state.protected static short[]yyGindexparser tables.protected static short[]yyLenparser tables.protected static short[]yyLhsparser tables.protected intyyMaxinitial size and increment of the state/value stack [default 256].protected static java.lang.String[]yyNamesmaps symbol value to printable name.protected static short[]yyRindexparser tables.protected static short[]yySindexparser tables.protected static short[]yyTableparser tables.
-
Constructor Summary
Constructors Constructor Description DefaultYAMLParser(Parser parser)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidapplySeqInMap(Parser parser, Node n)static NodeNULL_NODE(Parser parser)protected java.lang.ObjectyyDefault(java.lang.Object first)executed at the beginning of a reduce action.voidyyerror(java.lang.String msg)java.lang.Objectyyparse(DefaultYAMLParser.yyInput yyLex)the generated parser.java.lang.Objectyyparse(DefaultYAMLParser.yyInput yyLex, java.lang.Object yydebug)the generated parser, with debugging messages.
-
-
-
Field Detail
-
YAML_ANCHOR
public static final int YAML_ANCHOR
- See Also:
- Constant Field Values
-
YAML_ALIAS
public static final int YAML_ALIAS
- See Also:
- Constant Field Values
-
YAML_TRANSFER
public static final int YAML_TRANSFER
- See Also:
- Constant Field Values
-
YAML_TAGURI
public static final int YAML_TAGURI
- See Also:
- Constant Field Values
-
YAML_ITRANSFER
public static final int YAML_ITRANSFER
- See Also:
- Constant Field Values
-
YAML_WORD
public static final int YAML_WORD
- See Also:
- Constant Field Values
-
YAML_PLAIN
public static final int YAML_PLAIN
- See Also:
- Constant Field Values
-
YAML_BLOCK
public static final int YAML_BLOCK
- See Also:
- Constant Field Values
-
YAML_DOCSEP
public static final int YAML_DOCSEP
- See Also:
- Constant Field Values
-
YAML_IOPEN
public static final int YAML_IOPEN
- See Also:
- Constant Field Values
-
YAML_INDENT
public static final int YAML_INDENT
- See Also:
- Constant Field Values
-
YAML_IEND
public static final int YAML_IEND
- See Also:
- Constant Field Values
-
yyErrorCode
public static final int yyErrorCode
- See Also:
- Constant Field Values
-
yyFinal
protected static final int yyFinal
number of final state.- See Also:
- Constant Field Values
-
yyLhs
protected static final short[] yyLhs
parser tables. Order is mandated by jay.
-
yyLen
protected static final short[] yyLen
parser tables. Order is mandated by jay.
-
yyDefRed
protected static final short[] yyDefRed
parser tables. Order is mandated by jay.
-
yyDgoto
protected static final short[] yyDgoto
parser tables. Order is mandated by jay.
-
yySindex
protected static final short[] yySindex
parser tables. Order is mandated by jay.
-
yyRindex
protected static final short[] yyRindex
parser tables. Order is mandated by jay.
-
yyGindex
protected static final short[] yyGindex
parser tables. Order is mandated by jay.
-
yyTable
protected static final short[] yyTable
parser tables. Order is mandated by jay.
-
yyCheck
protected static final short[] yyCheck
parser tables. Order is mandated by jay.
-
yyNames
protected static final java.lang.String[] yyNames
maps symbol value to printable name.- See Also:
#yyExpecting
-
yyMax
protected int yyMax
initial 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
private Parser parser
-
-
Constructor Detail
-
DefaultYAMLParser
public DefaultYAMLParser(Parser parser)
-
-
Method Detail
-
yyparse
public java.lang.Object yyparse(DefaultYAMLParser.yyInput yyLex, java.lang.Object yydebug) throws java.io.IOException
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:
java.io.IOException
-
yyDefault
protected java.lang.Object yyDefault(java.lang.Object first)
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
public java.lang.Object yyparse(DefaultYAMLParser.yyInput yyLex) throws java.io.IOException
the generated parser. Maintains a dynamic state and value stack.- Parameters:
yyLex- scanner.- Returns:
- result of the last reduction, if any.
- Throws:
java.io.IOException
-
yyerror
public void yyerror(java.lang.String msg)
-
-