次の文法規則があります。
pacman
: section section map section
;
3 つの異なる を異なる方法で処理する、このルールの Java アクションを作成したいと考えていますsection
。3 つの異なるインスタンスのハンドルは何ですか?
これは私が欲しいものを示す疑似コードです:
pacman
: section section map section
{
processFirstSection($section[0]);
if(checkSecondSection($section[1]))
{
//The if statement isn't important itself;
//the point is that I do completely different
//things with each section
handleThirdSection($section[2]);
}
}
;