Open
Description
Feature Request
Is your feature request related to a problem? Please describe:
This is a track issue for tree sitter kcl.
spec ref:
-
https://github.com/kcl-lang/kcl-lang.io/blob/main/docs/reference/lang/spec/kcl-spec.md
-
Keywords and reserved words
True False None Undefined import and or in is not as if else elif for schema mixin protocol check assert all any map filter lambda rule
The following are reserved words for the KCL:
pass return validate rule flow def del raise except try finally while from with yield global nonlocal struct class final
-
Line comment
# a comment
-
Operators
+ - * ** / // % << >> & | ^ < > ~ <= >= == != = += -= *= **= /= //= %= <<= >>= &= ^=
-
Delimiters
( ) [ ] { } , : . ; @
-
Operator precedence https://kcl-lang.io/docs/reference/lang/spec/kcl-spec#operator-precedence
Grammar
- simple_stmt
- assign_stmt
- unification_stmt
- expr_stmt
- assert_stmt ✨ add assign grammar #3
- import_stmt 🎉 init tree-sitter-kcl with import statement #1
- type_alias_stmt
- compound_stmt
- if_stmt
- schema_stmt
- rule_stmt
- decorators
- type
- check_stmt
- mixin_stmt
- operand
Metadata
Metadata
Assignees
Labels
No labels