WEKO3
アイテム
Forth系言語におけるワード用スキャナAPIの廃止と即時実行属性の拡張等について
https://ipsj.ixsq.nii.ac.jp/records/195829
https://ipsj.ixsq.nii.ac.jp/records/195829778a7b08-6148-4db6-8eb7-01d2fc6a273b
| 名前 / ファイル | ライセンス | アクション |
|---|---|---|
|
|
Copyright (c) 2019 by the Information Processing Society of Japan
|
|
| オープンアクセス | ||
| Item type | Trans(1) | |||||||
|---|---|---|---|---|---|---|---|---|
| 公開日 | 2019-05-21 | |||||||
| タイトル | ||||||||
| タイトル | Forth系言語におけるワード用スキャナAPIの廃止と即時実行属性の拡張等について | |||||||
| タイトル | ||||||||
| 言語 | en | |||||||
| タイトル | Abolition of Scanner APIs for Words and Extension of Immediate Execution Attribute and etc. in Forth Languages | |||||||
| 言語 | ||||||||
| 言語 | jpn | |||||||
| キーワード | ||||||||
| 主題Scheme | Other | |||||||
| 主題 | [発表概要,Unrefereed Presentation Abstract] | |||||||
| 資源タイプ | ||||||||
| 資源タイプ識別子 | http://purl.org/coar/resource_type/c_6501 | |||||||
| 資源タイプ | journal article | |||||||
| 著者所属 | ||||||||
| 秋田公立美術大学 | ||||||||
| 著者所属(英) | ||||||||
| en | ||||||||
| Akita University of Art | ||||||||
| 著者名 |
飯倉, 宏治
× 飯倉, 宏治
|
|||||||
| 著者名(英) |
Koji, Iigura
× Koji, Iigura
|
|||||||
| 論文抄録 | ||||||||
| 内容記述タイプ | Other | |||||||
| 内容記述 | Forth系言語では,制御構造はもとより字句解析の前処理をもワードにて実現している.これは統一的で美しいものであるが,スキャナAPIをワードへ提供することは必要不可欠なのだろうか.Forthでは,プログラム中のコメントやこれから定義されるワード名への対応等,トークンの評価を避けるため,いくつかのワードは入力バッファへ関与する.これは,Forth系言語に存在する即実行属性が関係しており,外部インタプリタによる解釈の前に入力テキストをワードが横取りしなければ,予期せぬワードが起動してしまったり,未定義ワードとして判断されてしまうからである.本発表では,即時実行属性を整数値へと拡張し,コメントをつかさどるワードにおいてもスキャナ用APIを必要とすることなく適切に処理できる様子を示す.また,コメント文の終了もワードにて表現でき,これらを利用したHTML文書そのものをソースコードとして取り扱う試みについても紹介する.その他,即時実行ワードであっても,ほとんどのものがコンパイル可能となるため,これらワードと同名のシンボルを許容するリストの実現についても説明を行う.これから定義されるワード名についても,外部インタプリタが文字列に対応できれば,スキャナ用APIが不要であることも示す. | |||||||
| 論文抄録(英) | ||||||||
| 内容記述タイプ | Other | |||||||
| 内容記述 | In the Forth like languages, not only the control structure but also preprocessing of the lexical analysis are realized by Words. This is beautiful and unified, however is it really essential to provide the scanner APIs for the Words? In Forth, some Words are involved in the input buffer to avoid the evaluation of tokens, such as comments and the Words to be defined in future. This is related to the immediate execution attributes existing in the Forth like languages. Unless an input text is intercepted by a Word before interpretation by an external interpreter, the Word either will be treated as an unexpected Word to be invoked, or will be judged as an undefined Word. In this presentation, we will extend the immediate execution attribute to an integer value and show it can be handled properly without requiring a scanner APIs even for the comment related Words. In addition, after showing that the end of comments can be represented by a Word, we will introduce an attempt in which an HTML document can be utilized as a source code using the represented Word. Since most of immediate execution Words can be compiled, implementation of creating a list that allows symbols with the same name as those Words, is also presented. Even for a Word to be defined in future, if the external interpreter can handle a string as a value, we will also show that the scanner APIs is unnecessary. | |||||||
| 書誌レコードID | ||||||||
| 収録物識別子タイプ | NCID | |||||||
| 収録物識別子 | AA11464814 | |||||||
| 書誌情報 |
情報処理学会論文誌プログラミング(PRO) 巻 12, 号 2, p. 19-19, 発行日 2019-05-21 |
|||||||
| ISSN | ||||||||
| 収録物識別子タイプ | ISSN | |||||||
| 収録物識別子 | 1882-7802 | |||||||
| 出版者 | ||||||||
| 言語 | ja | |||||||
| 出版者 | 情報処理学会 | |||||||