JPH03250325A - Program version control system - Google Patents

Program version control system

Info

Publication number
JPH03250325A
JPH03250325A JP4788690A JP4788690A JPH03250325A JP H03250325 A JPH03250325 A JP H03250325A JP 4788690 A JP4788690 A JP 4788690A JP 4788690 A JP4788690 A JP 4788690A JP H03250325 A JPH03250325 A JP H03250325A
Authority
JP
Japan
Prior art keywords
program
version
interpreter
check
row
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
JP4788690A
Other languages
Japanese (ja)
Inventor
Shinichi Odagiri
小田切 信一
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP4788690A priority Critical patent/JPH03250325A/en
Publication of JPH03250325A publication Critical patent/JPH03250325A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PURPOSE:To save the labors of a user to check the program version and to easily decide whether a program is capable of excuting or not by storing the history information on the program into the row #0 and displaying automatically the check result of the program version via an interpreter. CONSTITUTION:The information 1 on the name of an interpreter that can execute a program 2 and the version of this program is stored into the row #0 of the program 2. Then a function is added so that the interpreter check the row #0 in a LOAD state of the program 2. The information 1 described to the row #0 is read in the LOAD state of the program 2 and it is decided whether the program 2 is practicable or not. The result of this decision is displayed on a screen in the form of a message. Thus the program version is automatically checked so as to save the labors of a user to confirm the program version.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明はBAS I Cプログラムのバージョン管理
に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] This invention relates to version control of BASIC programs.

[従来の技術] インタープリタ−のバージョンは起動時に画面に表示さ
れ、プログラムのバージョンはプログラム中にコメント
文として書かれている。しかし。
[Prior Art] The version of the interpreter is displayed on the screen at startup, and the version of the program is written as a comment in the program. but.

これを記述する行番号はどこでもよく、必ずしも最初の
行にあるとは限らない。また、バージョンの記述が省略
されたプログラムも数多く見られるプログラムを実行す
る場合、正しい結果を得るためには、インタープリタ−
とプログラムのバージョンを比較し確認しなければなら
ない。ユーザはインタープリタ−起動時に表示されたイ
ンタープリタ−のバージョンを覚えておく必要があり。
This line number can be placed anywhere, and is not necessarily on the first line. In addition, when executing a program in which there are many programs whose version description is omitted, in order to obtain correct results, it is necessary to
You must check by comparing the version of the program. The user needs to remember the version of the interpreter displayed when the interpreter is started.

プログラムを実行する前にプログラムのバージョンを調
べ、実行可能かどうかを判断する。プログラムのバージ
ョンを知るには、 1.OADした後LIsT表示して
、バージョンの記述のある行を捜す。バージョンを示す
コメント文はプログラム中どこにあってもかまわないの
で、ユーザにとって面倒な作業であり、もし、記述が省
略されていた場合は、このインタープリタ−で実行でき
るプログラムかどうかを判断できない。
Check the version of a program before running it to determine whether it is executable. To know the version of the program, 1. After OAD, display the LIsT and search for the line with the version description. Since the comment statement indicating the version can be placed anywhere in the program, it is a troublesome task for the user, and if the statement is omitted, it is impossible to determine whether the program can be executed by this interpreter.

このように、バージョンが確認されないまま実行すると
、誤った結果を得る可能性がある。
In this way, if you run without checking the version, you may get incorrect results.

[発明が解決しようとする課題] インタープリタ−にはバージョンによる機能や文法の違
いがあるため、従来の方法ではプログラムをLOAD 
した後LIST表示し、プログラムのパージョンを調べ
ることが必要で、もし、プログラムの中にバージョンの
記述がなければ、今使っているインタープリタ−で実行
できるかどうかを判断することができないなどの問題点
があった。
[Problem to be solved by the invention] Because interpreters have different functions and syntax depending on their version, the conventional method is to LOAD a program.
After that, it is necessary to display the LIST and check the version of the program. If there is no version description in the program, there are problems such as it is not possible to determine whether it can be executed with the interpreter currently being used. was there.

この考案は上記のような問題点を解消するためになされ
たもので、プログラムのLOAD時に、インタープリタ
−がプログラムの履歴情報を納めた行を調べることでバ
ージョンのチエツクを自動化しユーザがバージョンを確
認する手間を省くことを目的とする。
This idea was made to solve the above problems, and when a program is loaded, the interpreter examines the line containing the program's history information to automate the version check and allow the user to check the version. The purpose is to save you the trouble of doing so.

[課題を解決するための手段] この発明に係るバージョン管理方式は、プログラムの行
番号Oにプログラムが実行可能となるインタープリタ−
の名称やバージョンに関する情報を納め、インタープリ
タ−がプログラムのLOAD時にここをチエツクする機
能を付加することによって、バージョン管理を自動化し
たものである。
[Means for Solving the Problems] The version control method according to the present invention includes an interpreter that allows the program to be executed at line number O of the program.
This automates version management by storing information about the name and version of the program, and adding a function for the interpreter to check this when loading a program.

[作用] この発明におけるインタープリタ−は、プログラムのL
OAD時に行番号Oに記述された情報を読み取り、この
プログラムか実行可能なものであるがどうかをfす断し
、その結果を画面にメツセージとして表示する。
[Operation] The interpreter in this invention is a program L
During OAD, the information written in line number O is read, it is determined whether or not this program is executable, and the result is displayed as a message on the screen.

「発明の実施例」 以下、この発明の一実施例を図について説明する。第1
図において、(1)はプログラムの行番号0であり、こ
こに使用できるインタープリタ−の情報がコメント文で
書かれている。この例では“MB^SIC+ 4”が使
用できるインタープリタ−の名称であり“Ver5.3
4″がそのバージョンである。(2)はプログラムの例
である。インタープリタ−にはプログラムのLOAD後
にこの行番号0の内容をチエツクする機能を付加する。
"Embodiment of the Invention" An embodiment of the invention will be described below with reference to the drawings. 1st
In the figure, (1) is line number 0 of the program, and information about the interpreter that can be used here is written as a comment. In this example, “MB^SIC+ 4” is the name of the interpreter that can be used, and “Ver5.3” is the name of the interpreter that can be used.
4'' is the version. (2) is an example of a program. The interpreter is added with a function to check the contents of line number 0 after loading the program.

この発明における動作を図について説明する。The operation of this invention will be explained with reference to the drawings.

第2図はプログラムL OA D時のフローチャートで
ある。 (3)は従来のインタープリタ−に備わってい
るLOAD機能である。プログラムをLOAD したイ
ンタープリタ−は(4)においてプログラムの行番号O
をチエツクする。ここに書かれているインタープリタ−
名及びバージョンが、今使っているインク−ブリターと
一致すれば(5)で“バージョンチエ。
FIG. 2 is a flowchart when the program is loaded. (3) is a LOAD function provided in conventional interpreters. The interpreter that LOADed the program reads line number O of the program in (4).
Check. Interpreter written here
If the name and version match the ink-bliter you are currently using, select "Version check" in (5).

りOK″の表示をする。一致しなければ、(6)で“バ
ージョンチエツクエラー”を表示し、今使っているイン
タープリタ−とプログラムの行番号Oに記述されている
インタープリタ−の情報を表示するユーザはこの表示を
見ることによってプログラムが実行可能かどうかを判断
できる。
If they do not match, a “version check error” is displayed in step (6), and information about the interpreter currently being used and the interpreter written at line number O of the program is displayed. By looking at this display, the user can determine whether the program is executable.

第3図はプログラムの、SAVE時のフローチャートで
ある。(7)においてプログラムの行番号Oの内容を変
更するかしないかの表示をし、変更する場合は(8)イ
ンタープリタ−が自動的に行番号Oの内容を今使ってい
るインタープリタ−の情報に書き替える。変更しない時
は1行番号Oの内容はそのままで、(9)においてプロ
グラムの、SAVEが行われる。この、SAVEの機能
は従来のものと同じである。
FIG. 3 is a flowchart of the program at the time of SAVE. In (7), it is displayed whether or not to change the contents of line number O of the program, and if it is changed, in (8) the interpreter automatically changes the contents of line number O to the information of the interpreter currently in use. Rewrite. If no change is made, the contents of the first line number O remain as they are, and the program is SAVEd in (9). This SAVE function is the same as the conventional one.

なお、上記の実施例はBASICのみならず他の言語に
ついても適用できる。また、バージョンが一致しない時
の表示はエラー表示だけでなく、プログラムを変更する
ための操作案内などを表示することも考えられる。
Note that the above embodiment can be applied not only to BASIC but also to other languages. Furthermore, when the versions do not match, the display may include not only an error display but also operational guidance for changing the program.

]−発明の効果] 以1−のようにこの発明によれば、インタープリタ−が
自動的にプログラムのバージョンをチエツクして、その
結果を表示するので、ユーザがインタープリタ−とプロ
グラムそれぞれのバージョンを調べる手間が省け、フロ
グラムが実行可能であるかどうかの判断を容易にするこ
とができるなどの効果がある。
] - Effects of the Invention] As described in 1- above, according to the present invention, the interpreter automatically checks the version of the program and displays the result, so the user can check the versions of the interpreter and the program. This has the advantage of saving time and making it easier to judge whether a program is executable.

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

第1図はこの発明の一実施例によるサンプルプログラム
の説明図、第2図はこの発明の実施例によるインタープ
リタ−のLOAD機能を示すフロ−チャート7第3図は
この考案の実施例によるインタープリタ−の、SAVE
機能を示すフローチャートである。 (1)は使用インタープリタ−に関する情報、(2)は
プログラム、(3)は従来のLOAD機能、(4)はバ
ージョンチエツク、(5)はバージョンが一致したとき
の処理、(6)はバージョンが一致しないときの処理(
7)はプログラム履歴変更の選択、(8)はパージョン
の変更処理 (9)は従来の、SAVE機能である。
FIG. 1 is an explanatory diagram of a sample program according to an embodiment of the present invention, and FIG. 2 is a flowchart 7 showing the LOAD function of an interpreter according to an embodiment of the invention. of, SAVE
It is a flowchart showing a function. (1) is information about the interpreter used, (2) is the program, (3) is the conventional LOAD function, (4) is version check, (5) is the process when the versions match, (6) is the version Processing when there is no match (
7) is a program history change selection, and (8) is a version change process (9) is a conventional SAVE function.

Claims (1)

【特許請求の範囲】[Claims] BASICソースプログラムの行番号ゼロにプログラム
の履歴情報を納め、インタープリンターのLOAD、S
AVE機能を拡張することによって、プログラムのバー
ジョン管理を自動化するプログラム・バージョン管理方
式。
Store the program history information in line number zero of the BASIC source program, and use the interprinter's LOAD, S
A program version control method that automates program version control by expanding the AVE function.
JP4788690A 1990-02-28 1990-02-28 Program version control system Pending JPH03250325A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4788690A JPH03250325A (en) 1990-02-28 1990-02-28 Program version control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4788690A JPH03250325A (en) 1990-02-28 1990-02-28 Program version control system

Publications (1)

Publication Number Publication Date
JPH03250325A true JPH03250325A (en) 1991-11-08

Family

ID=12787881

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4788690A Pending JPH03250325A (en) 1990-02-28 1990-02-28 Program version control system

Country Status (1)

Country Link
JP (1) JPH03250325A (en)

Similar Documents

Publication Publication Date Title
US7908580B2 (en) Connecting an integrated development environment with an application instance
US7392527B2 (en) Driver-specific context for kernel-mode shimming
JPH03250325A (en) Program version control system
KR100329991B1 (en) Processing method for preprocessor define using a check box in project manager
JPH05297911A (en) Sequence control circuit for sequence controller
JPH09288595A (en) Arithmetic processing unit
JPS62162105A (en) Flow chart type programmable controller
JPH02227733A (en) Supporting device for development of program
JPS63228341A (en) Program syntax check method
JP3012618B1 (en) Debugging method of inspected program and its debugging method
JPH0264756A (en) System rising system
JPH03172929A (en) Automatic patch number picking system
JPS63115234A (en) Automatic program patching system
JPH0764773A (en) Program loading method and information processing apparatus
JPH0588879A (en) Program development support system
JPH04247519A (en) Program managing device
JPS63238627A (en) Editing and outputting system for assemble list
JPS62216037A (en) Message managing system using source library
JPH04168524A (en) Information processing system
JPH04134535A (en) Exception information sampling mechanism for multitask program
JPH05341983A (en) Information processing system
JPH0333928A (en) Program patch system
JPH05100898A (en) Program debugging system
JP2007233754A (en) Debugging system, debugging method, and program
JPH03273335A (en) Program memory device