This commit is contained in:
Marvin Blum
2015-09-21 22:00:01 +02:00
parent 1c02007ac3
commit 316bbd5e2f
6 changed files with 392 additions and 392 deletions

BIN
bin/main

Binary file not shown.

Binary file not shown.

View File

@@ -183,7 +183,7 @@ func parseFunction() {
func parseFunctionParameter() {
// empty parameter list
if accept("{") {
return;
return
}
i := int64(0)
@@ -238,7 +238,7 @@ func parseStatement() {
} else if name == "$" {
name = get().token
next()
parseBuildinFunctionCall(name);
parseBuildinFunctionCall(name)
} else {
parseFunctionCall()
appendOut(name + ";\n")

View File

@@ -1,8 +1,8 @@
package asl
import (
"strings"
"fmt"
"strings"
)
type Token struct {
@@ -122,7 +122,7 @@ func skipMultiLineComment(code []byte, i int) int {
func byteArrayContains(haystack []byte, needle byte) bool {
for i := range haystack {
if haystack[i] == needle {
return true;
return true
}
}
@@ -132,7 +132,7 @@ func byteArrayContains(haystack []byte, needle byte) bool {
func stringArrayContains(haystack []string, needle string) bool {
for i := range haystack {
if haystack[i] == needle {
return true;
return true
}
}

View File

@@ -1,9 +1,9 @@
package main
import (
"io/ioutil"
"asl"
"fmt"
"io/ioutil"
)
func main() {