Move some Go packages from lang/foo to lib/foo

This commit is contained in:
Nigel Tao committed 2018-08-04 09:17:08 +10:00
1 parent 0822842344
commit 98b2aa9837
10 files changed
+6 -4

No files matched your search

+1
View File
@@ -284,6 +284,7 @@ background.
AST, parser, renderer, etc. The Wuffs tools are written in Go, but as AST, parser, renderer, etc. The Wuffs tools are written in Go, but as
mentioned above, Wuffs transpiles to C code, and Go is not necessarily mentioned above, Wuffs transpiles to C code, and Go is not necessarily
involved if all you want is to use the C edition of Wuffs. involved if all you want is to use the C edition of Wuffs.
- `lib` holds other Go libraries, not specific to the Wuffs language per se.
- `cmd` holds Wuffs' command line tools, also written in Go. - `cmd` holds Wuffs' command line tools, also written in Go.
- `std` holds the Wuffs standard library's code. The initial focus is on - `std` holds the Wuffs standard library's code. The initial focus is on
popular image codecs: BMP, GIF, JPEG, PNG, TIFF and WEBP. popular image codecs: BMP, GIF, JPEG, PNG, TIFF and WEBP.
+1 -1
View File
@@ -30,10 +30,10 @@ import (
"sort" "sort"
"strings" "strings"
"github.com/google/wuffs/lang/base38"
"github.com/google/wuffs/lang/builtin" "github.com/google/wuffs/lang/builtin"
"github.com/google/wuffs/lang/check" "github.com/google/wuffs/lang/check"
"github.com/google/wuffs/lang/generate" "github.com/google/wuffs/lang/generate"
"github.com/google/wuffs/lib/base38"
cf "github.com/google/wuffs/cmd/commonflags" cf "github.com/google/wuffs/cmd/commonflags"
+2 -1
View File
@@ -36,7 +36,8 @@
- Made a packageid declaration mandatory. - Made a packageid declaration mandatory.
- Disallowed certain packageid's like `base` or `config`. - Disallowed certain packageid's like `base` or `config`.
- Disallowed `__double_underscore` prefixed names. - Disallowed `__double_underscore` prefixed names.
- Added a stand-alone lang/interval package. - Moved the base38 package from `lang/base38` to `lib/base38`.
- Added a stand-alone `lib/interval` package.
- Added fuzz tests. - Added fuzz tests.
- Added `WUFFS_CONFIG__MODULES`. - Added `WUFFS_CONFIG__MODULES`.
- Added `WUFFS_CONFIG__STATIC_FUNCTIONS`. - Added `WUFFS_CONFIG__STATIC_FUNCTIONS`.
+1 -1
View File
@@ -21,9 +21,9 @@ import (
"fmt" "fmt"
"path" "path"
"github.com/google/wuffs/lang/base38"
"github.com/google/wuffs/lang/builtin" "github.com/google/wuffs/lang/builtin"
"github.com/google/wuffs/lang/parse" "github.com/google/wuffs/lang/parse"
"github.com/google/wuffs/lib/base38"
a "github.com/google/wuffs/lang/ast" a "github.com/google/wuffs/lang/ast"
t "github.com/google/wuffs/lang/token" t "github.com/google/wuffs/lang/token"
+1 -1
View File
@@ -19,7 +19,7 @@ package parse
import ( import (
"fmt" "fmt"
"github.com/google/wuffs/lang/base38" "github.com/google/wuffs/lib/base38"
a "github.com/google/wuffs/lang/ast" a "github.com/google/wuffs/lang/ast"
t "github.com/google/wuffs/lang/token" t "github.com/google/wuffs/lang/token"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.