Interface Parser


public interface Parser
A Parser is used to parse a CivlcTokenSource --- a stream of CivlcTokens --- and create a ParseTree.
  • Method Summary

    Modifier and Type
    Method
    Description
    parse(CivlcTokenSource tokenSource)
    Returns the parse tree resulting from parsing the input, after some "post-processing" has been done to the tree to fill in some fields.
  • Method Details

    • parse

      ParseTree parse(CivlcTokenSource tokenSource) throws ParseException
      Returns the parse tree resulting from parsing the input, after some "post-processing" has been done to the tree to fill in some fields.
      Returns:
      the parse tree resulting from parsing and clean up
      Throws:
      ParseException - if there is a syntax exception