Jump to content

Custom Language


Altair

Recommended Posts

Hello All,

 

I've been developing in PHP for several years, but in other languages for several more ;)

 

Anyway... I have been combing the internet for a simple (I MEAN SIMPLE) custom language parser.  Let me explain what I'm trying to do.

 

I'm trying to develop a simplified macro type parse in php... Example of the custom language:

 


 

cvar myVar1 = 'hello world';

cvar myVar2 = 'blah';

 

if (myVar1 != myVar2)

{ storeToDB(); }

 


 

Do any of you have any idea how to do this without developing some uber complex lexer and parser situation?  Or perhaps you know where I might find one that I can use in my code set?

 

Keep in mind that my goal is that this is developed in PHP.

 

Does that make sense?  Let me know if more info is needed.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.