Lex/yacc aren't suitable for QB64...by (Login MystikShadows)R They used what is called the Backus Naure Format (BNF) and flex/bison use EBNF. if I recall.
Problem with that is that the possible syntax do not account for all the specifics of the QB language what people call QB Quirks. no BNF can take care of that properly. some of the language could be parsed this way, but ultimately some custom code would be needed for parts of the language and you don't really wanna start mixing the two methods plus custom code. one method is enough per compiler project. |
| Response Title | Author and Date |
| * You mean like the 2 forms of OPEN and the two different PUT commands? | qbguy on Apr 29 |
| No, that can be defined in BNF yes...... | on Apr 30 |
| You can do function calls in a form of BNF. | RpgFan on May 12 |