JPH02214935A - Production processing method for source program - Google Patents

Production processing method for source program

Info

Publication number
JPH02214935A
JPH02214935A JP3670089A JP3670089A JPH02214935A JP H02214935 A JPH02214935 A JP H02214935A JP 3670089 A JP3670089 A JP 3670089A JP 3670089 A JP3670089 A JP 3670089A JP H02214935 A JPH02214935 A JP H02214935A
Authority
JP
Japan
Prior art keywords
japanese
program
source program
source
character code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP3670089A
Other languages
Japanese (ja)
Inventor
Shigeru Kimura
茂 木村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP3670089A priority Critical patent/JPH02214935A/en
Publication of JPH02214935A publication Critical patent/JPH02214935A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PURPOSE:To facilitate the production of a source program which may sometimes include the Japanese character codes with use of an editing process function for Japanese word documents by describing a specific language identifier at the head of each described sentence except the commentary sentences. CONSTITUTION:A normal Japanese word processor uses a Japanese word dictionary 14 produced by a Japanese word document production processing part 12. Then a source program is produced as a Japanese word document 16 by means of the processing function of the Japanese word processor. A language identifier is set at the head of each described sentence except the commentary sentences in accordance with the applied system. A source form conversion processing part 13 converts a sentence containing a language identifier into a character code and stores the result of this conversion into a source program file 17 as a source program 18. Thus it is possible to easily produce the program 18 which includes the program character codes and the Japanese character codes mixed together.

Description

【発明の詳細な説明】 〔概要〕 計算機システムにおいて、注釈文を日本語文字で記述す
ることが可能なC0BOL等の計算機言語のソースプロ
グラムを作成するソースプログラム作成処理方法に関し
DETAILED DESCRIPTION OF THE INVENTION [Summary] The present invention relates to a source program creation processing method for creating a source program in a computer language such as C0BOL in which annotation sentences can be written in Japanese characters in a computer system.

日本語文書の編集処理機能を用いて9日本語文字コード
が含まれることがあるソースプログラムを、容易に作成
することができるようにすることを目的とし。
The purpose is to make it possible to easily create a source program that may include 9 Japanese character codes using a Japanese document editing function.

プログラムの有効行に対し、先頭にあらかじめ複数種類
定められた言語識別子の中の特定の言語識別子の文字コ
ードを設定して1日本語文書作成処理により、ソースプ
ログラムを日本語文字コードを用いて記述し、その文書
ファイルを作成する文書作成処理過程と1文書ファイル
の各行を入力し、先頭に指定された言語識別子の文字コ
ードがある場合に、その行をプログラムの記述に用いる
べき文字コード体系の文字コード列に変換し、ソースプ
ログラムファイルに出力するソース形式変換処理過程と
を備えるように構成する。
For the effective line of the program, set the character code of a specific language identifier among multiple predetermined language identifiers at the beginning, and write the source program using the Japanese character code using the 1 Japanese document creation process. Then, the document creation processing process that creates the document file, and each line of one document file is input, and if there is a character code for the specified language identifier at the beginning, that line is used to input the character code system that should be used to write the program. and a source format conversion processing step for converting into a character code string and outputting it to a source program file.

〔産業上の利用分野〕[Industrial application field]

本発明は、計算機システムにおいて、注釈文を日本語文
字で記述することが可能なC0BOL等の計算機言語の
ソースプログラムを作成するソースプログラム作成処理
方法に関する。
The present invention relates to a source program creation processing method for creating a source program in a computer language such as COBOL, in which annotation sentences can be written in Japanese characters, in a computer system.

計算機を動作させる命令を記述するプログラム言語には
、一般に英数字が使用されることが多いが ソースプロ
グラムの内容を理解しやすくするために ソースプログ
ラム中に日本語による注釈文(コメント文)を挿入する
ことが行われている。
Although alphanumeric characters are generally used in programming languages to write instructions for operating computers, annotations (comments) in Japanese are inserted into the source program to make it easier to understand the contents of the source program. things are being done.

その日本語文の入力を容易1−(る手段が望まれる。A means for easily inputting Japanese sentences is desired.

(従来の技術〕 第4図は従来技術の例を示す。(Conventional technology) FIG. 4 shows an example of the prior art.

図中、10は処理装置、11は入力装置、14は日本語
辞書、17はソースプログラムファイル18はソースプ
ログラム 40はlハイド単位の英数字コードと日本語
文字コードの入力を切り換える入力切り換え部、41は
日本語文字コード入力部、42は入力ハッファ、43は
ソースプログラム18の編集を行うエディタ、44はコ
ンパイラ、45はソースプログラム18を機械語に翻訳
したオブジェクトプログラムを表す。
In the figure, 10 is a processing device, 11 is an input device, 14 is a Japanese dictionary, 17 is a source program file 18 is a source program, 40 is an input switching unit that switches input of alphanumeric code and Japanese character code in units of l hide; 41 is a Japanese character code input section, 42 is an input buffer, 43 is an editor for editing the source program 18, 44 is a compiler, and 45 is an object program that translates the source program 18 into machine language.

C0BOL言語やFORTRAN言語TR上るソースプ
ログラム18を作成する場合1通常2行単位の編集処理
機能などを持つエディタ43が。
When creating a source program 18 using the C0BOL language or the FORTRAN language TR, an editor 43 is used which normally has a two-line editing function.

用いられている。エディタ43は、キーボード等の入力
装置11から文字入力を行い、ソースプログラムファイ
ル17に各行のレコードを出力する。
It is used. The editor 43 inputs characters from the input device 11 such as a keyboard, and outputs records of each line to the source program file 17.

ところで ソースプログラム18における注釈文を、漢
字や仮名文字による日本語文字で記述すると、プログラ
ムがとても見易くなる。しかし一般に、英数字などのプ
ログラムの記述に用いられる文字コードは、1バイト単
位の英数字コードであり、2バイト単位で扱う日本語文
字コードは既存のエディタ43では、直接、入力するこ
とができない。
By the way, if the annotations in the source program 18 are written in Japanese characters using Kanji or Kana characters, the program becomes much easier to read. However, in general, character codes used to write alphanumeric programs are 1-byte alphanumeric codes, and Japanese character codes, which are handled in 2-byte units, cannot be directly input using the existing editor 43. .

そこで、従来、第4図に示すように1日本語文字コード
入力部41をエディタ43とは別に用意し、ファンクシ
ョン・キーなどにより、入力切り換え部40によって1
日本語文字コードの入力と1バイト単位の英数字コード
の入力とを切り換えて、プログラムに英数字コードと1
日本語文字コードとを混在させるようにしていた。
Therefore, conventionally, a single Japanese character code input section 41 is prepared separately from the editor 43 as shown in FIG.
You can switch between inputting Japanese character codes and inputting alphanumeric codes in 1-byte units, and add alphanumeric codes and 1 byte to the program.
I tried to mix it with Japanese character code.

すなわち1日本語文字入力の指定があると1日本語文字
コード入力部41は1日本語辞書14を用いて、仮名漢
字変換等を行い、入力バッファ42にその変換結果を格
納する。エディタ43は。
That is, when there is a designation to input one Japanese character, the one Japanese character code input section 41 uses the one Japanese dictionary 14 to perform kana-kanji conversion, etc., and stores the conversion result in the input buffer 42. The editor 43 is.

その入力バッファ42の内容をソースプログラムファイ
ル17に出力する。
The contents of the input buffer 42 are output to the source program file 17.

(発明が解決しようとする課題) 特に、プログラムにおけるデータ部領域などは使用目的
があらかじめ決まっており、プログラムの作成や保守の
上で、頻繁に参照される。そのため、データ部等の注釈
を1日本語で記述することが進められているが、従来技
術によれば、第4図に示すように1日本語文字コード入
力の切り換えを行い1日本語辞書14をアクセスして1
日本語文字コードを1文字ずつ取り込まなければならな
いという問題があった。したがって、入力操作が煩雑に
なり3時間がかかるという問題があった。
(Problems to be Solved by the Invention) In particular, the purpose of use of the data section area in a program is determined in advance, and it is frequently referenced during program creation and maintenance. For this reason, it is being promoted to write annotations in the data section, etc. in one Japanese language, but according to the conventional technology, as shown in FIG. Access 1
There was a problem in that Japanese character codes had to be imported character by character. Therefore, there was a problem in that the input operation was complicated and took three hours.

また2例えば複数システムで動作するオブジェクトを出
し分けるクロスコンパイラ開発においては、当然、それ
ぞれのオペレーティング・システム(O3)を意識した
プログラムを記述しなければならなくなる。データ部の
定義においては、使用目的は同じであるが、領域のサイ
ズや形式が異なるものも多い。この場合、使用目的から
すれば1つのファイルとしてまとめることが望ましい。
In addition, for example, in the development of a cross compiler that separates objects that operate on multiple systems, it is naturally necessary to write programs with each operating system (O3) in mind. In the definition of the data section, although the purpose of use is the same, there are many cases in which the size and format of the area are different. In this case, considering the purpose of use, it is desirable to combine the files into one file.

しかし、従来、計算機やオペレーティング・システムに
応じて個別に対処する必要があった。
However, in the past, it was necessary to deal with each computer and operating system individually.

本発明は上記問題点の解決を図り9日本語文書の編集処
理機能を用いて1日本語文字コードが含まれることがあ
るソースプログラムを、容易に作成することができるよ
うにすることを目的としている。また、クロスコンパイ
ラの開発等を容易に行うことができる手段を提供するこ
とを目的としている。
The present invention aims to solve the above-mentioned problems and to make it possible to easily create a source program that may include Japanese character codes by using a Japanese document editing function. There is. It also aims to provide a means for easily developing a cross compiler.

〔課題を解決するための手段〕[Means to solve the problem]

第1図は本発明の構成例を示す。 FIG. 1 shows an example of the configuration of the present invention.

第1図において、10はCPUおよびメモリなどからな
る処理装置、11はキーボード等の入力装置、12は日
本語ワードプロセッサの処理機能を持つ日本語文書作成
処理部、13は文字コード等の変換を行うソース形式変
換処理部、14は入力装置11からの入力コード列と日
本語文字コードとの対応表を持つ日本語辞書、15は文
書ファイル、16は日本語文書、17はソースプログラ
ムファイル、18はソースプログラムを表す。
In FIG. 1, 10 is a processing unit consisting of a CPU and memory, 11 is an input device such as a keyboard, 12 is a Japanese document creation processing unit that has the processing function of a Japanese word processor, and 13 converts character codes, etc. a source format conversion processing unit; 14 a Japanese dictionary having a correspondence table between input code strings from the input device 11 and Japanese character codes; 15 a document file; 16 a Japanese document; 17 a source program file; Represents a source program.

また、PLは文書作成処理過程、P2はソース形式変換
処理過程を表す。
Further, PL represents a document creation process, and P2 represents a source format conversion process.

注釈文に用いる文字コードとして、プログラムのデータ
文または命令文の記述に用いる文字コード体系と異なる
日本語文字コードが含まれることがあるソースプログラ
ム18を作成する場合に。
When creating the source program 18, which may include a Japanese character code different from the character code system used to describe the program's data or command statements as the character code used in the comment statement.

本発明では1文書作成処理過程P1およびソース形式変
換処理過程P2によって作成する。
In the present invention, one document is created by a document creation process P1 and a source format conversion process P2.

文書作成処理過程P1では プログラムのデータ文また
は命令文の有効行に対し、先頭にあらかじめ複数種類定
められた言語識別子の中の特定の言語識別子の文字コー
ドを設定して1日本語文書作成処理により、ソースプロ
グラムを日本語文字コードを用いて記述し、その文書フ
ァイル15を作成する。言語識別子は、@、!、%、・
・・などのソースプログラムが適用されるシステムに応
じてあらかじめ定められた記号である。
In the document creation process P1, the character code of a specific language identifier from among multiple predetermined language identifiers is set at the beginning of the effective line of the data statement or instruction statement of the program, and 1 Japanese document creation process is performed. , a source program is written using Japanese character codes, and a document file 15 thereof is created. The language identifier is @,! ,%,・
This is a predetermined symbol depending on the system to which the source program is applied.

ソース形式変換処理過程P2では9文書作成処理過程P
1によって作成された文書ファイル15の各行を入力し
、先頭に指定された言語識別子の文字コードがある場合
に、その行をプログラムの記述に用いるべき文字コード
体系の文字コード列に変換し、他の行を注釈文の行とし
て、ソースプログラムファイル17に出力する。
In the source format conversion process P2, 9 document creation process P
Input each line of the document file 15 created in step 1, and if there is a character code of the specified language identifier at the beginning, convert that line to a character code string of the character code system to be used for writing the program, and The line is output to the source program file 17 as a comment line.

〔作用〕[Effect]

本発明では1日本語文書作成処理部12による日本語辞
書14を利用した通常の日本語ワードプロセッサの処理
機能を用いて、ソースプログラムを日本語文書16とし
て作成する。このとき、注釈以外の記述文には、その先
頭に、適用するシステムに応じた言語識別子を設定する
In the present invention, a source program is created as a Japanese document 16 by using the processing function of a normal Japanese word processor using a Japanese dictionary 14 by a Japanese document creation processing section 12. At this time, a language identifier corresponding to the system to be applied is set at the beginning of the descriptive text other than the annotation.

次に9文書ファイル15の文書ファイル名と。Next, the document file name of 9 document file 15.

設定した言語識別子1例えば「@」とを指定して。Specify the set language identifier 1, for example "@".

ソース形式変換処理部13を起動すると、ソース形式変
換処理部13は、言語識別子の@が付けられた文を、E
BCDICコード等のプログラムの記述に用いるべき文
字コードに変換する。そして。
When the source format conversion processing unit 13 is started, the source format conversion processing unit 13 converts the sentence with the language identifier @ to E
Convert to character code to be used for writing programs such as BCDIC code. and.

変換結果をソースプログラムファイル17に、ソースプ
ログラム18として格納する。
The conversion result is stored in the source program file 17 as the source program 18.

これにより、プログラム用の文字コードと2日本語文字
コードとが混在するプログラムのソースプログラム18
を2日本語ワードプロセッサ等を用いて作成することが
できるようになり1日本語ワードプロセッサが持つ複写
・移動その他の各種の編集処理機能を用いて、簡単にソ
ースプログラム1日を作成できるようになる。
As a result, the source program 18 of the program in which the character code for the program and the two Japanese character codes are mixed.
2) can be created using a Japanese word processor, etc., and 1. A source program can be easily created using the copying, moving, and other editing functions of the Japanese word processor.

複数種類の言語識別子を使い分けることにより。By using multiple types of language identifiers.

各種のシステムに応じたソースプログラム18の元とな
る日本語文書16を、1つの文書ファイル15によって
管理することができるようになる。
The Japanese document 16 that is the source of the source program 18 suitable for various systems can be managed by one document file 15.

〔実施例〕〔Example〕

第2図は本発明の実施例、第3図は本発明の一実施例に
係る処理フローを示す。
FIG. 2 shows an embodiment of the present invention, and FIG. 3 shows a processing flow according to an embodiment of the present invention.

本発明によって、C0BOL登録集を作成する例につい
て、第2図に従って説明する。
An example of creating a COBOL registry according to the present invention will be described with reference to FIG.

C0BOL登録集は、C0BOLプログラムにおいて、
copy命令によって展開されるデータ定義領域の記述
を集めたものである。
The C0BOL Registry is the C0BOL program.
This is a collection of descriptions of data definition areas developed by the copy command.

まず1日本語文書作成処理部12によって、注釈文を日
本語で記述した第2図に示すような日本語文書16を作
成する。この日本語文書16は既存の日本語ワードプロ
セッサの処理機能を用いて6作成することができる。注
釈文以外については、システムに応じて定められた言語
識別子を先頭に記述する。この言語識別子は、言語によ
り。
First, the Japanese document creation processing unit 12 creates a Japanese document 16 as shown in FIG. 2 in which annotation sentences are written in Japanese. This Japanese document 16 can be created using the processing functions of an existing Japanese word processor. For text other than comment text, write the language identifier determined depending on the system at the beginning. This language identifier depends on the language.

例えば以下のようなものがある。For example, there are the following.

@:C0BOL  (システム 1 用−16ビフ)マ
シン):  C0BOL  (システム 2用−32ビ
ツトマシン)#:C言語 &:アセンブラ %:この行を無効とする /: C0BOLにおける改ページ指定、・・・・・・
なお、他にも種々の言語識別子を定めることができる。
@: C0BOL (For System 1 - 16 bit machine): C0BOL (For System 2 - 32 bit machine) #: C language &: Assembler %: Invalidate this line /: Page break specification in C0BOL,...・・・
Note that various other language identifiers can be defined.

ソース形式変換処理部13を起動するときに。When starting the source format conversion processing section 13.

言語およびシステムに応じて、言語識別子を指定する。Specify the language identifier depending on the language and system.

「@jを指定すると、第2図に示すC0BOL登録集2
0−1のように2日本語文書16において、@が付げら
れたデータ定義文が有効となる文字コードの変換が行わ
れ、システム1用C0BOL登録集の順ファイルが作成
される。
``If you specify @j, C0BOL Registry 2 shown in Figure 2 will be displayed.
In the 2 Japanese document 16 like 0-1, the character code is converted so that the data definition statement with @ is valid, and a sequential file of the COBOL registry for the system 1 is created.

一方、ソース形式変換処理部13の起動時に「!」を指
定すると、C0BOL登録集20−2のように1日本語
文書16において、!が付りられたデータ定義文が有効
となる文字コードの変換が行われ、システム2用C0B
OL登録集の順ファイルが作成される。
On the other hand, if you specify "!" when starting up the source format conversion processing unit 13, in one Japanese document 16 like the COBOL registry 20-2, ! Character code conversion is performed to enable data definition statements with
A sequential file of the OL registration collection is created.

このC0BOL登録集20−1またはC0BOL登録集
20−2からcopy命令によってソースを取り込んだ
C0BOLプログラム21を、C0BOLコンパイラ2
2によりコンパイルすることにより、システムに応じた
オブジェクトプログラムを作成することができる。
The C0BOL program 21 that has taken in the source from this C0BOL registry 20-1 or the C0BOL registry 20-2 by the copy instruction is run by the C0BOL compiler 2.
By compiling with 2, it is possible to create an object program suitable for the system.

日本語文書作成処理部12による処理は、従来の日本語
ワードプロセッサ等の処理機能を利用することができる
ので、特にソース形式変換処理部13が行う処理の例を
、第3図に従って説明する。
Since the processing performed by the Japanese document creation processing section 12 can utilize the processing functions of a conventional Japanese word processor, etc., an example of the processing performed by the source format conversion processing section 13 will be described in particular with reference to FIG.

以下の説明における■〜[相]は、第3図に示す処理■
〜[相]に対応する。
In the following explanation, ■ to [phase] are the processes shown in Fig. 3.
~ Corresponds to [phase].

■ まず、会話処理により、プログラムが記述された文
書、ファイル名と、言語識別子を入力する。
■ First, through conversation processing, the document in which the program is written, the file name, and the language identifier are input.

■ 次に1指定された文書ファイルの1行を、メモリの
作業域に読み取る。
■ Next, read one line of the specified document file into the memory work area.

■ 文書ファイルのレコードが終了したかどうかを判定
する。終了した場合、処理■へ移る。
■ Determine whether the records in the document file are finished. If completed, move on to process ■.

■ 読み込んだ1行のレコードに、半角文字を指定する
半角識別子(シフトオーダ)が存在するかどうかを調べ
る。
■ Check whether a half-width identifier (shift order) that specifies half-width characters exists in the read one-line record.

■ 半角識別子がない場合9次の処理■をスキップする
■ If there is no half-width identifier, skip the ninth step ■.

■ 作業域において、半角識別子を取り除いて。■ Remove half-width identifiers in the work area.

内部データを詰める。Pack internal data.

■ 作業域にある1行分のデータを1作業ファイルに格
納する。その後、処理■へ制御を戻し。
■ Store one line of data in the work area into one work file. After that, control is returned to processing ■.

同様に処理を繰り返す。Repeat the process in the same way.

■ 文書ファイルが終了したならば9作業ファイル(以
下、第1の作業ファイルという)をクローズした後、再
オーブンし、以下の処理を繰り返す。
- When the document file is finished, close the 9th work file (hereinafter referred to as the first work file), re-open it, and repeat the following process.

■ 第1の作業ファイルの1行分をメモリ上の作業域に
読み取る。
■ Read one line of the first work file into the work area in memory.

[相] 1行の先頭文字が、処理■の会話処理で指定さ
れた言語識別子と一致するかどうかを判定する。一致し
ない場合、処理■へ移る。
[Phase] Determine whether the first character of one line matches the language identifier specified in the conversation process of process (■). If they do not match, proceed to process ■.

■ 一致する場合、その行を、注釈文ではないプログラ
ムの有効行にするため2例えば、2ハイドの日本語文字
コードから、1バイト単位のEBCDICコードなどの
プログラム用の文字コードに変換する。
(2) If they match, convert the line from a double-hide Japanese character code to a program character code such as a 1-byte EBCDIC code in order to make the line a valid line for a program that is not a comment statement.

@ 第1の作業ファイルのレコードが終了したかどうか
を判定する。終了した場合、処理[相]へ移る。
@ Determine whether the recording of the first work file is finished. If finished, move to process [phase].

■ メモリ上の作業域にある1行分のデータを他の作業
ファイル(第2の作業ファイル)に格納する。その後、
処理■へ制御を戻して、処理を繰り返す。
■ Store one line of data in the work area in memory in another work file (second work file). after that,
Return control to process ■ and repeat the process.

[相] 第1の作業ファイルのレコードが終了したなら
ば、第2の作業ファイルの内容を読み出し類ファイルに
複写する。この複写によって、可変長から固定長の順フ
ァイル形式に変換し、各種言語処理部が扱うことができ
るファイルを作成する。
[Phase] When the recording of the first work file is completed, the contents of the second work file are copied to the read-out file. Through this copying, the variable-length file is converted into a fixed-length sequential file format, and a file that can be handled by various language processing units is created.

(発明の効果〕 以上説明したように2本発明によれば2次のような効果
がある。
(Effects of the Invention) As explained above, the present invention provides the following effects.

(1)既存の日本語ワードプロセッサ等の処理機能を用
いて、注釈文を自由に記述できるようになる。
(1) Annotations can be written freely using the processing functions of existing Japanese word processors, etc.

従来のエディタ等では難しかった表などの記述も容易に
できるようになる。
You can now easily write tables, etc., which were difficult to do with conventional editors.

(2)  クロスコンパイラ(COBOLなどで記述さ
れたもの)の開発において、システムごとに異なるデー
タ定義領域(COB’OL登録集)を1文書としてまと
めることができるようになる。その名書から、システム
に応じてプログラム中にデータ定義領域の記述を取り込
むことができ、データ定義領域の管理がしやすくなる。
(2) In the development of a cross compiler (written in COBOL or the like), data definition areas (COB'OL registry) that differ for each system can be compiled into one document. Based on the name, the description of the data definition area can be incorporated into the program according to the system, making it easier to manage the data definition area.

(3)B本譜入力処理を、入力の切り換えなどを行わず
に高速に行うことができ、操作性が向上して作業効率が
よくなる。
(3) B main score input processing can be performed at high speed without switching inputs, improving operability and improving work efficiency.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の構成例 第2図は本発明の実施例 第3図は本発明の一実施例に係る処理フロー第4図は従
来技術の例を示す。 図中、Plは文書作成処理過程、P2はソース形式変換
処理過程、10は処理装置、11は入力装置、12は日
本語文書作成処理部、13はソース形式変換処理部、1
4は日本語辞書、15は文書ファイル、16は日本語文
書、17はソースプログラムファイル、18はソースプ
ログラムを表す。
FIG. 1 shows a configuration example of the present invention. FIG. 2 shows an embodiment of the invention. FIG. 3 shows a processing flow according to an embodiment of the invention. FIG. 4 shows an example of a prior art. In the figure, Pl is a document creation processing process, P2 is a source format conversion process, 10 is a processing device, 11 is an input device, 12 is a Japanese document creation processing section, 13 is a source format conversion processing section, 1
4 represents a Japanese dictionary, 15 a document file, 16 a Japanese document, 17 a source program file, and 18 a source program.

Claims (1)

【特許請求の範囲】 注釈文に用いる文字コードとして、プログラムのデータ
文または命令文の記述に用いる文字コード体系と異なる
日本語文字コードが含まれることがあるソースプログラ
ム(18)を作成するソースプログラム作成処理方法に
おいて、 プログラムのデータ文または命令文の有効行に対し、先
頭にあらかじめ複数種類定められた言語識別子の中の特
定の言語識別子の文字コードを設定して、日本語文書作
成処理により、ソースプログラムを日本語文字コードを
用いて記述し、その文書ファイルを作成する文書作成処
理過程(P1)と、文書作成処理過程(P1)によって
作成された文書ファイルの各行を入力し、先頭に指定さ
れた言語識別子の文字コードがある場合に、その行をプ
ログラムの記述に用いるべき文字コード体系の文字コー
ド列に変換し、一方、言語識別子が付けられていない行
を注釈文の行として、ソースプログラムファイルに出力
するソース形式変換処理過程(P2)とを備えたことを
特徴とするソースプログラム作成処理方法。
[Scope of Claims] A source program for creating a source program (18) that may include a Japanese character code system different from the character code system used to describe data or command statements of the program as a character code used for annotation sentences. In the creation processing method, the character code of a specific language identifier among multiple predetermined language identifiers is set at the beginning of the effective line of the data statement or instruction statement of the program, and the Japanese document creation processing is performed. Enter the document creation process (P1) in which the source program is written using Japanese character codes and create the document file, and each line of the document file created by the document creation process (P1), and specify it at the beginning. If there is a character code for the language identifier attached, that line is converted to a character code string of the character encoding system to be used for writing the program, and on the other hand, the line without a language identifier is used as a line for the comment statement in the source code. A source program creation processing method comprising: a source format conversion processing step (P2) of outputting to a program file.
JP3670089A 1989-02-16 1989-02-16 Production processing method for source program Pending JPH02214935A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3670089A JPH02214935A (en) 1989-02-16 1989-02-16 Production processing method for source program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3670089A JPH02214935A (en) 1989-02-16 1989-02-16 Production processing method for source program

Publications (1)

Publication Number Publication Date
JPH02214935A true JPH02214935A (en) 1990-08-27

Family

ID=12477050

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3670089A Pending JPH02214935A (en) 1989-02-16 1989-02-16 Production processing method for source program

Country Status (1)

Country Link
JP (1) JPH02214935A (en)

Similar Documents

Publication Publication Date Title
EP0447157B1 (en) Data format conversion
JPH08241332A (en) Device and method for retrieving all-sentence registered word
JPH0778742B2 (en) Computer program language conversion device and method thereof
Meyrowitz et al. Interactive editing systems: Part II
JPS6170660A (en) Ambiguous display/selection method in machine translation system
JPH02112068A (en) Simple text display method
JP3476881B2 (en) Specification generator
JPH02214935A (en) Production processing method for source program
JPH03233670A (en) Text data conversion system
JPH0512034A (en) Method of enabling translation readable information by machine
JP2626722B2 (en) Japanese generator
JPH04128926A (en) Program comment translating system
JP2575665B2 (en) Logical diagram outline description conversion processing method
JPH02116963A (en) Document data processing device
Price et al. Evolution of an SGML application generator
JP2659092B2 (en) Cursor display control method in logic diagram creation processor
JP2521435B2 (en) Japanese generator
Ramalho et al. Algebraic specification of documents
Sastre XML-Based Representation Formats of Local Grammars for the NL
JP2763289B2 (en) Detailed description positioning method in logic diagram creation processing device
Wilson ltx2x: A LaTeX to X Auto-tagger
JPH01126767A (en) Dictionary referring device
Graham Languages and interactive software development
Hufflen Languages for bibliography styles
JPH0772897B2 (en) Machine translator