?

Log in

No account? Create an account
Previous Entry Share Next Entry
Parsers
ajose
One thing that has come quite clear from all this work with parsers is which type of instructions one language should have to be able to efficientely manipulate and handle parsers.

One thing I like in FORTH it the easyness to build any parser, specialy if it can be expressed with tokens separated by blanks (spaces, tabs or linebreaks) as that is already the natural behaveour of the FORTH interpreter.... And due to the fact that any usual ANS FORTH has the INTERPRET word as a defered word, it's always quite easy to built any arbitrary parser and use it insteaad of the default INTERPRET word....

But I think that it sould go a little further....
I've already identified a number of words and factors always common in any parser and my Mex4th will try to incorporate them in the INTERPRETER word list....