Add negative integers
This commit is contained in:
parent
ba33e41969
commit
62f5031144
5 changed files with 225 additions and 96 deletions
33
test/corpus/expressions.txt
Normal file
33
test/corpus/expressions.txt
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
================================================================================
|
||||
Integer
|
||||
================================================================================
|
||||
|
||||
foo = 0
|
||||
foo = 42
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(source_file
|
||||
(assignment
|
||||
(identifier)
|
||||
(integer_literal))
|
||||
(assignment
|
||||
(identifier)
|
||||
(integer_literal)))
|
||||
|
||||
================================================================================
|
||||
Integer (negative)
|
||||
================================================================================
|
||||
|
||||
foo = -0
|
||||
foo = -42
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(source_file
|
||||
(assignment
|
||||
(identifier)
|
||||
(integer_literal))
|
||||
(assignment
|
||||
(identifier)
|
||||
(integer_literal)))
|
||||
Loading…
Add table
Add a link
Reference in a new issue