mirror of
https://github.com/johnkerl/miller.git
synced 2026-01-23 02:14:13 +00:00
move experimental files to their own folder
This commit is contained in:
parent
dee599ec5b
commit
c651542104
24 changed files with 33 additions and 10 deletions
11
.gitignore
vendored
11
.gitignore
vendored
|
|
@ -113,11 +113,8 @@ c/reg_test/input/rfc-csv/Makefile
|
|||
c/stream/Makefile
|
||||
c/unit_test/Makefile
|
||||
man/Makefile
|
||||
parser-experiments/two/src
|
||||
|
||||
parser-experiments/one/src/github.com
|
||||
parser-experiments/one/src/experimental
|
||||
parser-experiments/one/main
|
||||
|
||||
parser-experiments/two/src
|
||||
parser-experiments/two/main
|
||||
experiments/dsl-parser/one/src
|
||||
experiments/dsl-parser/one/main
|
||||
experiments/dsl-parser/two/src
|
||||
experiments/dsl-parser/two/main
|
||||
|
|
|
|||
19
experiments/cli-parser/cliparse.go
Normal file
19
experiments/cli-parser/cliparse.go
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
// go mod init cliparse.go
|
||||
// go get golang.org/x/sys
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"golang.org/x/sys/windows"
|
||||
)
|
||||
|
||||
func main() {
|
||||
fmt.Println(sys.GetCommandLine())
|
||||
fmt.Println()
|
||||
for i, arg := range os.Args {
|
||||
fmt.Printf("args[%d] \"%s\"\n", i, arg)
|
||||
}
|
||||
}
|
||||
5
experiments/cli-parser/go.mod
Normal file
5
experiments/cli-parser/go.mod
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
module cliparse.go
|
||||
|
||||
go 1.16
|
||||
|
||||
require golang.org/x/sys v0.0.0-20210326220804-49726bf1d181 // indirect
|
||||
2
experiments/cli-parser/go.sum
Normal file
2
experiments/cli-parser/go.sum
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
golang.org/x/sys v0.0.0-20210326220804-49726bf1d181 h1:64ChN/hjER/taL4YJuA+gpLfIMT+/NFherRZixbxOhg=
|
||||
golang.org/x/sys v0.0.0-20210326220804-49726bf1d181/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
|
|
@ -56,7 +56,7 @@ echo "Parser-autogen OK"
|
|||
|
||||
# ----------------------------------------------------------------
|
||||
# Override GOCC codegen with customized error handling
|
||||
cp ../../go/src/parsing/errors.go.template src/parsing/errors/errors.go
|
||||
cp ../../../go/src/parsing/errors.go.template src/parsing/errors/errors.go
|
||||
sed -i .bak 's:miller/src:two/src:' src/parsing/errors/errors.go
|
||||
|
||||
# ----------------------------------------------------------------
|
||||
|
|
@ -68,8 +68,8 @@ rm -rf ./src/dsl/
|
|||
mkdir -p ./src/lib/
|
||||
mkdir -p ./src/dsl/
|
||||
|
||||
cp ../../go/src/lib/*.go ./src/lib/
|
||||
cp ../../go/src/dsl/ast*.go ./src/dsl/
|
||||
cp ../../../go/src/lib/*.go ./src/lib/
|
||||
cp ../../../go/src/dsl/ast*.go ./src/dsl/
|
||||
|
||||
# Different path to autogen between main Miller tree and here
|
||||
sed -i .bak 's:miller/src:two/src:' src/dsl/ast*go
|
||||
Loading…
Add table
Add a link
Reference in a new issue