Add assignment
This commit is contained in:
parent
78bfe7c1cf
commit
967bde688a
5 changed files with 2183 additions and 46 deletions
50
test/corpus/definitions.txt
Normal file
50
test/corpus/definitions.txt
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
================================================================================
|
||||
Empty file
|
||||
================================================================================
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(source_file)
|
||||
|
||||
================================================================================
|
||||
Integer assignment
|
||||
================================================================================
|
||||
|
||||
foo = 42
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(source_file
|
||||
(assignment
|
||||
(identifier)
|
||||
(integer_literal)))
|
||||
|
||||
================================================================================
|
||||
Variable assignment
|
||||
================================================================================
|
||||
|
||||
foo = bar
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(source_file
|
||||
(assignment
|
||||
(identifier)
|
||||
(identifier)))
|
||||
|
||||
================================================================================
|
||||
Multiple assignments
|
||||
================================================================================
|
||||
|
||||
foo = 12
|
||||
bar = 27
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(source_file
|
||||
(assignment
|
||||
(identifier)
|
||||
(integer_literal))
|
||||
(assignment
|
||||
(identifier)
|
||||
(integer_literal)))
|
||||
Loading…
Add table
Add a link
Reference in a new issue