Skip to content

Instantly share code, notes, and snippets.

@ovaillancourt
Created August 2, 2012 15:39
Show Gist options
  • Save ovaillancourt/3238018 to your computer and use it in GitHub Desktop.
Save ovaillancourt/3238018 to your computer and use it in GitHub Desktop.
query = resource-type, [fields], [condition];
resource-type = string;
fields = "(", string, [",", {string}], ")";
condition = ":" , (integer, "..", integer)
| (integer, "_", positive-integer)
| integer
| string
| ("~", integer)
| "*";
string = alphanumerical, { char };
char = alphanumerical | "-" | "_";
alphanumerical = alphabetical | digit;
alphabetical = ?a-z? | ?A-Z?;
integer = ["-"], positive-integer;
positive-integer = digit, {digit};
digit = ?0-9?;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment