Package dev.zemco.codegame.compilation
Interface IProgramCompiler
- All Known Implementing Classes:
CodeProgramCompiler
public interface IProgramCompiler
Compiler takes a source code and compiles it into an executable
program.
Syntax of the source code is dependent on the implementation.- Author:
- Erik Zemčík
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncompileProgram(String sourceCode) Compiles given source code into an executableprogram.
-
Method Details
-
compileProgram
Compiles given source code into an executableprogram.- Parameters:
sourceCode- source code of theprogram- Returns:
- executable
program - Throws:
IllegalArgumentException- ifsourceCodeisnullInvalidSyntaxException- ifsourceCodecontains invalid syntax to the implementation
-