Add top-level declarations
This commit is contained in:
parent
1449aa939f
commit
3cf701dbb1
5 changed files with 1489 additions and 1418 deletions
34
test/corpus/declarations.txt
Normal file
34
test/corpus/declarations.txt
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
================================================================================
|
||||
Empty declarations
|
||||
================================================================================
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(source_file)
|
||||
|
||||
================================================================================
|
||||
Import
|
||||
================================================================================
|
||||
|
||||
import "a.tih"
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(source_file
|
||||
(import_declaration
|
||||
file: (string_literal)))
|
||||
|
||||
================================================================================
|
||||
Multiple imports
|
||||
================================================================================
|
||||
|
||||
import "a.tih"
|
||||
import "b.tih"
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(source_file
|
||||
(import_declaration
|
||||
file: (string_literal))
|
||||
(import_declaration
|
||||
file: (string_literal)))
|
||||
Loading…
Add table
Add a link
Reference in a new issue