sjbarag / brs

An interpreter for the BrightScript language that runs on non-Roku platforms.
MIT License
113 stars 43 forks source link

Decouple reserved words and keywords #79

Closed sjbarag closed 5 years ago

sjbarag commented 5 years ago

It's become obvious that keywords and reserved words receive separate treatment within the Reference BrightScript Implementation (RBI), e.g.:

  1. The as keyword is not a reserved word, so is a valid variable name.
  2. The Type reserved word is not a keyword - just a reserved identifier.

Since these properties seem to be able to vary independently, it makes sense to handle them separately within the lexer and parser created here.

sjbarag commented 5 years ago

Closed via #95 (I linked to the wrong issue, whoops)