Magus Scripting Language

posted in noaktree leaves
Published June 24, 2005
Advertisement
The dramatics...

Perhaps it is my love of grammar that has driven me to this point. Perhaps context free languages and Backus-Naur form are the only reason I continue to breathe. Perhaps it was the uranium flavored tobacco that my father used to smoke. Whatever the reason, let it be known that I have decided to write my own scripting language.

Initial progress...

So far I have developed a tokenizer (preprocessor) for the source. I have been using the CPPUnitLite library for running tests and this has gone really well. Thanks to whoever suggested it! [smile] I'm currently writing out a grammar definition for the first parsing class. It should be similar to C++ in syntax with minor differences for variable declaration and functions. I've decided to name my first language Magus. Wish me luck!
Previous Entry Better never than late
Next Entry Magus Expressions
0 likes 9 comments

Comments

jollyjeffers
Quote:Perhaps it was the uranium flavored tobacco that my father used to smoke.

Uranium has a flavour??

Anyway - I wish you, and Magnus, luck [smile]

I did a module in compiler theory at university, was far from the easiest module I've done but it was facinating.

I've been doing a lot of work (for my "real" job) based on the Eclipse platform doing language editors - aka source code IDE stuff.

To get a truly intelligent editor you need to drop back down to proper token parsing and AST's, sadly I haven't had the time to do this our current project [sad]

Jack
June 25, 2005 05:41 AM
Rob Loach
Quote:Magus: Magus In the New Testament, one of the wise men from the East, traditionally held to be three, who traveled to Bethlehem to pay homage to the infant Jesus.


June 25, 2005 10:03 AM
jollyjeffers
Oh, so it was Magus NOT Magnus - oops [oh]

Jack
June 25, 2005 12:12 PM
Muhammad Haggag
Neil, I ENVY you. You get to play with too much fun stuff. Compilers are awseome - I considered my graduation project to be the making of a compiler, but opted for an OS instead [grin]

Good luck!
June 25, 2005 12:55 PM
noaktree
Thanks everyone!!

Uranium tastes a little like habanero sauce. [smile]

No Rob - It's not named after the jesus thing. A magus is just a nice word for master sorcerer or mage, etc. The priests of the Zoroastrian (fire worship) religion are referred to as magus. I just thought that a magus was probably one of the first parsers to ever exist. [smile]

Quote:I considered my graduation project to be the making of a compiler, but opted for an OS instead
Making an OS sounds really cool too.
June 25, 2005 03:39 PM
Daerax
wtf ! From whence hath thou gathered such skill from, good man?
June 26, 2005 12:19 AM
noaktree
Quote:wtf ! From whence hath thou gathered such skill from, good man?
Wow! Uhmm I just keep trying. It probably has something to do with my parental figures.
June 26, 2005 01:04 AM
Daerax
Are they geniuses or towering intellectuals?

Or the alternative:

you were only fed and given a bed to sleep in only if you got A's.
June 26, 2005 02:33 AM
noaktree
[lol]
June 26, 2005 05:40 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement