X-Sharp / XSharpPublic

Public repository for the source code for the XSharp Compiler, Runtime, Project System and Tools.
Apache License 2.0
112 stars 38 forks source link

[VFP] SCATTER/GATHER MEMVAR MEMO not recognized #1534

Closed cpyrgas closed 2 months ago

cpyrgas commented 2 months ago

MEMO clause is not supported in all SCATTER/GATHER variations

// error XS9002: Parser: unexpected input 'MEMVAR'
GATHER MEMVAR MEMO
SCATTER MEMVAR MEMO

// error XS9002: Parser: unexpected input '__FOXLIST__'
LOCAL a := ArrayCreate(10) AS ARRAY
SCATTER FIELDS FLD,FLD2 TO a MEMO
SCATTER FIELDS LIKE abc* TO a MEMO
cpyrgas commented 2 months ago

Should be fixed now. Note that SCATTER/GATHER still does not include "G" fields, as in https://github.com/X-Sharp/XSharpPublic/issues/1530

RobertvanderHulst commented 2 months ago

Isn't this the same as #1510 ? I think I have committed my changes to the FoxPro header in the Compiler branch and did not merge it into the runtime branche yet.

cpyrgas commented 2 months ago

Ah sorry, not sure how I missed that. It's probably my fault, I did my changes to the header file in the compiler branch, but you had done yours already in the runtime branch, so I did not notice them.

cpyrgas commented 2 months ago

Confirmed fixed