Mercurial > repos > icfp2013
comparison src/requests.tp @ 17:566960135ea1
Small bit of cleanup now that the string escaping bug is fixed.
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 09 Aug 2013 04:31:14 -0700 |
parents | cb5108f62f93 |
children | a0e66161bde0 |
comparison
equal
deleted
inserted
replaced
16:cb5108f62f93 | 17:566960135ea1 |
---|---|
12 | 12 |
13 guessRequest <- :id :prog { | 13 guessRequest <- :id :prog { |
14 #{ | 14 #{ |
15 string <- { | 15 string <- { |
16 //remove the second escaped quote, it will compile. | 16 //remove the second escaped quote, it will compile. |
17 idStr <- "\"id\"" //;\"" . id . "\"" | 17 idStr <- "\"id\":\"" . id . "\"" |
18 progStr <- "b" // "\"program\":\"" . prog . "\"" | 18 progStr <- "\"program\":\"" . prog . "\"" |
19 idStr . progStr | 19 "{" . idStr . "," . progStr . "}" |
20 } | 20 } |
21 } | 21 } |
22 } | 22 } |
23 | 23 |
24 main <- { | 24 main <- { |