If your goal is to have a C like scripting language for your command line, Tiny 
C Compiler (http://bellard.org/tcc/) already do this.

http://bellard.org/tcc/

Just start your C code by: 
#!/usr/local/bin/tcc -run
and you can use it from the command line :)


 
*----------------------------------------------------------------------* 
  | _,,,---,,_            
  /,`.-'`' -. ;-;;,_     Thierry CABUZEL
 |,4- ) )-,_. ` ( ``-'   E-mail: [email protected] 
`---``(_/--` `-`_) 
*----------------------------------------------------------------------* 




----- Forwarded Message ----
From: Bob Smiley <[email protected]>
To: [email protected]
Sent: Friday, February 27, 2009 5:47:46 PM
Subject: [antlr-interest] Is this the correct use of ANTLR

 
Hi all,
 
I’m trying to create a simple scripting language that
looks similar to C but I don’t actually need to implement an interpreter.
  I just want to convert this “ultra-simple C” subset
language into basic C and then run it through GCC to create an executable. 
Is it easier to start with say an ANSI C grammar and cut out what I don’t
need or actually find a more simple programming language?  I really just
want mathematical expressions, functions defined within the file, if/else
if/else, and loops  (while, for, foreach).
 
My end goal is to be able to take a user’s script
file, process it, add the required integration fluff and then create a .o I can
link into my application.
 
I’m a total newbie when it comes to this stuff so I apologize
in advance for the basic question.
 
Thanks


      
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

Reply via email to