Sign in to follow this  
  • entries
    149
  • comments
    510
  • views
    94330

Magus Scripting Language

Sign in to follow this  
noaktree

144 views

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!
Sign in to follow this  


9 Comments


Recommended Comments

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

Share this comment


Link to comment
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.


Share this comment


Link to comment
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!

Share this comment


Link to comment
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.

Share this comment


Link to comment
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.

Share this comment


Link to comment
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.

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now