initial commit taken from gitlab.lrz.de

This commit is contained in:
privatereese
2018-08-24 18:09:42 +02:00
parent ae54ed4c48
commit fc05486403
28494 changed files with 2159823 additions and 0 deletions

22
node_modules/art/lib/ast-js/Demos/helloworld.html generated vendored Normal file
View File

@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<title>HelloWorld.js</title>
</head>
<body>
<script>var require = function(){return module.exports;}, module={};</script>
<script src="../src/program.js"></script>
<script src="../src/statement.js"></script>
<script src="../src/expression.js"></script>
<script src="../src/block.js"></script>
<script src="../src/literal.js"></script>
<script src="../src/operator.js"></script>
<script src="../src/variable.js"></script>
<script src="../src/property.js"></script>
<script src="../src/assignment.js"></script>
<script src="../src/condition.js"></script>
<script src="../src/function.js"></script>
<script src="../src/call.js"></script>
<script src="helloworld.js"></script>
</body>
</html>

21
node_modules/art/lib/ast-js/Demos/helloworld.js generated vendored Normal file
View File

@@ -0,0 +1,21 @@
var a = new AST.Variable('astr');
var b = new AST.Variable('bstr');
var alertFn = new AST.Variable('alert');
var newFn = new AST.Function(
[a, b], null,
alertFn.call(a.add(b))
);
newFn.compile()('Hello', ' world');
var klass = new AST.Variable('Class').construct({
initialize: newFn
});
var ast = new AST(new AST.Variable('MyClass').assign(klass));
alert(ast.toString());