Created
December 12, 2011 23:37
-
-
Save machisuji/1469672 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| [33.37] failure: identifier expected | |
| any defined by operation parameters; | |
| ^ |
This file contains hidden or 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
| any defined by operation; |
This file contains hidden or 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
| lexical.delimiters ++= List("{", "}", ";", "=", "<", ">") | |
| lexical.reserved += ("int", "string", "binary", "any", "defined", "by", "struct", | |
| "optional", "sequence", "union", "case", "typedef", "message", "protocol", "ID") | |
| def identifier = guard(ident) ~> | |
| regex("\\w+", error = "Identifier expected but ':token' found.") ^^ (Identifier) | |
| def `type`: Parser[Type] = ( | |
| "any" ~ "defined" ~ "by" ~> identifier ~ identifier ^^ (AnyDefinedBy) | |
| | identifier | |
| | primitiveType | |
| ) |
This file contains hidden or 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
| def identifier = guard(ident) ~> | |
| regex("\\w+", error = "Identifier expected but ':token' found.") ^^ (Identifier) | |
| def `type`: Parser[Type] = ( | |
| "any" ~ "defined" ~ "by" ~> identifier ^^ (AnyDefinedBy) | |
| | identifier | |
| | primitiveType | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment