Open SamuelmsWong-zz opened 5 years ago
One approach would be to split off the common %token T_*
at the start of the .y
s into a sf-common-tokens.y
and to similarly split off the common grammar rules into a sf-common-grammar.y
. @SamuelmsWong @rjlv2 @jan-heck : if any of you are interested...
Hi. I can probably get started on this in a few weeks.
That's great!
lex-hitachi-sh.c
andlex-riscv.c
differ only in the tokens for their assembly instructions, so the rest (tokens for Sunflower commands and the lexical analyser function) is all duplicated.