qingyi-yan / POET

Other
1 stars 2 forks source link

Fixing ___UNKNOWN___ in global_modread #18

Closed Samuel-Oglegba closed 1 year ago

Samuel-Oglegba commented 1 year ago

When xform.global_modread(input) is called and the input contains

How to re-create FunctionCall issue

  1. Create a file example.pt and add the following code:
      <eval
        input = CODE.ExpStmt#(FunctionCall#("printf", String#("The"" ""number"" ""is"" ""%""d"" ""\\n") "num"));
        XFORM.global_modread(input);
      />
  2. run pcg example.pt
  3. output: ("___UNKNOWN___","")

    How to re-create Char issue

  4. Modify the input of example.pt to input = CODE.Char#("{")
  5. output: ("___UNKNOWN___","")