[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
context dependencies
From: |
Ricky Zhang |
Subject: |
context dependencies |
Date: |
Thu, 1 Dec 2016 23:19:29 -0500 |
I have read through 'handling context dependencies' section Bison manual.
But I still haven't figured out the proper solution to my problem.
We have production rule:
expr : expr SINGLE_SPACE expr { /* some operation */ }
| expr + expr
...
;
expr: NUMBER
| ID
;
and also for all white space [SINGLE_SPACE | \t]* in the language should be
ignored. Are there any easy way to solve it?
Thanks,
Ricky
- context dependencies,
Ricky Zhang <=