Add lvalue expressions
This commit is contained in:
parent
8921953bbb
commit
6a3e4663ed
6 changed files with 1788 additions and 1150 deletions
|
|
@ -6,7 +6,7 @@ _main
|
|||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(ERROR
|
||||
(source_file
|
||||
(identifier))
|
||||
|
||||
================================================================================
|
||||
|
|
@ -17,5 +17,5 @@ my_1st_variable
|
|||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(ERROR
|
||||
(source_file
|
||||
(identifier))
|
||||
|
|
|
|||
36
test/corpus/lvalues.txt
Normal file
36
test/corpus/lvalues.txt
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
================================================================================
|
||||
Variable
|
||||
================================================================================
|
||||
|
||||
a_variable
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(source_file
|
||||
(identifier))
|
||||
|
||||
================================================================================
|
||||
Array indexing
|
||||
================================================================================
|
||||
|
||||
an_array[12]
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(source_file
|
||||
(array_value
|
||||
array: (identifier)
|
||||
index: (integer_literal)))
|
||||
|
||||
================================================================================
|
||||
Record field
|
||||
================================================================================
|
||||
|
||||
a_record.field
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(source_file
|
||||
(record_value
|
||||
record: (identifier)
|
||||
field: (identifier)))
|
||||
Loading…
Add table
Add a link
Reference in a new issue