aboutsummaryrefslogtreecommitdiff
path: root/source/parser.elna
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-10-08 19:45:19 +0200
committerEugen Wissner <belka@caraus.de>2026-10-08 19:45:19 +0200
commit7d07bef760a8807fe49fbe5c90799a1822f95973 (patch)
tree8b8d8ed0003dc61c4bd7313df86f6cbaea3d4b82 /source/parser.elna
parentd392f0c54a7748b816ab327758ae835f73cd1c0a (diff)
downloadelna-7d07bef760a8807fe49fbe5c90799a1822f95973.tar.gz
Make modules re-exportable
Diffstat (limited to 'source/parser.elna')
-rw-r--r--source/parser.elna4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/parser.elna b/source/parser.elna
index 30f79f8..3912b65 100644
--- a/source/parser.elna
+++ b/source/parser.elna
@@ -2,7 +2,7 @@
v. 2.0. If a copy of the MPL was not distributed with this file, You can
obtain one at https://mozilla.org/MPL/2.0/. *)
module
-import common, cstdlib, lexer, ast, diagnostic
+import common, sys.posix.cstdlib, lexer, ast, diagnostic
proc elna_parser_expect*(cursor: ^ElnaLexerCursor; expected: ElnaLexerKind; error_list: ^ElnaList) -> ^ElnaLexerToken
var
@@ -1129,7 +1129,7 @@ var
begin
result := malloc#[ElnaTreeModuleDeclaration](#size(ElnaTreeModuleDeclaration));
result^.kind := ElnaTreeKind.module_declaration;
- result^.position.start_location := ElnaLocation{ line: 1u, column: 1u };
+ result^.position.start_location := { ElnaLocation; line: 1u, column: 1u };
result^.position.end_location := result^.position.start_location;
result^.types := elna_parser_type_part(cursor, error_list);