Hello Dustinian,
I'm glad to give you some feedback.
1) I noticed that this isn't working:example.ttlREPLACE "before" with "before_"
in.txtbefore
After running:
ttl example.ttl in.txt out.txt
Output:
LOADING FILE>>>
PARSING FILE>>
EXECUTING SCRIPT>>>
Windows error message
After compiling as follows:
fbc -exx -s console "ttl.bas" "String Manipulation.bas" "String Array.bas" "Text File Input Output.bas"
After running:
ttl example.ttl in.txt out.txt
Error message:
Aborting due to runtime error 12 ("segmentation violation") in ttl.bas::EXECUTE_COMMAND()
And a stupid replacement:
example.ttlreplace "before" with "before"
in.txtbefore
After running:
ttl example.ttl in.txt out.txt
LOADING FILE>>>
PARSING FILE>>
EXECUTING SCRIPT>>>
Nothing more happens!?
2) Why not using the common parsing of the command line arguments as in C (no comma's) ?ttl example.ttl in.txt out.txt
In your program changes must be:
strScriptPath = Command$(1)
strInputPath = Command$(2)
strOutputPath=Command$(3)
3) Why are you using -lang "QB" for compiling instead of the default fb compiling? You only have to change Text Transformation Language.fbp. It compiles fine as lang fb without any changes in the files4) Maybe a stupid questionYou have changed things:
Fixed parsing errors in REPLACE SUBSEQUENT and REPLACE BETWEEN.
Changed "REPLACE SUBSEQUENT" syntax to "REPLACE FIRST X AFTER Y WITH Z," better aligning the syntax with what actually happens.
What is the new syntax for this?
REPLACE ALL WITH "*" FROM "start" TO "end"