• 検索結果がありません。

シェル文法の拡張可能な自己文法拡張スクリプト言語

N/A
N/A
Protected

Academic year: 2021

シェア "シェル文法の拡張可能な自己文法拡張スクリプト言語"

Copied!
1
0
0

読み込み中.... (全文を見る)

全文

(1)情報処理学会論文誌. プログラミング. Vol.6 No.4 78 (Dec. 2013). 発表概要. シェル文法の拡張可能な自己文法拡張スクリプト言語 松村 哲郎1,a). 志田 駿介1. 井出 真広1. 倉光 君郎1,2. 2013年6月3日発表. ライブラリによる文法拡張は,Erdweg らが提案した新しい言語拡張の方法である.Erdweg らの提案 は,パーサと実行環境が分離した Java で実装されていたが,我々は,Konoha スクリプト処理系のパーサ を拡張することで,スクリプト自身による文法拡張を目指している.拡張されたパーサは,字句解析,構 文解析,型付けにフックポイントを設けることで,スクリプトによる字句列や構文木の低レベルな操作が 可能である.そのため ‘ls -l | egrep -i’ のようなシェル文法をクオート処理することなく,直接 C スタイル の文法に融合する文法拡張ライブラリが定義できるようになった.本論文では,シェル文法の拡張を中心 に Konoha の文法拡張機能を報告する.. Shell Syntax with Self-syntax Extensible Script Language Tetsuro Matsumura1,a). Shunsuke Shida1. Masahiro Ide1. Kimio Kuramitsu1,2. Presented: June 3, 2013. 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.. 1. 2. a). 横浜国立大学 Yokohama National University, Yokohama, Kanagawa 240– 8501, Japan 科学技術振興機構/CREST Japan Science and Technology Agency/CREST, Chiyoda, Tokyo 102–0075, Japan [email protected]. c 2013 Information Processing Society of Japan . 78.

(2)

参照

関連したドキュメント

We consider formal provability with structural induction and related proof principles in the λ-calculus presented with first-order abstract syntax over onesorted variable names..

In the literature it is usually studied in one of several different contexts, for example in the game of Wythoff Nim, in connection with Beatty sequences and with so-called

Oscillatory Integrals, Weighted and Mixed Norm Inequalities, Global Smoothing and Decay, Time-dependent Schr¨ odinger Equation, Bessel functions, Weighted inter- polation

In the study of dynamic equations on time scales we deal with certain dynamic inequalities which provide explicit bounds on the unknown functions and their derivatives.. Most of

For instance, Racke & Zheng [21] show the existence and uniqueness of a global solution to the Cahn-Hilliard equation with dynamic boundary conditions, and later Pruss, Racke

Using the fact that there is no degeneracy on (α, 1) and using the classical result known for linear nondegenerate parabolic equations in bounded domain (see for example [16, 18]),

“Breuil-M´ezard conjecture and modularity lifting for potentially semistable deformations after

Lemma 4.1 (which corresponds to Lemma 5.1), we obtain an abc-triple that can in fact be shown (i.e., by applying the arguments of Lemma 4.4 or Lemma 5.2) to satisfy the