org.yecht

Class DefaultYAMLParser

public class DefaultYAMLParser extends Object

Nested Class Summary
interfaceDefaultYAMLParser.yyInput
must be implemented by a scanner object to supply input to the parser.
Field Summary
protected static short[]yyCheck
parser tables.
protected static short[]yyDefRed
parser tables.
protected static short[]yyDgoto
parser tables.
static intyyErrorCode
protected static intyyFinal
number of final state.
protected static short[]yyGindex
parser tables.
protected static short[]yyLen
parser tables.
protected static short[]yyLhs
parser tables.
protected intyyMax
initial size and increment of the state/value stack [default 256].
protected static 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.
static intYAML_ALIAS
static intYAML_ANCHOR
static intYAML_BLOCK
static intYAML_DOCSEP
static intYAML_IEND
static intYAML_INDENT
static intYAML_IOPEN
static intYAML_ITRANSFER
static intYAML_PLAIN
static intYAML_TAGURI
static intYAML_TRANSFER
static intYAML_WORD
Constructor Summary
DefaultYAMLParser(Parser parser)
Method Summary
static voidapplySeqInMap(Parser parser, Node n)
static NodeNULL_NODE(Parser parser)
protected ObjectyyDefault(Object first)
executed at the beginning of a reduce action.
voidyyerror(String msg)
Objectyyparse(DefaultYAMLParser.yyInput yyLex, Object yydebug)
the generated parser, with debugging messages.
Objectyyparse(DefaultYAMLParser.yyInput yyLex)
the generated parser.

Field Detail

yyCheck

protected static final short[] yyCheck
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.

yyErrorCode

public static final int yyErrorCode

yyFinal

protected static final int yyFinal
number of final state.

yyGindex

protected static final short[] yyGindex
parser tables. Order is mandated by jay.

yyLen

protected static final short[] yyLen
parser tables. Order is mandated by jay.

yyLhs

protected static final short[] yyLhs
parser tables. Order is mandated by jay.

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 of DefaultYAMLParser.

yyNames

protected static final String[] yyNames
maps symbol value to printable name.

See Also: DefaultYAMLParser

yyRindex

protected static final short[] yyRindex
parser tables. Order is mandated by jay.

yySindex

protected static final short[] yySindex
parser tables. Order is mandated by jay.

yyTable

protected static final short[] yyTable
parser tables. Order is mandated by jay.

YAML_ALIAS

public static final int YAML_ALIAS

YAML_ANCHOR

public static final int YAML_ANCHOR

YAML_BLOCK

public static final int YAML_BLOCK

YAML_DOCSEP

public static final int YAML_DOCSEP

YAML_IEND

public static final int YAML_IEND

YAML_INDENT

public static final int YAML_INDENT

YAML_IOPEN

public static final int YAML_IOPEN

YAML_ITRANSFER

public static final int YAML_ITRANSFER

YAML_PLAIN

public static final int YAML_PLAIN

YAML_TAGURI

public static final int YAML_TAGURI

YAML_TRANSFER

public static final int YAML_TRANSFER

YAML_WORD

public static final int YAML_WORD

Constructor Detail

DefaultYAMLParser

public DefaultYAMLParser(Parser parser)

Method Detail

applySeqInMap

public static void applySeqInMap(Parser parser, Node n)

NULL_NODE

public static Node NULL_NODE(Parser parser)

yyDefault

protected Object yyDefault(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.

yyerror

public void yyerror(String msg)

yyparse

public Object yyparse(DefaultYAMLParser.yyInput yyLex, Object yydebug)
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.

yyparse

public Object yyparse(DefaultYAMLParser.yyInput yyLex)
the generated parser. Maintains a dynamic state and value stack.

Parameters: yyLex scanner.

Returns: result of the last reduction, if any.