move experimental files to their own folder

This commit is contained in:
John Kerl 2021-03-28 09:40:45 -04:00
parent dee599ec5b
commit c651542104
24 changed files with 33 additions and 10 deletions

11
.gitignore vendored
View file

@ -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

View 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)
}
}

View file

@ -0,0 +1,5 @@
module cliparse.go
go 1.16
require golang.org/x/sys v0.0.0-20210326220804-49726bf1d181 // indirect

View 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=

View file

@ -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