diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2024-07-21 00:15:20 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2024-07-21 00:15:20 -0400 |
commit | 308a427f3cdb2c7f618b0d48640d064b88bbbceb (patch) | |
tree | 439ea530d05ae31ef6a92bf9b5d16483c3bcd270 /tnslc/parse/ast.tnsl | |
parent | 2f282dd62b9019b6e6613f4af5f50448089497ad (diff) |
Basic tokenizer
Diffstat (limited to 'tnslc/parse/ast.tnsl')
-rw-r--r-- | tnslc/parse/ast.tnsl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tnslc/parse/ast.tnsl b/tnslc/parse/ast.tnsl index e69de29..554aac2 100644 --- a/tnslc/parse/ast.tnsl +++ b/tnslc/parse/ast.tnsl @@ -0,0 +1,21 @@ + +uint16 NTYPE_MOD = 0 +uint16 NTYPE_STRUCT = 1 +uint16 NTYPE_ID = 2 +uint16 NTYPE_BINOP = 3 +uint16 NTYPE_PREOP = 4 +uint16 NTYPE_POSTOP = 5 +uint16 NTYPE_FUNCTION = 6 + + +struct Node { + uint16 _type, + ~uint8 data, + utils.Vector sub +} + +/; generate_ast (~utils.File fin) [Node] + Node out + return out +;/ + |