...
This commit is contained in:
16
compiler/Compiler/Program.cs
Normal file
16
compiler/Compiler/Program.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using Compiler;
|
||||
|
||||
const string contents = """
|
||||
func main(): void {
|
||||
do_something("test")
|
||||
}
|
||||
|
||||
func do_something(text: string): void {
|
||||
}
|
||||
""";
|
||||
|
||||
var tokens = Tokenizer.Tokenize(contents);
|
||||
var nodes = Parser.Parse(tokens);
|
||||
var output = Generator.Emit(nodes);
|
||||
|
||||
Console.WriteLine(output);
|
||||
Reference in New Issue
Block a user