01-29-2024, 04:30 AM
One thing to note: Compiling 65,536 lines of code (as the above program generates) requires about 30GB of ram for cpp to do its job. If you're thinking of doing 16million lines of code in such a manner, I hope you've got a LOT of memory available and LOTS and LOTS and LOTS of time.
Seems like your program needs some serious restructuring.
SELECT CASE ASC(Lookahead$, 1)
CASE 0
g$ = "XXXXXXX"
SELECT CASE ASC(Lookahead$,2)
CASE 0
g$ = "YYYYYYY"
SELECT CASE ASC(Lookahead$, 3)
CASE 0: g$ = "ZZZZZZZ"
CASE 1: g$ = "AAAAAAA"
CASE 2: g$ = "BBBBBBB"
END SELECT
CASE 1
END SELECT
CASE 1
END SELECT
Seems like your program needs some serious restructuring.
SELECT CASE ASC(Lookahead$, 1)
CASE 0
g$ = "XXXXXXX"
SELECT CASE ASC(Lookahead$,2)
CASE 0
g$ = "YYYYYYY"
SELECT CASE ASC(Lookahead$, 3)
CASE 0: g$ = "ZZZZZZZ"
CASE 1: g$ = "AAAAAAA"
CASE 2: g$ = "BBBBBBB"
END SELECT
CASE 1
END SELECT
CASE 1
END SELECT