public void Setup() { // Create a new LLVM module instance. this.module = new Ion.Abstraction.Module(); // Create the sequence. Token[] sequence = new Token[] { // Program starting point token. new Token { Type = TokenType.Unknown }, new Token { Type = TokenType.Identifier, Value = "bool" }, new Token { Type = TokenType.SymbolAt, Value = "@" }, new Token { Type = TokenType.Identifier, Value = "test" } }; // Create the stream. this.stream = new TokenStream(sequence); }
public void Setup() { // Create a new LLVM module instance. this.module = new Ion.Abstraction.Module(); // Reset symbol table along with its functions. SymbolTable.Reset(); SymbolTable.functions.Clear(); }