1
0
dust/tree-sitter-dust/corpus/as.txt

56 lines
1.3 KiB
Plaintext

================================================================================
Simple As
================================================================================
1 as int
--------------------------------------------------------------------------------
(root
(statement
(expression
(as
(expression
(value
(integer)))
(type)))))
================================================================================
As Function
================================================================================
foo as (int) -> int
--------------------------------------------------------------------------------
(root
(statement
(expression
(as
(expression
(identifier))
(type
(type)
(type))))))
================================================================================
As List in For Loop
================================================================================
for i in foobar as [string] {}
--------------------------------------------------------------------------------
(root
(statement
(for
(identifier)
(expression
(as
(expression
(identifier))
(type
(type
(identifier)))))
(block))))