37 changed files with 7425 additions and 83 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
@ -1 +1 @@ |
|||
var typ = require("representation.js"); |
|||
import typ from "representation.js"; |
|||
|
Binary file not shown.
@ -1,12 +1,10 @@ |
|||
var express = require('express'); |
|||
var router = express.Router(); |
|||
var vm = require("../vm.js"); |
|||
|
|||
/* GET home page. */ |
|||
router.get('/', function(req, res, next) { |
|||
var query_params = req.query; |
|||
var evaluated = vm.evaluate(query_params.source); |
|||
res.render('index', { title: 'Express', output: JSON.stringify(evaluated)}); |
|||
res.render('index', { title: 'Express', output: ""}); |
|||
}); |
|||
|
|||
module.exports = router; |
|||
|
Binary file not shown.
Binary file not shown.
@ -1,3 +1,4 @@ |
|||
var vm = require("../vm.js"); |
|||
import riot from 'riot'; |
|||
import './test.tag'; |
|||
|
|||
console.log(vm.evaluate("(+ 2 3)")); |
|||
riot.mount("test"); |
|||
|
@ -0,0 +1,20 @@ |
|||
<test> |
|||
<input |
|||
ref="input" |
|||
type="text"> |
|||
</input> |
|||
<button |
|||
onclick={evaluate}> |
|||
Evaluate it |
|||
</button> |
|||
|
|||
<script> |
|||
import vm from '../vm.js'; |
|||
|
|||
evaluate() { |
|||
var input = this.refs.input; |
|||
alert(vm.evaluateString(input.value)); |
|||
} |
|||
|
|||
</script> |
|||
</test> |
Binary file not shown.
File diff suppressed because it is too large
Loading…
Reference in new issue