mirror of
https://github.com/irmen/prog8.git
synced 2026-04-20 11:17:01 +00:00
added transform routine for expr -> RPN
This commit is contained in:
@@ -16,6 +16,10 @@ class ExperiCodeGen: ICodeGeneratorBackend {
|
||||
options: CompilationOptions,
|
||||
errors: IErrorReporter
|
||||
): IAssemblyProgram? {
|
||||
|
||||
// If we want RPN expressions instead, use this:
|
||||
// program.transformBinExprToRPN()
|
||||
|
||||
// you could write a code generator directly on the PtProgram AST,
|
||||
// but you can also use the Intermediate Representation to build a codegen on:
|
||||
val irCodeGen = IRCodeGen(program, symbolTable, options, errors)
|
||||
|
||||
Reference in New Issue
Block a user