Home \ Help \ Search \ Login RSS

Welcome, Guest. Please Login

This forum is now READ-ONLY! Please visit http://forum.wiring.co/ for the new forum.

Wiring ForumProgramming Questions & HelpSyntax › Grammar/Syntax (YACC/ANTLR) for Wiring

Page Index Toggle Pages: 1
Grammar/Syntax (YACC/ANTLR) for Wiring (Read 6074 times)
10/17/10 at 22:21:15

joan   Offline
YaBB Newbies

Posts: 1
*
 
Hi,

I'm interested in the formal specification of the wiring language for use in YACC/ANTLR etc etc.

I've used a couple of grammars for AnsiC and C# as a "starting point" and can syntax check a few arduino demo programs using them. But there are clearly differences in the language that I would need to address, and it would be very helpful if I could get a more detailed spec of wiring to do this.

Thanks in advance..
 
IP Logged
 
Reply #1 - 10/18/10 at 04:09:16

barragan   Offline
YaBB Administrator

Posts: 939
*****
 
Hi joan, there used to be a language preprocessor using antlr in older versions of Wiring, you can still find the files in the source tree: http://wiring.uniandes.edu.co/source/trunk/wiring/app/src/processing/app/preproc/
It has no effect today, the whole language is based on C/C++, the API is written in C/C++ so the avr-gcc is used directly to compile the sketches.
 
IP Logged
 
Page Index Toggle Pages: 1