Interface Parser

All Known Implementing Classes:
RecursiveDescentParser

public interface Parser
Represents a generic parser. A parser takes a sequence of characters as input and returns a syntax tree as output.
  • Method Summary

    Modifier and Type Method Description
    SyntaxTree parse​(java.lang.CharSequence source)
    Parses a CharSequence starting from the proper axiom of a grammar
    SyntaxTree parse​(java.lang.CharSequence source, java.lang.String axiom)
    Parses a CharSequence starting from the specified construct of a grammar