Ratstail91 / Toy

The Toy Programming Language.
https://toylang.com/
zlib License
231 stars 11 forks source link

Write tests to ensure scripts fail gracefully #142

Open Ratstail91 opened 1 month ago

Ratstail91 commented 2 hours ago

Example of a malformed assignment

var a = 0;
var b = a = a + 1, 6;

Expected:

COMPILER ERROR: Invalid AST type found: Malformed assignment