aboutsummaryrefslogtreecommitdiff
path: root/parser/parser_tracing.go
diff options
context:
space:
mode:
authorBobby <[email protected]>2024-04-04 16:25:56 +0000
committerBobby <[email protected]>2024-04-04 16:25:56 +0000
commit77d0ea46b3f1de99357c7706c4c05eb44c237412 (patch)
treed6fa8ca0a89233b26591eaed72c1017ad6190dba /parser/parser_tracing.go
parent3d4f24f7c4ea05471109c0b13abbc95e70c6924b (diff)
downloadmana-77d0ea46b3f1de99357c7706c4c05eb44c237412.tar.xz
mana-77d0ea46b3f1de99357c7706c4c05eb44c237412.zip
arrays and array indexes
Diffstat (limited to 'parser/parser_tracing.go')
-rw-r--r--parser/parser_tracing.go54
1 files changed, 27 insertions, 27 deletions
diff --git a/parser/parser_tracing.go b/parser/parser_tracing.go
index 2f3fcdb..76a8c45 100644
--- a/parser/parser_tracing.go
+++ b/parser/parser_tracing.go
@@ -1,37 +1,37 @@
package parser
-import (
- "fmt"
- "strings"
-)
+// import (
+// "fmt"
+// "strings"
+// )
-var traceLevel int = 0
+// var traceLevel int = 0
-const traceIdentPlaceholder string = "\t"
+// const traceIdentPlaceholder string = "\t"
-func identLevel() string {
- return strings.Repeat(traceIdentPlaceholder, traceLevel-1)
-}
+// func identLevel() string {
+// return strings.Repeat(traceIdentPlaceholder, traceLevel-1)
+// }
-func tracePrint(fs string) {
- fmt.Printf("%s%s\n", identLevel(), fs)
-}
+// func tracePrint(fs string) {
+// fmt.Printf("%s%s\n", identLevel(), fs)
+// }
-func incIdent() {
- traceLevel = traceLevel + 1
-}
+// func incIdent() {
+// traceLevel = traceLevel + 1
+// }
-func decIdent() {
- traceLevel = traceLevel - 1
-}
+// func decIdent() {
+// traceLevel = traceLevel - 1
+// }
-func trace(msg string) string {
- incIdent()
- tracePrint("BEGIN " + msg)
- return msg
-}
+// func trace(msg string) string {
+// incIdent()
+// tracePrint("BEGIN " + msg)
+// return msg
+// }
-func untrace(msg string) {
- tracePrint("END " + msg)
- decIdent()
-}
+// func untrace(msg string) {
+// tracePrint("END " + msg)
+// decIdent()
+// }