fasterthanlime / jooc-legacy

:crocodile: The historical, initial implementation of an ooc compiler in Java
http://ooc-lang.org/
MIT License
115 stars 4 forks source link

ooc should disallow names that c disallows #20

Closed fredreichbier closed 15 years ago

fredreichbier commented 15 years ago

For example, this is valid ooc code:

char := 1

But gcc doesn't want it:

In file included from ooc_tmp/bugs/names.c:2:
ooc_tmp/bugs/names.h:24: error: two or more data types in declaration specifiers
ooc_tmp/bugs/names.h:24: warning: useless type name in empty declaration
ooc_tmp/bugs/names.c: In function '_names_load':
ooc_tmp/bugs/names.c:26: error: expected identifier or '(' before '=' token
C compiler failed, aborting compilation process
nddrylliog commented 15 years ago

Fixed. Added checks for all C99 keywords.