help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Tokens to patterns?


From: Maury Markowitz
Subject: Tokens to patterns?
Date: Wed, 30 Dec 2020 12:44:54 -0500

Early imperative languages like FORTRAN and BASIC are marked by a large number 
of keywords. In my bison code I have pages of %token lines for PRINT and INPUT 
etc, which I then replicate in my flex with something like PRINT { return 
PRINT; }. This seems wasteful and just the thing the system should be 
automating away, am I missing a way to “autoflex” my tokens?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]