0xCAB / foma

Automatically exported from code.google.com/p/foma
0 stars 0 forks source link

Request: "Otherwise" rule #23

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
If there is a character that can take multiple values, it would be useful, if 
there existed an "otherwise" rule.

Example: §aoe§ set up in the .lexc file can be a, o or e.
in .foma file:
define Ruleforaoe §aoe§-> a // Rule1,,
                  §aoe§-> o // Rule2 | Rule3,,
                  §aoe§-> e // _Otherwise_;

The advantage for the user, that he does not have to think out any special rule 
for passing the value 'e' to the character, just simply say _Otherwise_. 

Original issue reported on code.google.com by eleonor...@gmx.net on 20 Feb 2012 at 3:46