protected void docstring(
Node node
)
{
IToken doc = null;
try { // for error handling
{
if ((LA(1)==TRIPLE_QUOTED_STRING) && (tokenSet_10_.member(LA(2))))
{
doc = LT(1);
match(TRIPLE_QUOTED_STRING);
if (0==inputState.guessing)
{
node.Documentation = DocStringFormatter.Format(doc.getText());
}
{
if ((LA(1)==EOL||LA(1)==EOS) && (tokenSet_10_.member(LA(2))))
{
eos();
}
else if ((tokenSet_10_.member(LA(1))) && (tokenSet_11_.member(LA(2)))) {
}
else
{
throw new NoViableAltException(LT(1), getFilename());
}
}
}
else if ((tokenSet_10_.member(LA(1))) && (tokenSet_11_.member(LA(2)))) {
}
else
{
throw new NoViableAltException(LT(1), getFilename());
}
}
}
catch (RecognitionException ex)
{
if (0 == inputState.guessing)
{
reportError(ex, "docstring");
recover(ex,tokenSet_10_);
}
else
{
throw ex;
}
}
}