mirror of
https://codeberg.org/ProgramSnail/tree-sitter-lang.git
synced 2026-01-04 22:08:26 +00:00
typle access expression added
This commit is contained in:
parent
befa2f0395
commit
209ef22e0f
3 changed files with 27 additions and 1 deletions
|
|
@ -98,6 +98,10 @@ func_2 = {
|
|||
=: Fruit @banana () -> "banana";
|
||||
|
||||
%z := ( + ) 1 2;
|
||||
|
||||
// tuple access
|
||||
%t := 1 & 2 & 3;
|
||||
print t.0;
|
||||
}
|
||||
|
||||
test.something = {
|
||||
|
|
@ -559,7 +563,23 @@ arg_deduction_example 'name 'duration : <- String <- Float -> Task = Task 'name
|
|||
(name_expression
|
||||
(operator)
|
||||
(number_literal)
|
||||
(number_literal))))))
|
||||
(number_literal))))
|
||||
(match
|
||||
(name_definition
|
||||
(simple_name_identifier))
|
||||
(case
|
||||
(operator_expression
|
||||
(operator_expression
|
||||
(number_literal)
|
||||
(operator)
|
||||
(number_literal))
|
||||
(operator)
|
||||
(number_literal))))
|
||||
(name_expression
|
||||
(simple_name_identifier)
|
||||
(tuple_access
|
||||
(simple_name_identifier)
|
||||
(number_literal)))))
|
||||
(function_definition
|
||||
(simple_name_identifier)
|
||||
(block
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue