FredericDesgreniers / snow_automata

0 stars 0 forks source link

Add support for | operator #1

Closed FredericDesgreniers closed 6 years ago

FredericDesgreniers commented 6 years ago

Currently, if multiple inputs lead to the same destination, they all need to be written one by one, for example

'a..'b' => Self
'0'..'9' => Self

Adding the | operator would allow

'a'..'b' | '0'..'9' => Self
FredericDesgreniers commented 6 years ago

Matches can now be concatenated using '|'

Example:

'a'..'z' | _ => Self