arturocepeda / Cflat

Embeddable lightweight scripting language with C++ syntax
49 stars 8 forks source link

Single char expressions are not supported #17

Closed mundusnine closed 5 months ago

mundusnine commented 5 months ago

Doing this: char singleChar = '_'; will create a Compile Error: image

Basically, single chars aren't supported in the tokenizer right now, in that case what happens is it gets parsed as an Identifier.

arturocepeda commented 5 months ago

Right, character literals are not supported yet. Will add that!

arturocepeda commented 5 months ago

Character literals should now be supported.

mundusnine commented 5 months ago

This fixed it. Thank you.