Package org.yecht

Class DefaultYAMLParser


  • public class DefaultYAMLParser
    extends Object
    • Field Detail

      • 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
    • 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.
      • NULL_NODE

        public static Node NULL_NODE​(Parser parser)
      • applySeqInMap

        public static void applySeqInMap​(Parser parser,
                                         Node n)
      • yyerror

        public void yyerror​(String msg)