翻訳と辞書 |
PRECCX (Pre-C-Compiler eXtended) An infinite-{lookahead} compiler-compiler by Peter Breuer for {context dependent grammars}. PRECCX generates ANSI C. Specification scripts are in very EBNF with {inherited attributes} and {synthetic attributes} allowed. Scripts can be compiled in separate modules and linked later. {Meta-production rules} are allowed. Grammars can be essentially LL(oo) with optimisations. A converter for yacc scripts is available. Versions 1.xx were known as "PRECC" and only had unbounded lookahead. The 2.xx series added the "X" for "extended" and featured higher order parameterisation (inherited attributes). Version 2.42 integrates inherited and synthesized attributes by using a "monadic" model for parsing. You can now synthsize attributes during the pass and inherit them in the remainder, e.g. @ foo = barx gum(x)
synthesises an x in bar and passes it down into gum as a parameter. Useful for @ what = ?x did_you
スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース |
Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.
|
|