Skip to content

Instantly share code, notes, and snippets.

View shixzie's full-sized avatar
:octocat:
weeb

Juan Alvarez shixzie

:octocat:
weeb
View GitHub Profile
@shixzie
shixzie / something.peg
Created May 29, 2017 02:04
literal rule definition overrided by regex
// Excluding first block
Let <- "let" // This is overrided by the following, same happens if i put this rule below the Identifier rule
Identifier <- ([a-z_]i+([a-z0-9_]i)*) {
return string(c.text), nil
}