tsloughter/OpaDo — Issue #9: Compile issue
Author: pashadia
Created: 2012-03-05 23:46:35+00:00
State: open

I'm having a problem compiling OpaDo on my machine:

$ make
opa --parser js-like src/todo.opa src/user.opa src/admin.opa src/main.opa src/ui.opa -o main.exe
In src/todo.opa [158:6-158:6 | global chars=5502-5502]
Syntax error at line 158, column 6
The error may be in the following citation, usually in the red part (starting at ⚐) or just before:
<<>
}

resource =
(Parser.general_parser((http_request -> resource))) parser
⚐(.*) -> function(_req){todos()}
}
>>
Hint: expected "{" or '	' or ' ' or
(while parsing starting at line 157, column 5)
Another hint: You are now using the parser for the revised ('new') syntax; if the source uses classical ('old') syntax syntax then you should compile with --parser classic option
Error
Syntax error
make: *** [main.exe] Error 1

I'm using:
$ opa --version
Opa compiler (c) MLstate -- version 0.9.0 -- build 1356