Commit 766ba086 authored by Michael Hanus 's avatar Michael Hanus

Typeclass version packaged

parent 1b78b676
{
"name": "javascript",
"version": "1.0.0",
"version": "2.0.0",
"author": "Michael Hanus <mh@informatik.uni-kiel.de>",
"synopsis": "Libraries to represent JavaScript programs in Curry",
"category": [ "Metaprogramming", "Web" ],
"dependencies": { },
"compilerCompatibility": {
"pakcs": ">= 1.14.0, < 2.0.0",
"kics2": ">= 0.5.0, < 2.0.0"
"pakcs": ">= 2.0.0",
"kics2": ">= 2.0.0"
},
"exportedModules": [ "JavaScript.Types", "JavaScript.Show" ],
"license": "BSD-3-Clause",
......
......@@ -30,6 +30,7 @@ data JSExp = JSString String
| JSFCall String [JSExp]
| JSApply JSExp JSExp
| JSLambda [Int] [JSStat]
deriving Eq
--- Type of JavaScript statements.
--- @cons JSAssign - assignment
......@@ -44,15 +45,18 @@ data JSStat = JSAssign JSExp JSExp
| JSPCall String [JSExp]
| JSReturn JSExp
| JSVarDecl Int
deriving Eq
-- Type of branches in a switch statement.
--- @cons JSCase - case branch
--- @cons JSDefault - default branch
data JSBranch = JSCase String [JSStat]
| JSDefault [JSStat]
deriving Eq
-- Type of JavaScript function declarations.
data JSFDecl = JSFDecl String [Int] [JSStat]
deriving Eq
------------------------------------------------------------------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment