Package com.scriptbasic.interfaces
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 voidaddCommand(Command command)Add command to the currently build programBuildableProgramanalyze()Perform the syntax analysis.
-
Method Details
-
analyze
Perform the syntax analysis.- Returns:
- return value
- Throws:
AnalysisException- in case of exception
-
addCommand
Add command to the currently build program- Parameters:
command- Command to be added to the current program
-