Package org.yecht

Class DefaultYAMLParser

java.lang.Object
org.yecht.DefaultYAMLParser

public class DefaultYAMLParser extends Object
  • 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 yyFinal
      number of final state.
      See Also:
    • 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:
      • invalid reference
        #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).
    • parser

      private Parser parser
  • Constructor Details

    • DefaultYAMLParser

      public DefaultYAMLParser(Parser parser)
  • Method Details

    • 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)