
messages.attributeDescriptions.pin.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grammar-kit Show documentation
Show all versions of grammar-kit Show documentation
Grammar-Kit library dedicated for language plugin developers.
The newest version!
The number or pattern of expression to pin.
The contract:
- Pin is applied to items of grammar sequence expressions
- While matching a sequence parser will ignore errors after a pinned item
Parenthesized list example:
{
tokens=[number="regexp:\d+" comma="," paren1="(" paren2=")"]
}
list ::= "(" items? ")" {pin=1} // or {pin="("}
private items ::= [!")" item (',' item) * ] {pin(".*")=1}
item ::= number {recoverWhile=item_recover}
private item_recover ::= !(")" | ",")
© 2015 - 2025 Weber Informatics LLC | Privacy Policy