Interface SyntaxAnalyzer

All Known Implementing Classes:
BasicSyntaxAnalyzer

public interface SyntaxAnalyzer
A syntax analyzer analyzes a program source using the result of the lexical analyzer and create an executable program.
Author:
Peter Verhas
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Add command to the currently build program
    Perform the syntax analysis.
  • Method Details

    • analyze

      Perform the syntax analysis.
      Returns:
      return value
      Throws:
      AnalysisException - in case of exception
    • addCommand

      void addCommand(Command command)
      Add command to the currently build program
      Parameters:
      command - Command to be added to the current program