Skip to content

Latest commit

 

History

History
129 lines (85 loc) · 2.52 KB

README.md

File metadata and controls

129 lines (85 loc) · 2.52 KB

Parser Nodes

Each Parser Node contains logic for ensuring grammar expectations for a particular Yorlang construct are met.

Available Parser Nodes are:

Here's an example of the grammar for fun:

fun<whitespace>(<jeki-expression>;<expression>;<jeki-expression>) {
    <body>
}

Here's an example of the grammar for gbewole:

gbewole<whitespace><string-expression>;

Here's an example of the grammar for ise:

ise<whitespace><identifier>(<identifier>+) {
    <body>
}

Here's an example of the grammar for jeki:

jeki<whitespace><identifier>=<whitespace><expression>;

Here's an example of the grammar for kuro:

kuro;

Here's an example of the grammar for nigbati:

nigbati<whitespace>(<expression>) {
    <body>
}

Here's an example of the grammar for pada:

pada<whitespace><expression>;

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>
}

Here's an example of the grammar for sope:

sope<whitespace><expression>;

Here's an example of the grammar for woke:

woke<whitespace>`<identifier,?>+`;

Here's an example of the grammar for yi, iru and padasi:

yi<whitespace>(<identifier>)<whitespace>{
  iru<whitespace><expression>:
    <body>
  padasi:
    <body>
}