runtimejs / runtime

[not maintained] Lightweight JavaScript library operating system for the cloud
http://runtimejs.org
Apache License 2.0
1.93k stars 127 forks source link

Help with compiling #119

Closed RossComputerGuy closed 8 years ago

RossComputerGuy commented 8 years ago

I am working on BasicOS and I am building the BOSS Script (BasicOS Servers). Here is the syntax Open: <{ Close: }>

Cool thinks in this language:

I need to know how to detect syntax and stuff.

facekapow commented 8 years ago

I'm pretty sure that's not as much of a straightforward as you think. Just Google "writing a compiler" and see what you get (the first result is pretty good). However, there are some good tools to help you do this in JavaScript, like Jison. Heck, even I wrote a tiny, not useful at all, probably broken, just for fun language with it (if I can do it, anyone can 😄 ).

But, this is definitely not the right place to ask. However, Google is your friend 😉 .