PRINT USING branch - mainly compiler work:
- added support for PRINT expr; USING ... - proper support for SPC/TAB inside USING (was just printing the expression used inside) - added but disabled support for multiple USINGs in one expression - added support in the rtlib for comma padding, added but disabled on compiler side for now - added but disabled support for multiple consecutive ';'/',' separators The disabled items are because QB doesn't allow them either for some reason, and I don't know the reasons, so I'm leaving it for now. Also, potentially, we could have maybe two consecutive semicolons ';;' exit USING mode and go back to normal PRINT mode, which would be prevented by the last point. It's probably a stupid idea, but I don't feel like closing anything off at this juncture. r5247
Showing
- FreeBASIC/changelog.txt 2 additions, 0 deletionsFreeBASIC/changelog.txt
- FreeBASIC/src/compiler/parser-quirk-file.bas 82 additions, 59 deletionsFreeBASIC/src/compiler/parser-quirk-file.bas
- FreeBASIC/src/compiler/rtl-print.bas 9 additions, 0 deletionsFreeBASIC/src/compiler/rtl-print.bas
- FreeBASIC/src/compiler/symb-const.bas 5 additions, 2 deletionsFreeBASIC/src/compiler/symb-const.bas
- FreeBASIC/src/rtlib/libfb_io_printusg.c 3 additions, 3 deletionsFreeBASIC/src/rtlib/libfb_io_printusg.c
- FreeBASIC/tests/string/print_using.bas 25 additions, 0 deletionsFreeBASIC/tests/string/print_using.bas
Loading
Please register or sign in to comment