So this is an idea I have been toying with, and now have finally gotten around to.
QuickCode is a very simple object-oriented programming language that I am writing completely in JavaScript and HTML.
Example:
Set x 0 Point 90 Wait 2 Move 10
Instead of simply having QuickCode call ordinary JavaScript functions, I went even further and made a parser to actually translate QuickCode into JavaScript. This is the algorithm the parser follows.
1. Split the entire script into "blocks" using a regular expression
2. Use other regular expressions to determine which command each block is calling
3. Execute the command based on the inputs (also determined using regular expressions)
What would I do without regular expressions?
QuickCode is aimed at beginner programmers, as the more "natural" feel of
Change y 10
is much less daunting than the "technical"
moveObj(sprite, 0, -10)
Any comments, suggestions, feedback of any sort?
Offline
thats pretty cool
Offline
That's cool
Offline
Yeah, regex is so cool! wish VB had it, would have made my FireScript parser go down 300 lines.
Offline
I don't know VB, but now that you say that, I question whether or not I want to learn it!
Offline
Status Update: The parser is now about half way done. I have been hampered by a ton of bugs, but am making (slow) progress.
Currently, QuickCode has 6 motion "block"s and 1 control "block." (A "Block" is actually just a command in the script.)
I would be interested to know if there are any volunteers for beta testing.
Offline
ohaiderstudios wrote:
Status Update: The parser is now about half way done. I have been hampered by a ton of bugs, but am making (slow) progress.
Currently, QuickCode has 6 motion "block"s and 1 control "block." (A "Block" is actually just a command in the script.)
I would be interested to know if there are any volunteers for beta testing.
I! (btw, i'm working on a very similar project in BYOB
)
Offline
ohaiderstudios wrote:
I don't know VB, but now that you say that, I question whether or not I want to learn it!
![]()
Actually, I love VB. Just it doesn't have regex and it was hard to make my custom language. Other than that you can achieve great great things. For example, see my previous OS!
Offline
bbbeb wrote:
VB is so awesome....
..but sadly, C++ is still more flexible.
Actually, i just started making large use of API's in VB.
The InteropServices namespace provides a great way of using the Windows functions (that you'd normally use in C++) in my favourite language!
Offline
ohaiderstudios wrote:
I would be interested to know if there are any volunteers for beta testing.
Here you are a volunteer. Leave a message in one of my projects to let me know when you are ready.
Offline
s_federici wrote:
ohaiderstudios wrote:
I would be interested to know if there are any volunteers for beta testing.
Here you are a volunteer. Leave a message in one of my projects to let me know when you are ready.
Alrighty!
Offline
I'll beta test.
Offline
I can beta test. I understand almost all of scratch and this seems similar to it.
How do you make a scripting language anyway?
Offline
I'll beta test. I'm familiar with a bit of c.

Offline
That's a really interesting idea. Might I suggest that you use sprite1.x = 5 instead of Set x 0? That'd just build some bad habits when every programming language other than Batch and maybe UNIX (I'm bad with Unix; I can compile some languages and open files). Your choice; it looks more complicated my way.
Offline
Curses! This thread resurfaced! Unfortunately, I accidentally deleted quickcode.js a LONG time ago, and haven't had the time to reconstruct it. This is officially discontinued.
Offline