diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-12 19:21:26 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-12 19:21:26 -0400 |
| commit | 8f626259507c4f6534dba4bc863dabbe30cee440 (patch) | |
| tree | 4381f610bfcf16f965c353e1a7f325a83008cbd2 /src/server/symbol.odin | |
| parent | 5b380814bda90377c003b0174b7ae1dbe5da9f14 (diff) | |
Add methods for untyped symbols the same as their typed variants
Diffstat (limited to 'src/server/symbol.odin')
| -rw-r--r-- | src/server/symbol.odin | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/server/symbol.odin b/src/server/symbol.odin index 4574c2d..8fcf89c 100644 --- a/src/server/symbol.odin +++ b/src/server/symbol.odin @@ -124,13 +124,15 @@ SymbolBitSetValue :: struct { expr: ^ast.Expr, } +SymbolUntypedValueType :: enum { + Integer, + Float, + String, + Bool, +} + SymbolUntypedValue :: struct { - type: enum { - Integer, - Float, - String, - Bool, - }, + type: SymbolUntypedValueType, tok: tokenizer.Token, } |