Adding basic code to render stand and end indicators

This commit is contained in:
Jeff Avallone
2014-11-30 15:36:53 -05:00
parent e910c757e5
commit ed2c26c39e
5 changed files with 49 additions and 20 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
grammar JavascriptRegexp
root <- ( ( "/" regexp "/" fl:[igm]* ) / regexp ) <Root>
root <- ( ( "/" regexp "/" fl:[igm]* ) / regexp ""? ) <Root>
regexp <- match ( "|" match )* <Regexp>
match <- anchor_start? ( ( subexp / charset / terminal ) repeat? )* anchor_end?
anchor_start <- "^"