From 69643f8e38ee74406365704f73be4d5f865af8da Mon Sep 17 00:00:00 2001 From: Ryo Nihei Date: Thu, 1 Apr 2021 21:03:40 +0900 Subject: Add logical inverse expression [^a-z] matches any character that is not in the range a-z. --- compiler/ast.go | 9 --------- 1 file changed, 9 deletions(-) (limited to 'compiler/ast.go') 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) -- cgit v1.2.3