Home | Reviews | GUIpedia | Forum | Fun500


jasonwoodlandScripting Language
I want to make a really easy-to-use scripting language. I thought of having it look like: LET = {!}. LET = {Hello } S+ {there} S+ . Or i could have a GIMI style LET EXLOC ! . LET HELLO Hello S+ there S+ EXLOC . well, i've never made a scripter before, but i want the sripter to be easy/fun to script in. the first ex is what i really want it to function like. anyone made a scripter along the lines of that? the only problem is finding where the start on things are like: + / * ^ s+ i+ {} = etc.. i really need help to get geode to work.
2009-09-229:03 PM

SonicBritRe:Scripting Language
The best way to test out a scripting language is trying to write something complex in it (like one of your games) and see how hard it is, by doing that you will see where improvements need to be made, and things changed.
2009-09-233:43 PM

jasonwoodlandRe:Scripting Language
Woah! That's really good advice. personally, i think everything would look the same with the GIMI style, what do you think?
2009-09-237:51 PM

BrandonRe:Scripting Language
GIMI Style is the same as comma separated, just instead of commas, it uses new lines. That's the easiest way, because Inputing from a file inputs until a new line or comma, making separating things like the command, variables and parameters quite easy.
2009-09-2310:05 PM

jasonwoodlandRe:Scripting Language: I\'m on the straight road
[size=2][i]The Language of the Experts [/i][/size] [b][size=5]COMPUTING[/size][/b] [i][b]Parsing.[/b] The process of scanning a string to determine its components.[/i] Cool. I wrote my own parse sub and look at the demo: LET {100} . LET {100} . LET {600} . LET {400} . WIN + . + . . . {Example window} . DRAG . . . There, a dragable window. But I must say that and {} are not the best things i could use. Maybe hardcode could be "data" and memoryloc could be $data now moving on to the windowing engine. i actually thought of having a window drawing script that someone could execute. sort of like: RUN "WINDOW.CGS" . $WINDOWX $WINX . $WINDOWY $WINY . $WINDOWW $WINW . $WINDOWH $WINH But now I want to work on changing that " . " to a simple ", " Well I've done that now. Now I just need to make it understand what to do with the commands. which commands should i include??? How should the windowing system work??? Should drawing a window be a script??? etc...
2009-09-2410:31 AM

trollyRe:Scripting Language: I\'m on the straight road
or you could make an asm like language: something like: [b]mov winx,100 mov winy,100 mov winw,600 mov winh,400 mov winattrib,3 [/b] [i](01 for dragx, 10 for dragy for example) [/i] [b]syscall draw_window[/b] for a loop: [b]mov r1,10 begin_loop:[/b] [i];do something ;with "loop" the system decrease register 1 and go to begin_loop if r1 >0 else it continue after the loop[/i] [b]loop r1,begin_loop[/b] ;for variables, the program could have a limited number of "register", like r1,r2,r3,r4 or use allocated memory for biger variable (and have a limited number of memory handler) exemple: [b]malloc m1,1024[/b] [i];allocate 1024 byte and put the handler to m1[/i] [b]mfree m1[/b] [i];free m1 handler[/i] [b] mwrite m1,0,r1 [/b] [i];write the content from register r1 to memory bloc m1 at offset 0[/i] [b]mread r1,m1,1 [/b] ;[i]write the from memory bloc m1 at offset 1 to register r1[/i] there is only examples, certainly improvable
2009-10-024:29 AM

jasonwoodlandRe:Scripting Language
Thanks Trolly, maybe i could have 2 types of programs to run. EAS (Execute ASM) (Your language) and ECR (Execute Crystal) (My language) would that be cool? PS: Would you make a few scripts when i release Geode 1?
2009-10-031:02 AM

GUIs


2021 Brandon Cornell