Documentation of 'org.hecl.Parse' Java class
Parse
org.hecl

Class Parse

  • Direct Known Subclasses:
    ParseList


    public class Parse
    extends java.lang.Object
    The Parse class takes care of parsing Hecl scripts.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Parse()
      Creates a new Parse instance.
      Parse(Interp interp_in, java.lang.String in_in)
      Creates a new Parse instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void addDollar()
      The addDollar method adds a $var lookup to the current output.
      void addSub(int type) 
      boolean more()
      The more method returns a boolean value indicating whether there is more text to be parsed or not.
      java.util.Vector parse()
      The parse method runs the parser on the text added by creating a new Parse instance.
      void parseLine(ParseState state)
      The parseLine method is where parsing starts on a new line.
      CodeThing parseToCode()
      parseToCode parses up a [] section as code.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Parse

        public Parse()
        Creates a new Parse instance. Not actually used by anything.
      • Parse

        public Parse(Interp interp_in,
                     java.lang.String in_in)
        Creates a new Parse instance.
        Parameters:
        interp_in - a Interp value
        in_in - a String value
    • Method Detail

      • more

        public boolean more()
        The more method returns a boolean value indicating whether there is more text to be parsed or not.
        Returns:
        a boolean value
      • parse

        public java.util.Vector parse()
                               throws HeclException
        The parse method runs the parser on the text added by creating a new Parse instance.
        Returns:
        a Vector value
        Throws:
        HeclException - if an error occurs
      • parseToCode

        public CodeThing parseToCode()
                              throws HeclException
        parseToCode parses up a [] section as code.
        Returns:
        a CodeThing value
        Throws:
        HeclException - if an error occurs
      • addDollar

        public void addDollar()
                       throws HeclException
        The addDollar method adds a $var lookup to the current output.
        Throws:
        HeclException - if an error occurs
      • parseLine

        public void parseLine(ParseState state)
                       throws HeclException
        The parseLine method is where parsing starts on a new line.
        Parameters:
        state - a ParseState value
        Throws:
        HeclException - if an error occurs

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.