ウィキペディア英語版

出典:Wikipedia

Tail recursive parser

出典:『Wikipedia』 (2010/03/27 04:04 UTC 版)

英語による解説

ウィキペディア英語版からの引用
引用

Tail recursive parsers are derived from the more common Recursive descent parsers. Tail recursive parsers are commonly used to parse left recursive grammars. They use a smaller amount of stack space than regular recursive descent parsers. They are also easy to write. Typical recursive descent parsers make parsing left recursive grammars impossible (because of an infinite loop problem). Tail recursive parsers use a node reparenting technique that makes this allowable. Given an EBNF Grammar such as the following:

調べた例文を記録して、効率よく覚えましょう
Weblio会員無料で登録できます
履歴機能 過去に調べた単語を確認できる
語彙力診断 診断回数が4回に増加
マイ単語帳 便利な学習機能付き
マイ例文帳 文章で意味を理解できる

Tail recursive parserのページの著作権