Found plenty of those, for which we get syntax error XS9002: Parser: mismatched input '' expecting {WITH, EOS}:
PUBLIC mpathprog
mpath := "C:\test"
DO &mpath\something.fxp
Looks like it's macrocompiling the var mpath and ends up with
DO C:\test\something.fxp
Can we somehow support this syntax in the macrocompiler/UDC?
Implementing the actual command is another story, what I'm looking for is a way to preprocess the original command in any way possible, because I have failed to create a UDC for it to preprocess it to anything that does not give a parser error.
Similarly:
DO FORM &mpathforms\login.scx
and also found the same issue with USE, apparently this code pattern is very common in VFP:
USE &mpath\data\isastables.dbf SHARED ALIAS xtables
Found plenty of those, for which we get syntax error XS9002: Parser: mismatched input '' expecting {WITH, EOS}:
Looks like it's macrocompiling the var mpath and ends up with
DO C:\test\something.fxpCan we somehow support this syntax in the macrocompiler/UDC?
Implementing the actual command is another story, what I'm looking for is a way to preprocess the original command in any way possible, because I have failed to create a UDC for it to preprocess it to anything that does not give a parser error.
Similarly:
DO FORM &mpathforms\login.scxand also found the same issue with USE, apparently this code pattern is very common in VFP:
USE &mpath\data\isastables.dbf SHARED ALIAS xtables