Re: Parser generator (+ Lexer) that actually works?



tom.rmadilo wrote:
Then you really aren't talking about a new language to parse.

What is a new language?

other grammar?
other keywords ?
other commands ?

A programmer I worked with used the complete yacc lex bison whatnot
suite to create a very limited scriptable instrument control language
that did not deviate enough from a DOS polled programming style ( on a
multiuser multitasking unix platform ) to achieve the design targets
in an acceptable manner. ( ditched it after a short time )

A year later I wrote a scriptable framework ( one scriptable n path
message multiplexer, one scriptable checkpoint oriented parallelized
sequencer that plugged, like all other functionalities, into the
multiplexer as separate processes) to actually fill the usage
requirements of our instrument.
(forex commanding antenna movements while the spectrometer got
serviced with a data read out, continuing when movement _and_ readout
where complete )

had I known tcl at the time ( and "firstextension" expect and
the event based programming stuff been implemented yet) I would
have been able to achieve my goal in a tenth of the time and a
much reduced need to maintain a standalone framework.

uwe
.



Relevant Pages

  • Re: Build your own Forth for Microchip PIC: the nature of metacompilation
    ... You have never tried a Forth dialect like LSE, and I doubt that you would be willing to understand it anyway. ... but you still have to use block structure for loops and conditionals. ... In a compile-only Forth you want to design the language with commands in mind. ... I can't comment on your programming style any more knowledgeably than you can on mine. ...
    (comp.lang.forth)
  • A Quick Review of "The Reasoned Schemer"
    ... The main purpose of the book is to attach a set of logic programming ... commands to the core R5RS scheme that allow you to implement all kinds ... a syntax modeled on standard FP scheme syntax. ... standard FP commands in scheme, ...
    (comp.lang.scheme)
  • Re: My encrypt/decrypt algorithm...
    ... show a method you would use to decrypt my algorithm? ... Both RUN, and GOTO, are considered bad programming practices nowadays ... and many other languages. ... The later versions of QB offer other commands ...
    (sci.crypt)
  • Re: (SPI equipped) Sensor Data to PC
    ... I mentioned that I am not that experienced with programming ... You need to learn more about SPI. ... Then I'd have a close look at the sensor datasheet ... see what commands are required to read and write to the sensor's registers. ...
    (comp.arch.embedded)
  • Is it possible that more than 1 project to share the same resource.h file?
    ... I'm programming an application that is very big, ... are extension DLL projects. ... that MDI document need to refresh that modified ... significance in menu commands and toolbar commands. ...
    (microsoft.public.vc.mfc)