mirror of
https://github.com/Kugelschieber/asl.git
synced 2026-01-18 12:00:25 +00:00
gofmt.
This commit is contained in:
Binary file not shown.
@@ -183,7 +183,7 @@ func parseFunction() {
|
|||||||
func parseFunctionParameter() {
|
func parseFunctionParameter() {
|
||||||
// empty parameter list
|
// empty parameter list
|
||||||
if accept("{") {
|
if accept("{") {
|
||||||
return;
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
i := int64(0)
|
i := int64(0)
|
||||||
@@ -238,7 +238,7 @@ func parseStatement() {
|
|||||||
} else if name == "$" {
|
} else if name == "$" {
|
||||||
name = get().token
|
name = get().token
|
||||||
next()
|
next()
|
||||||
parseBuildinFunctionCall(name);
|
parseBuildinFunctionCall(name)
|
||||||
} else {
|
} else {
|
||||||
parseFunctionCall()
|
parseFunctionCall()
|
||||||
appendOut(name + ";\n")
|
appendOut(name + ";\n")
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
package asl
|
package asl
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"strings"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Token struct {
|
type Token struct {
|
||||||
@@ -122,7 +122,7 @@ func skipMultiLineComment(code []byte, i int) int {
|
|||||||
func byteArrayContains(haystack []byte, needle byte) bool {
|
func byteArrayContains(haystack []byte, needle byte) bool {
|
||||||
for i := range haystack {
|
for i := range haystack {
|
||||||
if haystack[i] == needle {
|
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 {
|
func stringArrayContains(haystack []string, needle string) bool {
|
||||||
for i := range haystack {
|
for i := range haystack {
|
||||||
if haystack[i] == needle {
|
if haystack[i] == needle {
|
||||||
return true;
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"io/ioutil"
|
|
||||||
"asl"
|
"asl"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"io/ioutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
Reference in New Issue
Block a user