
オーバーロードOverloading
$expression = L("(") - $EXPRESSION - L(")") | $TERM - (L("+") - $EXPRESSION | $nothing);
- ここまでするともうほとんど予定した文法規則通りになっている
This looks almost exactly like the grammar rule we're implementing
expression → "(" expression ")" | term ("+" expression | nothing)
- Parse::RecDescentの仕様にもよく似ているけれど
It also looks a lot like a Parse::RecDescent specification
- こちらは純然たるPerlコード。限定的なサブ言語ではない
But it's actually Perl code, not a limited sub-language
- ここからはこの表記を使っていこう
I'll use this notation from now on