Interface Parser

All Known Implementing Classes:
ParserImpl

public interface Parser
  • Method Details

    • parse

      RootNode parse(TokenStream stream)
    • subparse

      BodyNode subparse()
    • getStream

      TokenStream getStream()
      Provides the stream of tokens which ultimately need to be "parsed" into Nodes.
      Returns:
      TokenStream
    • subparse

      BodyNode subparse(StoppingCondition stopCondition)
      Parses the existing TokenStream, starting at the current Token, and ending when the stopCondition is fullfilled.
      Parameters:
      stopCondition - The condition to stop parsing a segment of the template.
      Returns:
      A node representing the parsed section
    • getExpressionParser

      ExpressionParser getExpressionParser()
    • peekBlockStack

      String peekBlockStack()
    • popBlockStack

      String popBlockStack()
    • pushBlockStack

      void pushBlockStack(String blockName)