Languages Features Creators CSV Resources Challenges Add Language
GitHub icon

Opa

Opa - Programming language

< >

Opa is a programming language created in 2011.

#238on PLDB 12Years Old 2.1kUsers
2Books 0Papers 76Repos

Opa is an open-source programming language for developing scalable web applications. It can be used for both client-side and server-side scripting, where complete programs are written in Opa and subsequently compiled to Nodejs on the server and JavaScript on the client, with the compiler automating all communication between the two. Opa implements strong, static typing, which can be helpful in protecting against security issues such as SQL injections and cross-site scripting attacks. Read more on Wikipedia...


Example from hello-world:
jlog("Hello World")
Example from Linguist:
/** * To compile & run on port 8080: * opa hello_syntax1.opa -- */ server = Server.one_page_server( "Hello, world", -> (<h1>Hello, world</h1>) )
Example from Wikipedia:
Server.start(Server.http, { title: "Hello" , page: function() { <h1>Hello, web!</h1> } } )

Keywords in Opa

and as begin case client css database db do else end external forall function if import match module or package parser rec server then type val with xml_parser

Language features

Feature Supported Token Example
Binary Literals
Integers
Floats
Hexadecimals
Octals
Conditionals
Functions
Strings "
"Hello world"
Comments
/* A comment
*/
MultiLine Comments /* */
/* A comment
*/
Print() Debugging jlog
Type Inference
Semantic Indentation X

Books about Opa from ISBNdb

title authors year publisher
Opa Application Development Wenbo, Li 2013 Packt Publishing
Opa Application Development Li Wenbo 20130612 Packt Publishing
systemverilog.html · opa.html · supercollider.html

View source

- Build the next great programming language · Search · Day 214 · About · Blog · Acknowledgements · Traffic · Traffic Today · GitHub · feedback@pldb.com