From 7657631b36c49b62122acf64c1e2f69288b395fc Mon Sep 17 00:00:00 2001 From: Marvin Blum Date: Fri, 9 Oct 2015 16:14:17 +0200 Subject: [PATCH] Added license. --- LICENSE | 21 +++++++++++++++++++++ in/simple.asl | 8 +++++++- src/asl/parser.go | 1 + 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..268aedd --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2015 Marvin Blum + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/in/simple.asl b/in/simple.asl index 5121455..7d3a355 100644 --- a/in/simple.asl +++ b/in/simple.asl @@ -1 +1,7 @@ -$hint()("Hello World"); +func foo(){ + return 1; +} + +var _x = foo(); + +foo(); diff --git a/src/asl/parser.go b/src/asl/parser.go index b8040fc..296d2e9 100644 --- a/src/asl/parser.go +++ b/src/asl/parser.go @@ -269,6 +269,7 @@ func parseFunctionCall() { } func parseBuildinFunctionCall(name string) { + // FIXME: does not work for all kind of commands expect("(") appendOut("[") parseParameter()