mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2025-09-17 00:11:31 +00:00
Multi-module arrangement and the start of AST generation.
This commit is contained in:
38
ast/src/main/ast/pork.yml
Normal file
38
ast/src/main/ast/pork.yml
Normal file
@ -0,0 +1,38 @@
|
||||
root: Node
|
||||
types:
|
||||
Expression:
|
||||
parent: Node
|
||||
Symbol:
|
||||
parent: Node
|
||||
Declaration:
|
||||
parent: Node
|
||||
Definition:
|
||||
parent: Node
|
||||
values:
|
||||
- name: symbol
|
||||
type: Symbol
|
||||
- name: modifiers
|
||||
type: DefinitionModifiers
|
||||
DefinitionModifiers:
|
||||
values:
|
||||
- name: export
|
||||
type: Boolean
|
||||
Block:
|
||||
parent: Node
|
||||
values:
|
||||
- name: expressions
|
||||
type: List<Expression>
|
||||
CompilationUnit:
|
||||
parent: Node
|
||||
values:
|
||||
- name: declarations
|
||||
type: List<Declaration>
|
||||
- name: definitions
|
||||
type: List<Declaration>
|
||||
Assignment:
|
||||
parent: Expression
|
||||
values:
|
||||
- name: symbol
|
||||
type: Symbol
|
||||
- name: value
|
||||
type: Expression
|
Reference in New Issue
Block a user