ctarbi.de - anbn language · reentrant byacc and flex

References

Examples

All examples below implements the same grammar for the language L={anbn|n >= 0}.

Standard implementation

Standard, non-reentrant implementation:

Reentrant scanner

Reentrant scanner (lexical scanner) using flex:

Reentrant scanner and parser

Reentrant scanner and (pure) parser using flex and byacc:

Reentrant scanner and parser augumented with noweb

icon-rtt do a minimum analysis of the c language sources and translates it to a noweb output that removes most of the rigidity of c source code:

Notes

More details in the link below.

This page was last modified on June 17, 2024 at 15:16:22 UTC.