Add support for global functions
This commit is contained in:
@@ -5,6 +5,7 @@ public class Lexer
|
||||
private static readonly Dictionary<string, Symbol> Keywords = new()
|
||||
{
|
||||
["func"] = Symbol.Func,
|
||||
["global"] = Symbol.Global,
|
||||
["extern"] = Symbol.Extern,
|
||||
["import"] = Symbol.Import,
|
||||
["let"] = Symbol.Let,
|
||||
|
||||
@@ -10,6 +10,7 @@ public enum Symbol
|
||||
Whitespace,
|
||||
Import,
|
||||
Extern,
|
||||
Global,
|
||||
Func,
|
||||
Return,
|
||||
Let,
|
||||
|
||||
Reference in New Issue
Block a user