mirror of
https://github.com/elladunbar/tree-sitter-hy.git
synced 2025-11-05 14:59:55 -06:00
Basic functionality
This commit is contained in:
parent
a0e03ddd73
commit
8cd6c4e65d
14 changed files with 9100 additions and 3 deletions
82
test/corpus/sequence.txt
Normal file
82
test/corpus/sequence.txt
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
==========
|
||||
expression
|
||||
==========
|
||||
|
||||
(test this)
|
||||
|
||||
---
|
||||
|
||||
(source_file
|
||||
(expression
|
||||
(symbol) (symbol)))
|
||||
|
||||
====
|
||||
list
|
||||
====
|
||||
|
||||
[me list]
|
||||
[]
|
||||
|
||||
---
|
||||
|
||||
(source_file
|
||||
(list
|
||||
(symbol) (symbol))
|
||||
(list))
|
||||
|
||||
=====
|
||||
tuple
|
||||
=====
|
||||
|
||||
#(first second)
|
||||
#()
|
||||
|
||||
---
|
||||
|
||||
(source_file
|
||||
(tuple
|
||||
(symbol) (symbol))
|
||||
(tuple))
|
||||
|
||||
===
|
||||
set
|
||||
===
|
||||
|
||||
#{look me}
|
||||
#{}
|
||||
|
||||
---
|
||||
|
||||
(source_file
|
||||
(set
|
||||
(symbol) (symbol))
|
||||
(set))
|
||||
|
||||
==========
|
||||
dictionary
|
||||
==========
|
||||
|
||||
{key value}
|
||||
{}
|
||||
|
||||
---
|
||||
|
||||
(source_file
|
||||
(dictionary
|
||||
(symbol) (symbol))
|
||||
(dictionary))
|
||||
|
||||
===================
|
||||
function definition
|
||||
===================
|
||||
|
||||
(defn my-fn []
|
||||
(print "abcd"))
|
||||
|
||||
---
|
||||
|
||||
(source_file
|
||||
(expression
|
||||
(symbol) (symbol) (list)
|
||||
(expression
|
||||
(symbol) (string))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue