bootstrapworld / pyret-blocks

Block Language for the Pyret Programming Language
Apache License 2.0
3 stars 1 forks source link

Implement Data ColumnSortOrder (Related to #21) #22

Open maroon-scorch opened 3 years ago

maroon-scorch commented 3 years ago

In the PyretParser.ts, the following comment was left for the data ColumnSortOrder, which ties to the data ColumnSort for Table Orders in Block Pyret.

  /**
   * Not sure what to do with this for now...
   * data ColumnSortOrder:
  | ASCENDING with:
    method tosource(self):
      PP.str("ascending")
    end
  | DESCENDING with:
    method tosource(self):
      PP.str("descending")
    end
sharing:
  method visit(self, visitor):
    self._match(visitor, lam(): raise("No visitor field for " + torepr(self)) end)
  end
end

We have endeavored to implement a ColumnSortOrder, but we lacked knowledge on many of the behind the scene program parsing besides PyretParser.ts