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
https://forums.phpfreaks.com/topic/95686-custom-language/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.