module rg-layout
exports
  lexical syntax
    [\ \t\n] -> LAYOUT

  context-free restrictions
    LAYOUT? -/- [\ \t\n]

  sorts
    LongCom
    CommChar
    Asterisk

  lexical syntax
    "/*" CommChar+ "*/" -> LAYOUT
    ~[\*]    -> CommChar
    "*"      -> Asterisk
    Asterisk -> CommChar

  lexical restrictions
    Asterisk -/- [\/]
