Go Down

Topic: ANTLR Language Files / Definitions (Read 1 time) previous topic - next topic

kennebel

I would like to implement the Arduino language in a simulated environment and am trying to find the ANTLR language definition files. (instead of recreating them by hand) Are these available for non-Arduino projects, or do I just need to get defining by hand? :) "Arduino-like" would good enough for what I am doing, just hoping to save some time/repeated effort.

Udo Klein

The "Arduino language" is better known under the name "C++". It is only the IDE that tries to disguise the fact that you are actually dealing with C++. Probably because some people seem to have the strange conception that C++ is somewhat difficult to learn.
Check out my experiments http://blog.blinkenlight.net

kennebel

Well, that makes things easier. :)

Thank you for your quick response. It looks like then, for my simulation I'll just need to implement hooks for the predefined Arduino constants and functions that I found on the language reference page. Excellent.

(and of course, figure out ANTLR. You'd think 20 years of coding would prepare me for this meta task of coding for coding)

Udo Klein

Check out my experiments http://blog.blinkenlight.net

Go Up