diff options
author | 2009-06-02 19:28:25 -0400 | |
---|---|---|
committer | 2009-06-02 19:28:25 -0400 | |
commit | 07f80839011b33db760cdac421ccea6226b07111 (patch) | |
tree | 426b37ee6b714afc0a597600850846d73c9d41a7 /lib/js | |
parent | aca4dfb6dc232643850cda851bed1421acfc693a (diff) |
Lexing some more string escape sequences; JS versions of number read; fix problem with signature unification; escape < more often in Jscomp
Diffstat (limited to 'lib/js')
-rw-r--r-- | lib/js/urweb.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/js/urweb.js b/lib/js/urweb.js index 581ee4d7..6c974948 100644 --- a/lib/js/urweb.js +++ b/lib/js/urweb.js @@ -397,6 +397,22 @@ function pfl(s) { er("Can't parse float: " + s); } +function pio(s) { + var r = parseInt(s); + if (r.toString() == s) + return r; + else + return null; +} + +function pflo(s) { + var r = parseFloat(s); + if (r.toString() == s) + return r; + else + return null; +} + function uf(s) { return escape(s).replace(new RegExp ("/", "g"), "%2F"); } |