MatthewKosloski / torrey

The Torrey Programming Language

Home Page:https://torrey.xyz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement the nil literal expression

MatthewKosloski opened this issue · comments

Modify the grammar to include a nil expression:

primitive     -> integer | boolean | "nil" ;

Acceptance Criteria:

  • Can print nil to standard output
  • No longer throws semantic error when printing expressions with data type nil. Instead, we should just write nil to standard output.