Created
March 8, 2016 10:51
-
-
Save kmizu/a79887bd4694cd20bdfb to your computer and use it in GitHub Desktop.
既に見た修飾子にマッチしないHOPEG(First OrderなPEGの機能しか使っていないが)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
S = Modifiers(!"") !.; | |
Modifiers(AlreadyLooked) = (!AlreadyLooked) ( | |
Token("public") Modifiers(AlreadyLooked / "public") | |
/ Token("static") Modifiers(AlreadyLooked / "static") | |
/ Token("final") Modifiers(AlreadyLooked / "final") | |
/ "" | |
); | |
Token(t) = t Spacing; | |
Spacing = " "*; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment