We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentc414b5e commit8eba4a3Copy full SHA for 8eba4a3
src/edu/stanford/nlp/trees/tregex/TregexParser.jj
@@ -156,9 +156,9 @@ DescriptionPattern Description(Relation r, boolean negateDesc, boolean cat) : {
156
// this is how we match tokens
157
// the return value of tokens is a Token object
158
( ( ( desc = <IDENTIFIER> | desc = <REGEX> | desc = <BLANK> | desc = <ROOTNODE> )
159
- ( ( "#" groupNum = <NUMBER> "%" groupVar = <IDENTIFIER> ) {
160
- varGroups.add(new Pair<Integer,String>(Integer.parseInt(groupNum.image),groupVar.image));
161
- } )*
+( ( "#" groupNum = <NUMBER> "%" groupVar = <IDENTIFIER> ) {
+varGroups.add(new Pair<Integer,String>(Integer.parseInt(groupNum.image),groupVar.image));
+} )*
162
( ( "=" name = <IDENTIFIER> )
163
{ if (knownVariables.contains(name.image)) {
164
throw new ParseException("Variable " + name.image + " has been declared twice, which makes no sense");