Don't require the module name after end

This commit is contained in:
2025-06-03 12:14:59 +02:00
parent 1983ef8e71
commit 82f0d40a56
10 changed files with 397 additions and 223 deletions

View File

@ -1,6 +1,7 @@
DEFINITION MODULE Parser;
FROM Common IMPORT Identifier, PIdentifier;
FROM Lexer IMPORT PLexer;
TYPE
AstConstantDeclaration = RECORD
@ -56,4 +57,8 @@ TYPE
END;
PAstModule = POINTER TO AstModule;
PROCEDURE parse_type_expression(lexer: PLexer): PAstTypeExpression;
PROCEDURE parse_type_declaration(lexer: PLexer): PAstTypeDeclaration;
PROCEDURE parse_type_part(lexer: PLexer): PPAstTypeDeclaration;
END Parser.