kevinbarabash / compiler

2 stars 0 forks source link

add support for top-level declarations #1

Closed kevinbarabash closed 2 years ago

kevinbarabash commented 2 years ago

This introduces a Program type which contains multiple declarations/expressions. Each of these must be finalized by a semi-colon or a newline.

This PR also implements our first eval test.

Test Plan: