Parse and transpile unary operations

This commit is contained in:
2025-06-06 18:25:53 +02:00
parent 3ca8491f64
commit 8d52410be9
6 changed files with 297 additions and 29 deletions

View File

@ -2,7 +2,7 @@ DEFINITION MODULE Lexer;
FROM FIO IMPORT File;
FROM Common IMPORT Identifier;
FROM Common IMPORT Identifier, ShortString;
TYPE
PLexerBuffer = POINTER TO CHAR;
@ -41,7 +41,7 @@ TYPE
lexerKindNull,
lexerKindAnd,
lexerKindOr,
lexerKindNot,
lexerKindTilde,
lexerKindReturn,
lexerKindDefinition,
lexerKindRange,
@ -84,7 +84,8 @@ TYPE
CASE kind: LexerKind OF
lexerKindBoolean: booleanKind: BOOLEAN |
lexerKindIdentifier: identifierKind: Identifier |
lexerKindInteger: integerKind: INTEGER
lexerKindInteger: integerKind: INTEGER |
lexerKindString: stringKind: ShortString
END
END;
PLexerToken = POINTER TO LexerToken;