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 interface
DefaultYAMLParser.yyInput
must be implemented by a scanner object to supply input to the parser.
-
Field Summary
Fields Modifier and Type Field Description private Parser
parser
static int
YAML_ALIAS
static int
YAML_ANCHOR
static int
YAML_BLOCK
static int
YAML_DOCSEP
static int
YAML_IEND
static int
YAML_INDENT
static int
YAML_IOPEN
static int
YAML_ITRANSFER
static int
YAML_PLAIN
static int
YAML_TAGURI
static int
YAML_TRANSFER
static int
YAML_WORD
protected static short[]
yyCheck
parser tables.protected static short[]
yyDefRed
parser tables.protected static short[]
yyDgoto
parser tables.static int
yyErrorCode
protected static int
yyFinal
number of final state.protected static short[]
yyGindex
parser tables.protected static short[]
yyLen
parser tables.protected static short[]
yyLhs
parser tables.protected int
yyMax
initial size and increment of the state/value stack [default 256].protected static java.lang.String[]
yyNames
maps symbol value to printable name.protected static short[]
yyRindex
parser tables.protected static short[]
yySindex
parser tables.protected static short[]
yyTable
parser 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 void
applySeqInMap(Parser parser, Node n)
static Node
NULL_NODE(Parser parser)
protected java.lang.Object
yyDefault(java.lang.Object first)
executed at the beginning of a reduce action.void
yyerror(java.lang.String msg)
java.lang.Object
yyparse(DefaultYAMLParser.yyInput yyLex)
the generated parser.java.lang.Object
yyparse(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)
-
-