Unlike my previous language this one uses tokens, I made the entire things as is from scratch in about 3 hours total, still needs work but I'm making progress every few minutes or less :) , again this was just done for fun ^^
Made so that it supports any kind of syntax, so it'll be more friendly.
Working on a run-time error reporting, and making it so that when the code is compiled into tokens to run through it fills in the missing tokens and warns the programmer - this will come later tho once it's fleshed out.
#Supports as of 0.3 4/14/2015 (12:38AM)
1. Comments & multi-line comments.
2. Compressed Compile Option just for the sake of it.
0.2 [4/14/2015] (Approx 10:xxAM)
1. Main function.
2. Variable creation within functions and soon to be global.
3. The Ability to output text to the world and variables within the strings.
0.1 [4/14/2015] (Approx 10:xxAM)
1. Created the tokenzier and a few other steps to parse and run user-created scripts in a few hours and just haven't had access to the PC at all times at the moment.
There's 3 steps to this language before it starts executing.
Text -> Tokens -> Processed Tokens -> Get Positions -> Execute Code
Example of the free-style syntax compared to the above.
ID:1832115
Apr 13 2015, 7:38 pm (Edited on Apr 13 2015, 8:39 pm)
|
|
This is a level BYOND just plain english, I call this one , tokenizer phase 2
PRCPARPARCMDCMDMTHNUMCMDSFLSTRCMDSFLPRCPARPARCMDCMDPRCPARPARCMDSTRCMDCMDNWL |
Looking good! Although my brain is unable to comprehend that much logic in one screenshot.
|
In response to Cranimus
|
|
Cranimus wrote:
Looking good!Thanks :) |
This is how it looks internally anyway.