language: implement let definitions

This commit is contained in:
2023-09-11 04:57:13 -04:00
parent 5d53381b82
commit 8f60039d6e
12 changed files with 95 additions and 8 deletions

View File

@ -16,6 +16,7 @@ digraph A {
type_FunctionCall [shape=box,label="FunctionCall"]
type_ArgumentSpec [shape=box,label="ArgumentSpec"]
type_FunctionDefinition [shape=box,label="FunctionDefinition"]
type_LetDefinition [shape=box,label="LetDefinition"]
type_If [shape=box,label="If"]
type_ImportDeclaration [shape=box,label="ImportDeclaration"]
type_IntegerLiteral [shape=box,label="IntegerLiteral"]
@ -58,6 +59,7 @@ digraph A {
type_Expression -> type_Break
type_Expression -> type_Continue
type_Definition -> type_FunctionDefinition
type_Definition -> type_LetDefinition
type_Declaration -> type_ImportDeclaration
type_Definition -> type_Symbol [style=dotted]
type_Definition -> type_DefinitionModifiers [style=dotted]
@ -80,6 +82,9 @@ digraph A {
type_FunctionDefinition -> type_ArgumentSpec [style=dotted]
type_FunctionDefinition -> type_Block [style=dotted]
type_FunctionDefinition -> type_Native [style=dotted]
type_LetDefinition -> type_DefinitionModifiers [style=dotted]
type_LetDefinition -> type_Symbol [style=dotted]
type_LetDefinition -> type_Expression [style=dotted]
type_If -> type_Expression [style=dotted]
type_If -> type_Block [style=dotted]
type_ImportDeclaration -> type_Symbol [style=dotted]