pufuwozu/roy — Issue #113: unexpected THEN
Author: gregwebs
Created: 2012-02-21 16:19:00+00:00
State: open

``` javascript
if window.location.href.match /localhost/ then
console.log "local"
else
console.log "remote"
```

```
/home/gweber/proj/js/roy/src/parser.js:282
throw new Error(str);
^
Error: Parse error on line 2: Unexpected 'THEN'
at Object.parseError (/home/gweber/proj/js/roy/src/parser.js:282:11)
at Object.parse (/home/gweber/proj/js/roy/src/parser.js:358:22)
at /home/gweber/proj/js/roy/src/compile.js:373:22
at Socket. (/home/gweber/proj/js/roy/src/compile.js:576:25)
at Socket.emit (events.js:61:17)
at Socket._onReadable (net.js:658:51)
at IOWatcher.onReadable [as callback] (net.js:177:10)
```