タグ

parserに関するyuji1982のブックマーク (5)

  • Haskell: parsec (parser combinator)

    parsecのお勉強をする。今日のYet Another Perl Conferenceで聞いたんだけど、ある程度マスターすれば15分でPerlのparserが書けるらしいよ。すげえ!という事で、やってみますかぃのぉ。 parsec - a free monadic parser combinator library Parsec, a fast combinator parser Parsec, 高速なコンビネーターパーサ Write Yourself a Scheme in 48 Hours Library Reference: Index of /ghc/docs/6.4/html/libraries/parsec Parsec: Direct Style Monadic Parser Combinators for the Real World , Daan Leijen and

  • Cleanで関数プログラミング 【第2部第5章】

    目次へ    最終更新 : 2002/11/10 第5章 パーサコンビネータ 5.1 パーサの型 5.2 初歩的なパーサ 5.3 文法 5.4 パーサコンビネータ 5.5 パーサ変換子 5.6 括弧の照合 5.7 より多くのパーサコンビネータ 5.8 オプションの解析 5.9 算術式 5.10 一般化式 5.11 モナドパーサ 5.12 文脈依存性 5.13 よくある罠 5.14 エラー処理 5.15 自己適用 5.16 演習 章は、パーサコンビネータ(parser combinator)を使用して遅延関数型言語のパーサ(構文解析子)を記述する公式的ではない紹介である。コンビネータ(結合子、組合せ子)は、解析関数(parse function)を操作する演算子である。これらのコンビネータを使用すると、エレガントな方法で、曖昧な文法(ambiguous gr

  • JParsec - NParsec Tutorial

    A Tutorial for NParsec Framework In this tutorial, we will use the classical example: calculator, to show how NParsec's declarative API can be used to create a parser. NParsec can be downloaded here. The tutorial will use C# 2.0 syntax (generics and anonymous delegates) since NParsec is built exclusively for C# 2.0 or higher. Our calculator should be able to: support calculation of decimal number

  • Parsec, 高速なコンビネータパーサ

    文書は次に掲げる URL で示される文書の部分的な邦訳です。 http://www.cs.uu.nl/people/daan/download/parsec/parsec.html Parsec, 高速なコンビネータパーサ Daan Leijen University of Utrecht Dept. of Computer Science PO.Box 80.089, 3508 TB Utrecht The Netherlands daan@cs.uu.nl, http://www.cs.uu.nl/~daan Parsec, 高速なコンビネータパーサ Daan Leijen University of Utrecht Dept. of Computer Science PO.Box 80.089, 3508 TB Utrecht The Netherlands daan@

  • 8.4  Local opens for patterns

    For patterns, local opens are limited to the module-path.( pattern) construction. This construction locally open the module referred to by the module path module-path in the scope of the pattern pattern. When the body of a local open pattern is delimited by [ ], [| |], or { }, the parentheses can be omitted. For example, module-path.[ pattern] is equivalent to module-path.([ pattern]), and module-

  • 1