declare_stmt ::= "DECLARE" ("SUB" alnum+ | "FUNCTION" alnum+ suffix)
No, that's not complete, nor is it even halfway correct. I simply did it to show how amazingly annoying it would be to do it. With the way QB is structured, it is rather difficult to do. Oh, and did I mention that I didn't even think about spacing between tokens, never mind the whole bit where you can separate things onto multiple lines using the underscore at the end of a line (assuming you're not in the interpreter)? QB's grammar is a mess, no matter how clean it appears to be. I'd recommend that you not waste your time unless you seriously have nothing better to do.
|