blob: 4a1d5216885368fab90ced30eedfa205c7fc6922 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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());
|