Website Summary Files Commits Branches @commit @diff @stats
path: root / JSImpl / src / ByteCodeGenerator.h
diff options
context:
space:
mode:
1 files changed, 16 insertions, 0 deletions
-rw-r--r--JSImpl/src/ByteCodeGenerator.h16
diff --git a/JSImpl/src/ByteCodeGenerator.h b/JSImpl/src/ByteCodeGenerator.h
new file mode 100644
index 0000000..4a1d521
--- /dev/null
+++ b/JSImpl/src/ByteCodeGenerator.h
@@ -0,0 +1,16 @@
+#pragma once
+
+#include "Expression.h"
+
+struct ByteCodeGeneratorOptions
+{
+ enum OptimizationsType
+ {
+ None
+ };
+ ByteCodeGeneratorOptions(OptimizationsType o = None, bool debug = false) : Optimisations(o), AddDebugInformation(debug) {}
+ OptimizationsType Optimisations;
+ bool AddDebugInformation;
+};
+
+IPLString GenerateByteCode(ExpressionPtr program, const IPLString& source, const ByteCodeGeneratorOptions& options = ByteCodeGeneratorOptions());