Page 3 of 3

Re: [Zscript] Mod/File checking

Posted: Mon Oct 17, 2016 10:05 am
by Ryan Cordell
Oh I'm sure they do.. right now, but that doesn't feel like a smart system to begin with.

Re: [Zscript] Mod/File checking

Posted: Mon Oct 17, 2016 12:18 pm
by Major Cooke
Well, again, I can't be certain. I'm just guessing there.

Also, made a separate thread for general discussion and questions considering how off the rails I took this thread. :P

Re: [Zscript] Mod/File checking

Posted: Mon Oct 17, 2016 3:26 pm
by Graf Zahl
There's 4 types of constants:

ints, floats, strings and names.

Strings can be unambiguously recognized by double quotation marks.
Names can be unambiguously recognized by single quotation marks.
Floats get recognized by either being too large for integer storage or typical floating point signs in the literal, like a decimal point or an exponent

And in case you wonder what this part was inspired by, I'd say don't look further than the most popular scripting language right now: Lua. Of course Lua takes the 'the value determines the type' approach even further by applying it to everything.

Re: [Zscript] Mod/File checking

Posted: Tue Oct 18, 2016 12:16 pm
by Major Cooke
Alright. I've documented all that down on the wiki.

Now back to the suggestion at hand, how will the zscript control work?

Re: [Zscript] Mod/File checking

Posted: Tue Oct 18, 2016 12:44 pm
by Graf Zahl
Can we please get this stuff working first? Right now this thing is not even on my radar.

Re: [Zscript] Mod/File checking

Posted: Tue Oct 18, 2016 12:49 pm
by Major Cooke
My mistake. When you stated there's options, I had assumed there was already some form.

Re: [Zscript] Mod/File checking

Posted: Tue Oct 18, 2016 3:58 pm
by Graf Zahl
It makes no sense to think about control stuff when I'm still in the initial stages of making the compiler work.

Re: [Zscript] Mod/File checking

Posted: Sat Dec 03, 2016 10:22 pm
by Major Cooke
I think now might be a good time to bring this up again.

Perhaps something similar to how C++ does (end)if's might work? By checking for a specific 'tag' or something inside the files and versioning like you mentioned, this could become extremely useful.

This would be better than just going on file names alone since those may be prone to change.

Re: [Zscript] Mod/File checking

Posted: Mon Jan 09, 2017 3:59 pm
by Graf Zahl
This one's already in the tracker.

Re: [Zscript] Mod/File checking

Posted: Sun Apr 30, 2017 1:41 pm
by Rachael

Re: [Zscript] Mod/File checking

Posted: Sun Apr 30, 2017 2:00 pm
by Graf Zahl
Removed the 'closed' tag.