summaryrefslogtreecommitdiff
path: root/src/runtime/c
diff options
context:
space:
mode:
authorhallgren <hallgren@chalmers.se>2012-04-02 15:42:43 +0000
committerhallgren <hallgren@chalmers.se>2012-04-02 15:42:43 +0000
commit1c1679227e24e8169fb0fd967b26fc28e53fc0d2 (patch)
tree06177a2c6b2142faf3f9ff64820a136eb494acbb /src/runtime/c
parent1db4fab25cf6c884c842d7c127e69c00179f145a (diff)
PGFService.hs: add web API function "abstrjson"
Abstract syntax trees are represented as strings in the web API. To make them easier to manipulate in JavaScript, the new function converts them to JSON. To support structural editing, the nodes are numbered in the same way as in the bracketed string created when linearizing an abstract syntax tree. Example: "Pred (That Fish) Fresh" is converted to {fun:"Pred",fid:3, children:[{fun:"That",fid:1, children:[{fun:"Fish",fid:0}]}, {fun:"Fresh",fid:2}]}
Diffstat (limited to 'src/runtime/c')
0 files changed, 0 insertions, 0 deletions