TDA283-compiler-construction / project

Material for TDA283 / DIT300 Compiler Construction
11 stars 27 forks source link

Remove test with spaces in type-brackets #37

Closed oskarabrahamsson closed 2 years ago

oskarabrahamsson commented 2 years ago

The aim of this PR is to simplify the syntax for array types a bit. Previously, your parser would have to deal with array brackets as separate tokens, e.g.: int [ ] x;. Now, you can assume that all array type brackets come as one token: int [] x;.