User loginNavigation |
Help with Mixfix in Bison?As BitC moves towards a more human-compatible (sorry lispers!) surface syntax, we're considering mixfix parsing. Since it really applies only in the expression sub-grammar, it seems like a shame not to be able to use Bison (or something similar) for the rest of the grammar. As near as I can tell, the only way to implement this is to have Bison simply accumulate a token sequence for expressions without trying to deal with precedence at all, and then apply a rewriter on the resulting AST to apply operator precedence rules dynamically. Hmm. A kludge may be possible with mid-production actions and GLR parsing. Is there a known solution to this, or am I just barking up trees? By shap at 2008-09-29 00:15 | LtU Forum | previous forum topic | next forum topic | other blogs | 6721 reads
|
Browse archives
Active forum topics |
Recent comments
37 weeks 3 days ago
37 weeks 4 days ago
37 weeks 4 days ago
1 year 7 weeks ago
1 year 11 weeks ago
1 year 13 weeks ago
1 year 13 weeks ago
1 year 16 weeks ago
1 year 20 weeks ago
1 year 20 weeks ago