シェル文法の拡張可能な自己文法拡張スクリプト言語
書誌事項
- タイトル別名
-
- Shell Syntax with Self-syntax Extensible Script Language
この論文をさがす
抄録
ライブラリによる文法拡張は,Erdwegらが提案した新しい言語拡張の方法である.Erdwegらの提案は,パーサと実行環境が分離したJavaで実装されていたが,我々は,Konohaスクリプト処理系のパーサを拡張することで,スクリプト自身による文法拡張を目指している.拡張されたパーサは,字句解析,構文解析,型付けにフックポイントを設けることで,スクリプトによる字句列や構文木の低レベルな操作が可能である.そのため‘ls -l | egrep -i’のようなシェル文法をクオート処理することなく,直接Cスタイルの文法に融合する文法拡張ライブラリが定義できるようになった.本論文では,シェル文法の拡張を中心にKonohaの文法拡張機能を報告する.
Library-based Syntactic Extensibility is a recently proposed approach for extending a programming language, by Erdweg et al. While they implemented that method on Java, a language with separated parser and runtime, we aim at extending script by script itself. We extend a parser of Konoha script language. The extended parser has hook points on tokenizing, parsing and typing and enabled to operate tokens or syntax trees with a script. We implemented the Shell Syntax Library that integrate shell syntax such as ‘ls -l | egrep -i’ directly into C style syntax, without any quote symbols. In this paper, we report syntactic extensibility of Konoha with a central focus on Shell Syntax Library.
収録刊行物
-
- 情報処理学会論文誌プログラミング(PRO)
-
情報処理学会論文誌プログラミング(PRO) 6 (4), 78-78, 2013-12-25
- Tweet
キーワード
詳細情報 詳細情報について
-
- CRID
- 1050564287857783552
-
- NII論文ID
- 110009656461
-
- NII書誌ID
- AA11464814
-
- ISSN
- 18827802
-
- Web Site
- http://id.nii.ac.jp/1001/00096935/
-
- 本文言語コード
- ja
-
- 資料種別
- article
-
- データソース種別
-
- IRDB
- CiNii Articles