LoginSignup
4
4

More than 5 years have passed since last update.

【プログラミング48(/2 -1)手】Interpreter

Posted at

ポイント

構文解析の構文木を表現したパターン。
構文を解析、結果に基づいて実行する。

サンプルコード

以下参照。
http://morizyun.github.io/blog/ruby-design-pattern-13-interpreter/

所感

  • 構文解析機能をオブジェクト化して拡張可能にしておくということ。cliのツールを作成するときとかに使いそう。

参考にしたサイト

http://morizyun.github.io/blog/ruby-design-pattern-13-interpreter/
http://www.ie.u-ryukyu.ac.jp/~e085739/java.it.13.html

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4