org.yecht
Class DefaultYAMLParser

java.lang.Object
  extended by org.yecht.DefaultYAMLParser

public class DefaultYAMLParser
extends Object


Nested Class Summary
static interface DefaultYAMLParser.yyInput
          must be implemented by a scanner object to supply input to the parser.
 
Field Summary
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 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
DefaultYAMLParser(Parser parser)
           
 
Method Summary
static void applySeqInMap(Parser parser, Node n)
           
static Node NULL_NODE(Parser parser)
           
protected  Object yyDefault(Object first)
          executed at the beginning of a reduce action.
 void yyerror(String msg)
           
 Object yyparse(DefaultYAMLParser.yyInput yyLex)
          the generated parser.
 Object yyparse(DefaultYAMLParser.yyInput yyLex, Object yydebug)
          the generated parser, with debugging messages.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 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 of yyparse(org.yecht.DefaultYAMLParser.yyInput, java.lang.Object).

Constructor Detail

DefaultYAMLParser

public DefaultYAMLParser(Parser parser)
Method Detail

yyparse

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

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.

yyparse

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

public static Node NULL_NODE(Parser parser)

applySeqInMap

public static void applySeqInMap(Parser parser,
                                 Node n)

yyerror

public void yyerror(String msg)


Copyright © 2013. All Rights Reserved.