![]() |
|
Parser bug (*solved*) - Printable Version +- Boriel Basic Forum (https://forum.boriel.com) +-- Forum: Compilers and Computer Languages (https://forum.boriel.com/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://forum.boriel.com/forumdisplay.php?fid=11) +---- Forum: Bug Reports (https://forum.boriel.com/forumdisplay.php?fid=15) +---- Thread: Parser bug (*solved*) (/showthread.php?tid=531) |
Parser bug (*solved*) - einar - 2013-02-26 Trying to compile the following code: Code: #define BIFROSTstop() \Quote:illegal character ':'However the following code compiles just fine: Code: #define BIFROSTstop() \Re: Parser bug - boriel - 2013-02-26 Hmmm. It's a parser bug due to the mix of pre-processing and BASIC parsing. Will check it. Thanks! :roll: Just for clarification: Not sure what you meant by "performance reasons", but obviosly using the colon or newline is the same for the compiler (there's no performance impact; it's just cosmetic syntax). Will fix it asap. Re: Parser bug - einar - 2013-02-26 boriel Wrote:Just for clarification: Not sure what you meant by "performance reasons"I just meant that using a "define" has better performance (less overhead) than calling a function or sub-routine, for simple cases like in this example above. boriel Wrote:Will fix it asap.Thanks! Re: Parser bug - boriel - 2013-03-01 Okay. It was a bug in the preprocessor. Can you download version 1.3.0s979 and check it please? :roll: Re: Parser bug - einar - 2013-03-02 boriel Wrote:Okay. It was a bug in the preprocessor. Can you download version 1.3.0s979 and check it please? :roll:It's working now. Thank you!!! |