Don't require the module name after end

This commit is contained in:
2025-06-03 12:14:25 +02:00
parent 23885e5b95
commit ff547a295d
7 changed files with 378 additions and 217 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.