aspose file tools*
The moose likes General Computing and the fly likes How to develop a simple script language from scratch Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "How to develop a simple script language from scratch" Watch "How to develop a simple script language from scratch" New topic
Author

How to develop a simple script language from scratch

Claude Moore
Ranch Hand

Joined: Jun 24, 2005
Posts: 471
    
    1

Good morning guys,

I'd like to develop a simple script language - a very very simple one - and I'd like to know from your where I can start learning on this theme.
I need some tutorial or book I can study on and learn the very fundamental things.....

Thanks for your help!
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

How much compiler theory do you know? You need to know how to properly parse the text, and convert it into actions, and that is what compiler theory will tell you.


JBoss In Action
Claude Moore
Ranch Hand

Joined: Jun 24, 2005
Posts: 471
    
    1

On the matter I know absolutely nothing.. since I'd like to be helpded with hints to start from....What I have in mind is to develop a very simple script language to be interpreted by a standard JVM, something similar - but less ambitious - to Jython - which as far as I know is a Java intepreter for the Python language.

Can you give me any suggestions ?

Thank you for your help.
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
If you want to learn the theory behind it, then http://www.amazon.co.uk/Compilers-Principles-Techniques-Alfred-Aho/dp/0321491696/ is the standard book on the subject.
Claude Moore
Ranch Hand

Joined: Jun 24, 2005
Posts: 471
    
    1

Thank you for your suggestion. I'll look for that title and similar ones.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to develop a simple script language from scratch