Parser Nodes
January 7, 2019 ยท View on GitHub
Each Parser Node contains logic for ensuring grammar expectations for a particular Yorlang construct are met.
Available Parser Nodes are:
- Keyword Node Fun
Here's an example of the grammar for fun:
fun<whitespace>(<jeki-expression>;<expression>;<jeki-expression>) {
<body>
}
- Keyword Node Gbewole
Here's an example of the grammar for gbewole:
gbewole<whitespace><string-expression>;
- Keyword Node Ise
Here's an example of the grammar for ise:
ise<whitespace><identifier>(<identifier>+) {
<body>
}
- Keyword Node Jeki
Here's an example of the grammar for jeki:
jeki<whitespace><identifier>=<whitespace><expression>;
- Keyword Node Kuro
Here's an example of the grammar for kuro:
kuro;
- Keyword Node Nigbati
Here's an example of the grammar for nigbati:
nigbati<whitespace>(<expression>) {
<body>
}
- Keyword Node Pada
Here's an example of the grammar for pada:
pada<whitespace><expression>;
- Keyword Node Se
Here's an example of the grammar for se and tabi:
se<whitespace>(<expression>)<whitespace>{
<body>
}
tabi<whitespace>se(<expression>)<whitespace>{
<body>
}
tabi<whitespace>{
<body>
}
- Keyword Node Sope
Here's an example of the grammar for sope:
sope<whitespace><expression>;
- Keyword Node Woke
Here's an example of the grammar for woke:
woke<whitespace>`<identifier,?>+`;
- Keyword Node Yi
Here's an example of the grammar for yi, iru and padasi:
yi<whitespace>(<identifier>)<whitespace>{
iru<whitespace><expression>:
<body>
padasi:
<body>
}