[Opa] Is this a complete program
Victor Reyes
victor.reyes at gmail.com
Mon Jan 9 19:40:40 UTC 2012
Hello Opa World,
I am reading the Opa tour and came across the following:
Server.start(
Server.http,
{ page: function() { <h1>Hello, world</h1> },
title: “Hello, world” }
)
Is that supposed to be a full program? If so, I get the following errors
when attempting to compile it:
opa svr.opa
In svr.opa [1:6-1:6 | global chars=6-6]
Syntax error at line 1, column 6
The error may be in the following citation, usually in the red part
(starting at ⚐) or just before:
<<Server⚐.start(
Server.http,
{ page: function() { <h1>Hello, world</h1> },
title: “Hello, world” }
)
>>
Hint: expected ":" or "=" or "as" or <spacing>
(while parsing <function parameters> starting at line 1, column 6)
Error
Syntax error
Thank you
--
Victor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.owasp.org/pipermail/opa/attachments/20120109/839fa935/attachment.html>
More information about the Opa
mailing list