aboutsummaryrefslogtreecommitdiff
path: root/compiler/ast.go
diff options
context:
space:
mode:
authorRyo Nihei <nihei.dev@gmail.com>2021-04-01 21:03:40 +0900
committerRyo Nihei <nihei.dev@gmail.com>2021-04-01 21:03:40 +0900
commit69643f8e38ee74406365704f73be4d5f865af8da (patch)
treefca8d8371527a59f09778fa124d4b90addca6c88 /compiler/ast.go
parentPass values in error type to panic() (diff)
downloadtre-69643f8e38ee74406365704f73be4d5f865af8da.tar.gz
tre-69643f8e38ee74406365704f73be4d5f865af8da.tar.xz
Add logical inverse expression
[^a-z] matches any character that is not in the range a-z.
Diffstat (limited to 'compiler/ast.go')
-rw-r--r--compiler/ast.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/compiler/ast.go b/compiler/ast.go
index f0181f5..0b72f8d 100644
--- a/compiler/ast.go
+++ b/compiler/ast.go
@@ -119,15 +119,6 @@ func (s symbolPositionSet) sort() []symbolPosition {
return sorted
}
-type byteRange struct {
- from byte
- to byte
-}
-
-func (r byteRange) String() string {
- return fmt.Sprintf("%v - %v", r.from, r.to)
-}
-
type astNode interface {
fmt.Stringer
children() (astNode, astNode)