Add lvalue expressions

This commit is contained in:
Bruno BELANYI 2022-06-01 20:07:00 +02:00
parent 8921953bbb
commit 6a3e4663ed
6 changed files with 1788 additions and 1150 deletions

View file

@ -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
View 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)))