diff options
author | Ryo Nihei <nihei.dev@gmail.com> | 2021-04-01 21:03:40 +0900 |
---|---|---|
committer | Ryo Nihei <nihei.dev@gmail.com> | 2021-04-01 21:03:40 +0900 |
commit | 69643f8e38ee74406365704f73be4d5f865af8da (patch) | |
tree | fca8d8371527a59f09778fa124d4b90addca6c88 /compiler/ast.go | |
parent | Pass values in error type to panic() (diff) | |
download | tre-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.go | 9 |
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) |