HuoLanguage / huo

interpreted language written in C
MIT License
212 stars 21 forks source link

Array syntax #42

Open TheLoneWolfling opened 8 years ago

TheLoneWolfling commented 8 years ago

Currently such oddities as [0 0 0 0] or [0'0'0'0] "work" in the sense that they get parsed.

Ditto, things like (let x0).

Should we allow them? Or just restrict it to " comma ? Or what?

In general: should we require whitespace? Or not?

incrediblesound commented 8 years ago

Ah I see. I'm experimenting with the tokenizer and parser right now, so I'll see if I can come up with a syntax that is more strict in some cases.

TheLoneWolfling commented 8 years ago

Good to know - I shall stay away from that then for now. I'm currently working on tidying up core_functions.c and related.

incrediblesound commented 8 years ago

Nice job on those core functions by the way! I just made an issue about the minus sign which is related to this one, if you want you can assign tickets to yourself so that we don't do overlapping work. I'll assign ones I plan on doing to myself.

TheLoneWolfling commented 8 years ago

Thank you, and I shall.

TheLoneWolfling commented 8 years ago

Should we allow things like [1,,2]? If so, should the blank values be undef, or what?