Apitax / Scriptax

Scriptax is a general purpose, automation first language used to quickly script together automation.
GNU General Public License v3.0
2 stars 0 forks source link

Add Enumeration Types #27

Closed ShawnClake closed 5 years ago

ShawnClake commented 5 years ago

this should be added as a variable type.

2 types of syntax's should be supported

  1. (MONDAY, TUESDAY, WEDNESDAY, THURSDAY)
  2. (MONDAY -> 0, TUESDAY -> 1, WEDNESDAY -> 2)

This allows us to map a value to each enumeration or choose not to.

Potential grammar: LPAREN label (ARROW expr)? (label (ARROW expr)?)* RPAREN

ShawnClake commented 5 years ago

grammar added, not implemented