Last active
March 19, 2021 17:59
-
-
Save kfsone/08956cdb42ed13c35a433ee5be24f840 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
example/bools/parser/productionstable.go | |
diff -u example/bools/parser/productionstable.go.orig example/bools/parser/productionstable.go | |
--- example/bools/parser/productionstable.go.orig 2021-03-19 10:59:15.160000000 -0700 | |
+++ example/bools/parser/productionstable.go 2021-03-19 10:59:15.160000000 -0700 | |
@@ -2,7 +2,9 @@ | |
package parser | |
-import ( "github.com/goccmack/gocc/example/bools/ast" ) | |
+import ( | |
+ "github.com/goccmack/gocc/example/bools/ast" | |
+) | |
type ( | |
ProdTab [numProductions]ProdTabEntry | |
example/calc/parser/productionstable.go | |
diff -u example/calc/parser/productionstable.go.orig example/calc/parser/productionstable.go | |
--- example/calc/parser/productionstable.go.orig 2021-03-19 10:59:15.250000000 -0700 | |
+++ example/calc/parser/productionstable.go 2021-03-19 10:59:15.250000000 -0700 | |
@@ -2,7 +2,7 @@ | |
package parser | |
-import( | |
+import ( | |
"github.com/goccmack/gocc/example/calc/token" | |
"github.com/goccmack/gocc/example/calc/util" | |
) | |
example/nolexer/parser/productionstable.go | |
diff -u example/nolexer/parser/productionstable.go.orig example/nolexer/parser/productionstable.go | |
--- example/nolexer/parser/productionstable.go.orig 2021-03-19 10:59:15.470000000 -0700 | |
+++ example/nolexer/parser/productionstable.go 2021-03-19 10:59:15.470000000 -0700 | |
@@ -3,9 +3,9 @@ | |
package parser | |
import ( | |
- "fmt" | |
+ "fmt" | |
- "github.com/goccmack/gocc/example/nolexer/token" | |
+ "github.com/goccmack/gocc/example/nolexer/token" | |
) | |
type ( | |
@@ -42,9 +42,10 @@ | |
Index: 1, | |
NumSymbols: 2, | |
ReduceFunc: func(X []Attrib) (Attrib, error) { | |
- return func () (Attrib, error) { | |
- fmt.Println(string(X[1].(*token.Token).Lit)); | |
- return nil, nil} () | |
+ return func() (Attrib, error) { | |
+ fmt.Println(string(X[1].(*token.Token).Lit)) | |
+ return nil, nil | |
+ }() | |
}, | |
}, | |
ProdTabEntry{ | |
@@ -56,9 +57,10 @@ | |
Index: 2, | |
NumSymbols: 1, | |
ReduceFunc: func(X []Attrib) (Attrib, error) { | |
- return func () (Attrib, error) { | |
- fmt.Print("hello "); | |
- return nil, nil} () | |
+ return func() (Attrib, error) { | |
+ fmt.Print("hello ") | |
+ return nil, nil | |
+ }() | |
}, | |
}, | |
ProdTabEntry{ | |
@@ -70,9 +72,10 @@ | |
Index: 3, | |
NumSymbols: 1, | |
ReduceFunc: func(X []Attrib) (Attrib, error) { | |
- return func () (Attrib, error) { | |
- fmt.Print("hiya "); | |
- return nil, nil} () | |
+ return func() (Attrib, error) { | |
+ fmt.Print("hiya ") | |
+ return nil, nil | |
+ }() | |
}, | |
}, | |
} | |
example/rr/parser/productionstable.go | |
diff -u example/rr/parser/productionstable.go.orig example/rr/parser/productionstable.go | |
--- example/rr/parser/productionstable.go.orig 2021-03-19 10:59:15.560000000 -0700 | |
+++ example/rr/parser/productionstable.go 2021-03-19 10:59:15.560000000 -0700 | |
@@ -2,8 +2,6 @@ | |
package parser | |
- | |
- | |
type ( | |
ProdTab [numProductions]ProdTabEntry | |
ProdTabEntry struct { | |
internal/test/t1/parser/productionstable.go | |
diff -u internal/test/t1/parser/productionstable.go.orig internal/test/t1/parser/productionstable.go | |
--- internal/test/t1/parser/productionstable.go.orig 2021-03-19 10:59:16.290000000 -0700 | |
+++ internal/test/t1/parser/productionstable.go 2021-03-19 10:59:16.290000000 -0700 | |
@@ -2,8 +2,6 @@ | |
package parser | |
- | |
- | |
type ( | |
ProdTab [numProductions]ProdTabEntry | |
ProdTabEntry struct { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment