Skip to content

Instantly share code, notes, and snippets.

View patrickbkr's full-sized avatar

Patrick Böker patrickbkr

View GitHub Profile
@patrickbkr
patrickbkr / gist:5fd2380e8bbe140b22f3
Created February 26, 2015 18:00
State and backtracking
#!/usr/bin/env perl6
grammar Tracker {
regex TOP {
:my %*QUOTE_TRACKER;
Beginning
[ <quote> || .*! ]
End { say "failure" if %*QUOTE_TRACKER<inQuote> == True }
}