Libraries@ components@ Rules@
On creating languages:
The easy way to do this is to use LEX and YAcc, after first specifying your 'basic' grammar. YAcc will spit out c code to parse your 'basic' language. You can use this code as your cross compiler which will run on windoze, Linux, etc. You also need to write the routines to perform the actions that the tokens in you grammar will cause to be called. People can kick out compilers like this in an afternoon. You get a serious compiler this way that can handle any level of parenthetical expressions.
There are good tutorials on the web. (http://epaperpress.com/lexandyacc/) The point is -- a couple of days with a book on YAcc and LEX to understand it will pay off any time you have to parse something -- for the rest of your programming life.
The comp.compilers newsgroup, archive, links
"Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to one instruction which doesn't work." -- Anon.
"The most important thing in the programming language is the name. A language will not succeed without a good name. I have recently invented a very good name and now I am looking for a suitable language." -- D. E. Knuth, 1967
A computer scientist is someone who, when told to "Go to Hell," sees the "go to," rather than the destination, as harmful. -- Dr. Roger M. Firestone, firstname.lastname@example.org
|file: /Techref/language/index.htm, 10KB, , updated: 2020/6/19 08:50, local time: 2021/1/20 21:06,
|©2021 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?|
<A HREF="http://www.piclist.com/techref/language/index.htm?key=c"> Programming Languages</A>
|Did you find what you needed? "c"|
PICList 2021 contributors:
o List host: MIT, Site host massmind.org, Top posters @20210120 Sean Breheny, Jason White, William Westfield, Alan Pearce, RussellMc, Richard Prosser, Justin Richards,
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
Welcome to www.piclist.com!