Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions bootstrap.bash
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,4 @@ rm -f peg-bootstrap.peg.go
# Build peg
cd ../..
./cmd/peg-bootstrap/peg-bootstrap < peg.peg > peg.peg.go
go build
./peg -inline -switch peg.peg
go tool peg -inline -switch peg.peg
9 changes: 1 addition & 8 deletions generate-grammars.bash
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
#!/bin/bash

set -Eeuo pipefail

(cd grammars/c/ && go generate)
(cd grammars/calculator/ && go generate)
(cd grammars/calculatorast/ && go generate)
(cd grammars/fexl/ && go generate)
(cd grammars/java/ && go generate)
(cd grammars/longtest/ && go generate)
exec go generate "$@" ./grammars/...
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
module github.com/pointlander/peg

go 1.25

tool github.com/pointlander/peg
2 changes: 1 addition & 1 deletion grammars/c/c_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:generate ../../peg -switch -inline c.peg
//go:generate go tool peg -switch -inline c.peg

package c

Expand Down
2 changes: 1 addition & 1 deletion grammars/calculator/calculator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:generate ../../peg -switch -inline calculator.peg
//go:generate go tool peg -switch -inline calculator.peg

package calculator

Expand Down
2 changes: 1 addition & 1 deletion grammars/calculatorast/calculator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:generate ../../peg -switch -inline calculator.peg
//go:generate go tool peg -switch -inline calculator.peg

package calculatorast

Expand Down
2 changes: 1 addition & 1 deletion grammars/fexl/fexl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:generate ../../peg -switch -inline fexl.peg
//go:generate go tool peg -switch -inline fexl.peg

package fexl

Expand Down
2 changes: 1 addition & 1 deletion grammars/java/java_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:generate ../../peg -switch -inline java_1_7.peg
//go:generate go tool peg -switch -inline java_1_7.peg

package java

Expand Down
2 changes: 1 addition & 1 deletion grammars/longtest/long_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:generate ../../peg -switch -inline long.peg
//go:generate go tool peg -switch -inline long.peg

package longtest

Expand Down