Tode

→ language creator

NOTE: I've totally changed how Tode looks and works. This is what it used to look like.


Write Tode to show how to translate one language into another.

It's currently a work-in-progress.

This is what it currently looks like:

Name :: "name" => Luke

Rules


Tode is a bunch of rules.
All parts of a rule are optional.


The pattern shows the translater how to identify the rule.

"name"


The output shows how to translate into the target language.

"name" >> Luke


The rule name(s) can help you to identify the rule.

Name :: "name" >> Luke

Pattern


The pattern is a list of items.
It shows how to identify a rule.

It can consist of these items:


Text

"name" >> Luke


Regex

/name/ >> Luke


Rule Name

Name >> Luke


Value

{2 + 2} >> 5

Output


The output shows Tode how to translate into the target language.


Translate

"name" >> Luke


Dynamic Translate

The output can be generated dynamically from the pattern.

"greet" Text >> Hello {2}!


Bake

The output can be processed in your target language at compile time.

Number _ "+" _ Number << {1} + {3}


Re-Translate

The output can be re-translated in your language.

"name" => "Luke"