summaryrefslogtreecommitdiffstats
path: root/tests/snippets/peg/test_modified_strings.txt
blob: f4112265470afe4d1e1583b65639489327055b8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# see for example:
# - http://textx.github.io/Arpeggio/
# - https://nim-lang.org/docs/pegs.html
# - https://github.com/erikrose/parsimonious
# can't handle parsimonious-style regex while ~ is a cut operator

---input---
~"regex" i"insensitive" "multimod"ilx ("not modified")

---tokens---
'~'           Operator
'"regex"'     Literal.String.Double
' '           Text
'i"insensitive"' Literal.String.Double
' '           Text
'"multimod"ilx' Literal.String.Double
' '           Text
'('           Punctuation
'"not modified"' Literal.String.Double
')'           Punctuation
'\n'          Text.Whitespace