Add error logging and corresponding tests for parser syntax errors
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
--- test.c ---
|
||||
1| module my_module; import ;
|
||||
^
|
||||
expected module name to import
|
||||
@@ -1,4 +0,0 @@
|
||||
--- test.c ---
|
||||
1| import other_module.c
|
||||
^^^^^^
|
||||
expected `module`
|
||||
@@ -0,0 +1,4 @@
|
||||
--- test.c ---
|
||||
1| import other_module;
|
||||
^^^^^^
|
||||
expected 'module' keyword
|
||||
@@ -0,0 +1,4 @@
|
||||
--- test.c ---
|
||||
1| module my_module; import other_module
|
||||
^
|
||||
expected ';' after import
|
||||
@@ -0,0 +1,4 @@
|
||||
--- test.c ---
|
||||
1| module my_module
|
||||
^
|
||||
expected ';' after module name
|
||||
Reference in New Issue
Block a user