@article{oai:hsuh.repo.nii.ac.jp:00006725, author = {貞方, 一也 and SADAKATA, Ichiya}, journal = {北海道医療大学看護福祉学部紀要}, month = {}, note = {P(論文), 今回のプロジェクトはwebサーバー上でFORTHを動かすことを目的とする。プロジェクトの内容は、まずLANに接続するWindowsマシーンの上でWebサーバーを立ち上げること、次に、このサーバー上で、cgiプログラムによってFORTHをとにかく動かすこと、最後に、FORTHを対話的に動かす仕組みを作り上げることである。プロジェクトは成功し、直接起動されたFORTHと同じく、webサーバー上のFORTHを対話的に動かすことができるようになった。, 32-bit FORTH in a DOS window, "forth32w.exe" and "forthex.exp", have been developed for several years by the author, "forth32w.exe" works in the DOS memory and executes such a task as the 1000-digit calculation of pi at high speed. The purpose of the present study is to make 32-bit FORTH that works in a Web server. First, modifying "forth32w.exe", we made "forth321.exe" that outputs html-tags when starting. Next, we made "forth32.cgi" that has the following perl's sentences : #!c:/usr/bin/perl $str=system("cmd/Cc:/forth/forth321.exe testhtml. blk"); exit; We can start "forth32.cgi" by inputting the following: http://localhost:80/forth32.cgi After starting, "forth321.exe" loads source from "testhtml.blk" and executes it. This "forth32. cgi" is very simple. But, to execute a different source, it is necessary to rewrite "testhtml.blk". To execute FORTH interactively, we have greatly renewed "forth32.cgi". The new "forth32.cgi" works as follows: (1) it opens a html-window that has a textarea and a "Run" button; (2) it waits for input of source (for instance, 1000 bnp-pi bnp.); (3) after source is input and the "Run" button is clicked, "forth32.cgi" outputs the source into the work file "testhtml.blk". Then, "forth321.exe" loads the source from "testhtml.blk" and executes it. (4) it prints the output of FORTH in a new window and waits for close of the window. (5) it goes to (2).}, pages = {59--65}, title = {Webサーバー上の32ビットFORTH}, volume = {11}, year = {2004} }