diff options
| author | hallgren <hallgren@chalmers.se> | 2010-11-25 18:30:30 +0000 |
|---|---|---|
| committer | hallgren <hallgren@chalmers.se> | 2010-11-25 18:30:30 +0000 |
| commit | 75ad59b1217e4b81d19fed6eadf4fc80d3ebd2f1 (patch) | |
| tree | a407071cf99ca2b8eccadf3387f2062be5db119a /src/runtime/javascript/gflib.js | |
| parent | 243a0b3659f85b27af2bb5e0c884aca0c720c8a7 (diff) | |
pgf-server: more useful JSON output from lineraizeAll
Example:
Request: http://www.grammaticalframework.org:41296/grammars/Quiz.pgf?command=linearizeAll&tree=Run+YouPl
Response: [{"to":"QuizEng","texts":["you run"]},
{"to":"QuizSwe","texts":["ni l??per","ni springer"]}]
Compared to the old command linearize:
Request: http://www.grammaticalframework.org:41296/grammars/Quiz.pgf?command=linearize&tree=Run+YouPl'
Response: [{"to":"QuizEng","text":"you run"},
{"to":"QuizSwe","text":"ni l??per"}]
Diffstat (limited to 'src/runtime/javascript/gflib.js')
0 files changed, 0 insertions, 0 deletions
