Rename PUFFS to WUFFS, part 2 of N

This commit is contained in:
Nigel Tao committed 2017-11-30 16:23:16 +11:00
1 parent c4fbf8732e
commit 0cea46531b
29 files changed
+69 -69

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ package ast
import (
"math/big"
t "github.com/google/puffs/lang/token"
t "github.com/google/wuffs/lang/token"
)
// Kind is what kind of node it is. For example, a top-level func or a numeric
+1 -1
View File
@@ -15,7 +15,7 @@
package ast
import (
t "github.com/google/puffs/lang/token"
t "github.com/google/wuffs/lang/token"
)
// Eq returns whether n and o are equal.
+1 -1
View File
@@ -15,7 +15,7 @@
package ast
import (
t "github.com/google/puffs/lang/token"
t "github.com/google/wuffs/lang/token"
)
func TopologicalSortStructs(ns []*Struct) (sorted []*Struct, ok bool) {
+1 -1
View File
@@ -15,7 +15,7 @@
package ast
import (
t "github.com/google/puffs/lang/token"
t "github.com/google/wuffs/lang/token"
)
// String returns a string form of n.
+2 -2
View File
@@ -17,8 +17,8 @@ package ast_test
import (
"testing"
"github.com/google/puffs/lang/parse"
"github.com/google/puffs/lang/token"
"github.com/google/wuffs/lang/parse"
"github.com/google/wuffs/lang/token"
)
func TestString(t *testing.T) {
+1 -1
View File
@@ -16,7 +16,7 @@
package builtin
import (
t "github.com/google/puffs/lang/token"
t "github.com/google/wuffs/lang/token"
)
type Status struct {
+2 -2
View File
@@ -19,8 +19,8 @@ import (
"fmt"
"math/big"
a "github.com/google/puffs/lang/ast"
t "github.com/google/puffs/lang/token"
a "github.com/google/wuffs/lang/ast"
t "github.com/google/wuffs/lang/token"
)
// otherHandSide returns the operator and other hand side when n is an
+2 -2
View File
@@ -18,8 +18,8 @@ import (
"fmt"
"math/big"
a "github.com/google/puffs/lang/ast"
t "github.com/google/puffs/lang/token"
a "github.com/google/wuffs/lang/ast"
t "github.com/google/wuffs/lang/token"
)
var numTypeBounds = [256][2]*big.Int{
+4 -4
View File
@@ -21,11 +21,11 @@ import (
"fmt"
"math/big"
"github.com/google/puffs/lang/base38"
"github.com/google/puffs/lang/builtin"
"github.com/google/wuffs/lang/base38"
"github.com/google/wuffs/lang/builtin"
a "github.com/google/puffs/lang/ast"
t "github.com/google/puffs/lang/token"
a "github.com/google/wuffs/lang/ast"
t "github.com/google/wuffs/lang/token"
)
type Error struct {
+4 -4
View File
@@ -23,10 +23,10 @@ import (
"strings"
"testing"
"github.com/google/puffs/lang/ast"
"github.com/google/puffs/lang/parse"
"github.com/google/puffs/lang/render"
"github.com/google/puffs/lang/token"
"github.com/google/wuffs/lang/ast"
"github.com/google/wuffs/lang/parse"
"github.com/google/wuffs/lang/render"
"github.com/google/wuffs/lang/token"
)
func compareToPuffsfmt(tm *token.Map, tokens []token.Token, comments []string, src string) error {
+2 -2
View File
@@ -17,8 +17,8 @@
package check
import (
a "github.com/google/puffs/lang/ast"
t "github.com/google/puffs/lang/token"
a "github.com/google/wuffs/lang/ast"
t "github.com/google/wuffs/lang/token"
)
var reasons = [...]struct {
+2 -2
View File
@@ -326,8 +326,8 @@ const header = `// Code generated by running "go generate". DO NOT EDIT.
package check
import (
a "github.com/google/puffs/lang/ast"
t "github.com/google/puffs/lang/token"
a "github.com/google/wuffs/lang/ast"
t "github.com/google/wuffs/lang/token"
)
var reasons = [...]struct {
+2 -2
View File
@@ -27,8 +27,8 @@ import (
"fmt"
"math/big"
a "github.com/google/puffs/lang/ast"
t "github.com/google/puffs/lang/token"
a "github.com/google/wuffs/lang/ast"
t "github.com/google/wuffs/lang/token"
)
// splitReceiverMethodArgs returns the "receiver", "method" and "args" in the
+3 -3
View File
@@ -18,10 +18,10 @@ import (
"fmt"
"math/big"
"github.com/google/puffs/lang/builtin"
"github.com/google/wuffs/lang/builtin"
a "github.com/google/puffs/lang/ast"
t "github.com/google/puffs/lang/token"
a "github.com/google/wuffs/lang/ast"
t "github.com/google/wuffs/lang/token"
)
func (q *checker) tcheckVars(block []*a.Node) error {
+4 -4
View File
@@ -21,10 +21,10 @@ import (
"os"
"strings"
"github.com/google/puffs/lang/ast"
"github.com/google/puffs/lang/check"
"github.com/google/puffs/lang/parse"
"github.com/google/puffs/lang/token"
"github.com/google/wuffs/lang/ast"
"github.com/google/wuffs/lang/check"
"github.com/google/wuffs/lang/parse"
"github.com/google/wuffs/lang/token"
)
type Generator func(packageName string, tm *token.Map, c *check.Checker, files []*ast.File) ([]byte, error)
+3 -3
View File
@@ -19,10 +19,10 @@ package parse
import (
"fmt"
"github.com/google/puffs/lang/base38"
"github.com/google/wuffs/lang/base38"
a "github.com/google/puffs/lang/ast"
t "github.com/google/puffs/lang/token"
a "github.com/google/wuffs/lang/ast"
t "github.com/google/wuffs/lang/token"
)
func Parse(tm *t.Map, filename string, src []t.Token) (*a.File, error) {
+1 -1
View File
@@ -22,7 +22,7 @@ import (
"errors"
"io"
"github.com/google/puffs/lang/token"
"github.com/google/wuffs/lang/token"
)
var newLine = []byte{'\n'}