Skip to content

Instantly share code, notes, and snippets.

@t0yv0
Created March 22, 2011 01:55
Show Gist options
  • Select an option

  • Save t0yv0/880621 to your computer and use it in GitHub Desktop.

Select an option

Save t0yv0/880621 to your computer and use it in GitHub Desktop.
@parser::members {
private bool CanInsertSemicolon {
get {
var i = input.LA(1);
return (i == RCURL
|| i == EOF
|| input.LT(1).Line > input.LT(-1).Line);
}
}
}
semicolon
: ';'
| { CanInsertSemicolon }?
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment