JP5356851B2 - Macro program structuring system, macro program structuring method, and program - Google Patents

Macro program structuring system, macro program structuring method, and program Download PDF

Info

Publication number
JP5356851B2
JP5356851B2 JP2009024543A JP2009024543A JP5356851B2 JP 5356851 B2 JP5356851 B2 JP 5356851B2 JP 2009024543 A JP2009024543 A JP 2009024543A JP 2009024543 A JP2009024543 A JP 2009024543A JP 5356851 B2 JP5356851 B2 JP 5356851B2
Authority
JP
Japan
Prior art keywords
macro
name
argument
type
program
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.)
Expired - Fee Related
Application number
JP2009024543A
Other languages
Japanese (ja)
Other versions
JP2010182060A (en
Inventor
昌幸 豊
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.)
NEC System Technologies Ltd
Original Assignee
NEC System Technologies 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 NEC System Technologies Ltd filed Critical NEC System Technologies Ltd
Priority to JP2009024543A priority Critical patent/JP5356851B2/en
Publication of JP2010182060A publication Critical patent/JP2010182060A/en
Application granted granted Critical
Publication of JP5356851B2 publication Critical patent/JP5356851B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide the structuring system of a macro-program for visualizing macro-content by a plurality of formats with the high power of expression. <P>SOLUTION: The structuring system of a macro-program includes: a means for determining the model of an argument structure by referring to meta data describing macros corresponding to each of commands on a program and the specifications of an argument structure to the macros; a means for performing proper text conversion processing, and for recording it in an XML elements on the basis of the model of the argument structure; and an XSLT conversion means for securing a text corresponding to a symbol name described in the XML elements by inquiring resource data, and for performing name resolution that a user can understand. <P>COPYRIGHT: (C)2010,JPO&amp;INPIT

Description

本発明は、プログラム上のコマンド実行手順を記録して自動生成される、いわゆるマクロの記録技術に関する。   The present invention relates to a so-called macro recording technique in which a command execution procedure on a program is recorded and automatically generated.

マクロは利用者によるカスタムプログラミングを想定し専用のプログラム言語を用いて記述されている。
このため、コマンド実行手順の記録によるマクロの自動生成だけを対象にした場合でも、プログラム言語そのままのソースコードが記録されていた。
Macros are described using a dedicated programming language assuming custom programming by the user.
For this reason, even when only the automatic generation of macros by recording the command execution procedure is targeted, the source code as it is in the program language is recorded.

自動生成されたマクロの内容を表示(もしくは印刷)しても、プログラムコードそのままの非構造なテキスト形式で出力されるだけであり、カスタムプログラミングを必要とせずプログラミング言語を知る必要のない利用者にとっては、マクロを実行して処理される内容を理解することが困難であった。   Even if the contents of the automatically generated macro are displayed (or printed), the program code is simply output as an unstructured text format, and for users who do not need custom programming and do not need to know the programming language. It was difficult to understand what was processed by executing the macro.

このような方式で記録されたマクロを視覚化する方法に関して言えば、プログラム言語仕様に基づくキーワードの語彙解析処理を実装してRitchTextFormatなどへ変換するなどで、フォントや色を変更することは可能であった。   With regard to the method of visualizing macros recorded in this way, it is possible to change the font and color by implementing keyword lexical analysis processing based on the programming language specification and converting it to RitchTextFormat, etc. there were.

関連技術として、ソースプログラムの論理構造を表すデータ構造、XMLのドキュメントオブジェクトモデルに変換し、テキストデータに変換して格納する技術が提案されている(例えば、特許文献1参照)。   As a related technique, a data structure representing a logical structure of a source program, a technique of converting to an XML document object model, converting to text data, and storing it have been proposed (for example, see Patent Document 1).

特開2002−182915号公報JP 2002-182915 A

しかしながら、上述の関連技術は、あくまで文字列そのものを表現することしかできず、例えばプログラムの実行ステップをブロック図化したり、表形式で一覧出力したりというプログラム言語を知らない利用者が理解しやすい表現構造への加工を行うには、プログラム言語の構文と構造を解析し定型のイメージに視覚化するための専用プログラムを開発する必要があった。   However, the related technology described above can only represent the character string itself, and for example, it is easy for a user who does not know the program language to block the program execution steps or to output a list in a tabular format. In order to process the expression structure, it was necessary to develop a dedicated program for analyzing the syntax and structure of the programming language and visualizing it into a fixed image.

本発明は、以上のような課題を解決するためになされたもので、表現力の高い複数の形式でマクロの内容を視覚化するマクロプログラムの構造化システムおよびマクロプログラムの構造化方法を提供することを目的とする。   The present invention has been made to solve the above problems, and provides a macro program structuring system and a macro program structuring method for visualizing the contents of a macro in a plurality of highly expressive formats. For the purpose.

本発明のマクロプログラムの構造化システムは、プログラム上の各コマンドに対応するマクロのマクロ名と引数型シンボル名と引数データを受け取り、前記コマンドの実行ステップを前記マクロとして構築するための仕様を記述したマクロ仕様メタデータを参照し、引数データの型を判断するステップと、
前記引数データの型に基づいて、前記引数データを予め定められた文字コードで示す文字列に変し、XML要素に記録するステップと、
名前リソース情報を照会してXML要素に記述された前記引数型シンボル名に対応する名前テキストを引き当て、前記テキストに基づいてマクロ変換結果を生成し、出力するXSLT変換ステップとを有することを特徴とする。
The structured system for a macro program of the present invention receives a macro name, an argument type symbol name, and argument data of a macro corresponding to each command on the program, and has a specification for constructing the execution step of the command as the macro. Referencing the described macro specification metadata and determining the type of argument data ;
A step on the basis of the type of argument data, converts the character string indicated by the predetermined character codes the argument data, and records the X ML element,
An X SLT conversion step of querying name resource information, assigning a name text corresponding to the argument type symbol name described in the XML element, generating a macro conversion result based on the text, and outputting the result. And

また、本発明のマクロプログラムの構造化方法は、プログラム上の各コマンドに対応するマクロのマクロ名と引数型シンボル名と引数データを受け取り、前記コマンドの実行ステップを前記マクロとして構築するための仕様を記述したマクロ仕様メタデータを参照し、引数データの型を判断するステップと、
前記引数データの型に基づいて、前記引数データを予め定められた文字コードで示す文字列に変し、XML要素に記録するステップと、
名前リソース情報を照会してXML要素に記述された前記引数型シンボル名に対応する名前テキストを引き当て、前記テキストに基づいてマクロ変換結果を生成し、出力するXSLT変換ステップとを有することを特徴とする。
Further, the macro program structuring method of the present invention receives a macro name, an argument type symbol name, and argument data of a macro corresponding to each command on the program, and constructs the execution step of the command as the macro. Referencing the macro specification metadata describing the specification and determining the type of the argument data ;
A step on the basis of the type of argument data, converts the character string indicated by the predetermined character codes the argument data, and records the X ML element,
An X SLT conversion step of querying name resource information, assigning a name text corresponding to the argument type symbol name described in the XML element, generating a macro conversion result based on the text, and outputting the result. And

また、本発明のプログラムは、コンピュータに、プログラム上の各コマンドに対応するマクロのマクロ名と引数型シンボル名と引数データを受け取り、前記コマンドの実行ステップを前記マクロへのとして構築するための仕様を記述したマクロ仕様メタデータを参照し、引数データの型を判断する処理と、
前記引数データの型に基づいて、前記引数データを予め定められた文字コードで示す文字列に変し、XML要素に記録する処理と、
名前リソース情報を照会してXML要素に記述された前記引数型シンボル名に対応する名前テキストを引き当て、前記テキストに基づいてマクロ変換結果を生成し、出力するXSLT変換処理とを実行させることを特徴とする
The program of the present invention receives a macro name, an argument type symbol name, and argument data of a macro corresponding to each command on the program to a computer, and constructs the execution step of the command as the macro. Refers to the macro specification metadata describing the specification , determines the type of argument data ,
A process based on the type of the argument data, converts the character string indicated by the character codes defined the argument data in advance, is recorded in the X ML element,
Inquiring name resource information, assigning a name text corresponding to the argument type symbol name described in the XML element, generating a macro conversion result based on the text, and executing an X SLT conversion process to be output Characterize

本発明によれば、表現力の高い複数の形式でマクロの内容を視覚化することが可能となる。   According to the present invention, it is possible to visualize the contents of a macro in a plurality of formats with high expressive power.

本発明の実施の形態に係るシステム構成を示す図である。It is a figure which shows the system configuration | structure which concerns on embodiment of this invention. 本発明の実施の形態に係るマクロ記録の実施例の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the Example of the macro recording based on embodiment of this invention. 本発明の実施の形態に係るマクロ仕様メタデータ120に記述されたメタデータ情報121の例を示す図である。It is a figure which shows the example of the metadata information 121 described in the macro specification metadata 120 which concerns on embodiment of this invention. 本発明の実施の形態に係るマクロソースコード131のXMLイメージ例を示す図である。It is a figure which shows the XML image example of the macro source code 131 which concerns on embodiment of this invention. 本発明の実施の形態に係るマクロファイルの視覚化の実施例の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the Example of the visualization example of the macro file which concerns on embodiment of this invention. 本発明の実施の形態に係る名前リソース150の例を示す図である。It is a figure which shows the example of the name resource 150 which concerns on embodiment of this invention. 本発明の実施の形態に係るマクロソースコード131と名前リソース150の関係を示す図である。It is a figure which shows the relationship between the macro source code 131 and the name resource 150 which concern on embodiment of this invention. 本発明の実施の形態に係るHTMLでの出力形式が選択された場合のマクロ変換結果160の例を示す図である。It is a figure which shows the example of the macro conversion result 160 when the output format in HTML which concerns on embodiment of this invention is selected. 本発明の実施の形態に係る図8の例にあるマクロ変換結果160をWebブラウザで表示した場合の例を示す図である。It is a figure which shows the example at the time of displaying the macro conversion result 160 in the example of FIG. 8 which concerns on embodiment of this invention with a web browser.

以下、本発明の実施の形態について図面を参照して詳細に説明する。図1に示す本実施の形態におけるマクロプログラムの構造化システムは、コンピュータ端末やプリンタを指す入出力装置100と、利用者に提供するコマンドの実行手順を記録してマクロを自動生成できるプログラム110と、コマンドの実行ステップをマクロとして構築するための仕様が記述されたマクロ仕様メタデータ120と、プログラム110がマクロ記録による生成した結果であるマクロファイル130と、マクロファイル130の記述表現を視覚化用
のフォーマットへ変換するためのスタイルと手順をXSLで記述した視覚化スタイルシート140と、マクロ記述の引数型シンボル名に対応する名前テキストを格納する名前リソース150と、視覚化スタイルシート140を用いてマクロファイル130を変換した結果であるマクロ変換結果160から構成される。
なお、プログラム110は図示しない情報処理装置に組み込まれてその情報処理装置のCPU等の制御部により制御されて動作することであってもよい。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. The macro program structuring system in this embodiment shown in FIG. 1 includes an input / output device 100 indicating a computer terminal or a printer, a program 110 capable of automatically generating a macro by recording an execution procedure of a command provided to a user, and The macro specification metadata 120 describing the specifications for constructing the command execution step as a macro, the macro file 130 generated by the macro recording by the program 110, and the description expression of the macro file 130 for visualization Visualization style sheet 140 that describes the style and procedure for converting to the format of the above in XSL, name resource 150 that stores name text corresponding to the argument type symbol name of the macro description, and visualization style sheet 140 The result of converting the macro file 130 B composed of the conversion result 160.
The program 110 may be incorporated in an information processing apparatus (not shown) and operated by being controlled by a control unit such as a CPU of the information processing apparatus.

プログラム110は、利用者の操作対象となる画面を制御し実行コマンドを提供するユーザインタフェース手段111と、ユーザインタフェース手段111から利用者が要求したコマンドを解析するコマンド解析手段112と、要求されたコマンドの実行処理を行いユーザインタフェース手段111へ結果を返すコマンド実行手段113と、コマンド解析手段112で得られたコマンド名や実行引数などの情報からマクロの実行ステップとなるXMLデータを構築生成するマクロXML構築手段114と、構築生成されたXMLデータをマクロ実行単位に記録しマクロファイル130へ保存するマクロ記録手段115と、マクロファイル130と視覚化スタイルシート140を入力としてマクロ変換結果160を出力するXSLT変換手段116とから構成される。 The program 110 includes a user interface unit 111 that controls a screen to be operated by the user and provides an execution command, a command analysis unit 112 that analyzes a command requested by the user from the user interface unit 111, and a requested command. A command execution unit 113 that executes the execution process and returns a result to the user interface unit 111, and a macro XML that constructs and generates XML data that is a macro execution step from information such as a command name and an execution argument obtained by the command analysis unit 112 The construction unit 114, the macro recording unit 115 that records the constructed and generated XML data in a macro execution unit and saves it in the macro file 130, and outputs the macro conversion result 160 with the macro file 130 and the visualization style sheet 140 as inputs. conversion means 1 I consist of 6.

視覚化スタイルシート140は、マクロファイル130の記述をマクロ変換結果160へ変換するためのマクロ記述変換手段141と、マクロ記述の引数型シンボル名をキーにして名前リソース150から名前テキストを引き当てる名前解決手段142とから構成される。 The visualization style sheet 140 includes macro description conversion means 141 for converting the description of the macro file 130 into the macro conversion result 160, and name resolution that assigns name text from the name resource 150 using the argument type symbol name of the macro description as a key. Means 142.

プログラム110は、利用者に提供するマクロ変換結果160の種類に応じた画面上の出力形式選択オプションと、本オプションの種類に対応する複数の視覚化スタイルシート140をあらかじめ備えている。   The program 110 includes in advance an output format selection option on the screen corresponding to the type of the macro conversion result 160 provided to the user, and a plurality of visualization style sheets 140 corresponding to the type of this option.

次に、本実施の形態の動作について詳細に説明する。
まず最初に、マクロ記録の実施例について、図1及び図2のフローチャートを参照して説明する。
Next, the operation of the present embodiment will be described in detail.
First, an example of macro recording will be described with reference to the flowcharts of FIGS.

プログラム110の利用者は、ユーザインタフェース制御手段111を介して必要な引数情報を入力しコマンド実行を要求する。ユーザインタフェース制御手段111はコマンド解析手段112に対して実行するコマンドと引数を供給する。引数はコマンドと1対1の関係であり構造体型の形式を持つ。コマンド解析手段112では、コマンドに対するマクロ名と引数情報の型を示す引数型シンボル名を認識する。コマンド解析手段112はマクロXML構築手段114に対してマクロ名と引数型シンボル名と引数データを供給する。コマンド解析手段112は、例えば、マクロ名として“Create Table”、引数型シンボル名として“tableName”と対応する引数データ(例えば、1以上のUnicodeからなる文字列)、引数型シンボル名として“rows”と対応する引数データ(例えば、整数値)、及び引数型シンボル名として“columns”と対応する引数データ(例えば、整数値)をマクロXML構築手段114に対して供給する。尚、コマンド解析手段112がマクロXML構築手段114に対して供給する、これらの情報には、引数データの型の情報(例えば、文字列型、整数型など)は含まれていない。従って、例えば引数型シンボル名が“tableName”である引数データが、1以上のUnicodeからなる文字列であるか否かは、これらの情報からは不明である。 A user of the program 110 inputs necessary argument information via the user interface control unit 111 and requests command execution. The user interface control unit 111 supplies the number of commands and arguments to execute the command analysis means 112. Argument has the form and structure type relationship commands a one-to-one. The command analysis unit 112 recognizes a macro name for the command and an argument type symbol name indicating the type of argument information. The command analysis means 112 supplies the macro name, argument type symbol name, and argument data to the macro XML construction means 114. For example, the command analysis unit 112 uses “Create Table” as the macro name, argument data corresponding to “tableName” as the argument type symbol name (for example, a character string including one or more Unicodes), and “rows” as the argument type symbol name. And the argument data (for example, integer value) corresponding to “columns” as the argument type symbol name are supplied to the macro XML constructing unit 114. Note that these pieces of information supplied by the command analysis unit 112 to the macro XML construction unit 114 do not include information on the type of argument data (for example, character string type, integer type, etc.). Therefore, for example, whether or not the argument data whose argument type symbol name is “tableName” is a character string composed of one or more Unicodes is unknown from these pieces of information.

マクロXML構築手段114は、まず引数型シンボル名をXML要素名として持つ要素ノードオブジェクトを生成して保持する(ステップA1)。ここで図3に、ステップA1で読み込まれるマクロ仕様メタデータ120に記述されたメタデータ情報121の例を示す。メタデータ情報121はXMLで記述されており、element要素は引数型の定義ブロックを示し、name属性が引数型シンボル名を示す。本例では"CreateTableArgument"が引数型シンボル名となる。attribute要素には引数型を構成する変数名と型が定義される。例えば"tableName"をname属性に持つattribute要素を見た場合、引数型上の対応する構成変数名は"tableName"であり、その型は"string"で示される文字列型であると認識される。   The macro XML constructing unit 114 first generates and holds an element node object having an argument type symbol name as an XML element name (step A1). Here, FIG. 3 shows an example of the metadata information 121 described in the macro specification metadata 120 read in step A1. The metadata information 121 is described in XML, the element element indicates an argument type definition block, and the name attribute indicates an argument type symbol name. In this example, "CreateTableArgument" is the argument type symbol name. The attribute element defines the variable name and type that make up the argument type. For example, when an attribute element having "tableName" as a name attribute is seen, the corresponding configuration variable name on the argument type is "tableName", and the type is recognized as the string type indicated by "string" .

マクロXML構築手段114はステップA1に続いて、マクロ仕様メタデータ120から引数型シンボル名をキーにして対応するメタデータ情報121を読み込む(ステップA2)。続いて、メタデータ情報121から引数型を構成する各変数の型情報を入手する(ステップA3)。次に、入手した型情報に基づいて引数データ上の変数値を文字列へ変換する(ステップA4)。マクロXML構築手段114は、例えば、引数型シンボル名が“tableName”の型情報として"string"を入手した(ステップA3)場合、引数データ(1以上のUnicodeからなる文字列)を、その文字列を予め定められた文字コードで表す文字列に変換する(ステップA4)。尚、予め定められた文字コードがUnicodeであれば、変換前と変換後のデータは結果的に同じになる。また、マクロXML構築手段114は、例えば、引数型シンボル名が“rows”の型情報として"int"を入手した(ステップA3)場合、引数データ(整数値)を、その整数を予め定められた文字コードの数字で表す文字列に変換する(ステップA4)。次に、メタデータ情報121に記述された引数型を構成する各変数に対しての属性名と、ステップA4で変換した文字列を属性への値として、ステップA1で生成した要素ノードオブジェクトにXML属性として追加する(ステップA5)。次に、引数型を構成する各変数を全て処理したかを判断する(ステップA6)。引数型を構成する各変数を全て処理していた場合、マクロ記録手段115へ完成した要素ノードオブジェクトを供給する。一方、引数型を構成する各変数を全て処理できていない場合、ステップA3からステップA5を繰り返し処理する。 Following step A1, the macro XML construction unit 114 reads the corresponding metadata information 121 from the macro specification metadata 120 using the argument symbol name as a key (step A2). Subsequently, type information of each variable constituting the argument type is obtained from the metadata information 121 (step A3). Next, the variable value on the argument data is converted into a character string based on the obtained type information (step A4). For example, when the macro XML constructing unit 114 obtains “string” as type information whose argument type symbol name is “tableName” (step A3), the macro XML constructing unit 114 converts the argument data (a character string made up of one or more Unicodes) into the character string. Is converted into a character string represented by a predetermined character code (step A4). If the predetermined character code is Unicode, the data before and after conversion will be the same as a result. Further, for example, when the macro XML constructing unit 114 obtains “int” as type information whose argument type symbol name is “rows” (step A3), the argument data (integer value) and the integer thereof are predetermined. Conversion into a character string represented by a character code number (step A4). Next, using the attribute name for each variable constituting the argument type described in the metadata information 121 and the character string converted in step A4 as the attribute value, the element node object generated in step A1 is XML. It adds as an attribute (step A5). Next, it is determined whether all the variables constituting the argument type have been processed (step A6). When all the variables constituting the argument type have been processed, the completed element node object is supplied to the macro recording means 115. On the other hand, when not all the variables constituting the argument type have been processed, the process from step A3 to step A5 is repeated.

マクロ記録手段115は、マクロの記録開始時にあらかじめ生成しておいたマクロ実行単位のXMLドキュメントオブジェクトに対して、マクロXML構築手段114から供給された要素ノードオブジェクトを追加する(ステップA7)。マクロ記録手段115は、利用者からマクロ記録の終了指示を受けてXMLドキュメントオブジェクトをマクロファイルへ保存する。   The macro recording means 115 adds the element node object supplied from the macro XML construction means 114 to the XML document object of the macro execution unit generated in advance at the start of macro recording (step A7). The macro recording means 115 receives the macro recording end instruction from the user and saves the XML document object in the macro file.

図4に、マクロXML構築手段114の結果として得られてマクロファイル130に追加されるマクロソースコード131のXMLイメージ例を示す。   FIG. 4 shows an XML image example of the macro source code 131 obtained as a result of the macro XML construction unit 114 and added to the macro file 130.

続いて、マクロファイルの視覚化の実施例について、図1及び図5のフローチャートを参照して説明する。   Next, an example of macro file visualization will be described with reference to the flowcharts of FIGS.

プログラム110の利用者は、ユーザインタフェース制御手段111を介してマクロファイルの内容を視覚化するためのコマンドを要求する。このときユーザインタフェース制御手段111では、プログラム110が提供している出力形式を選択することを利用者に促す。コマンド解析手段112は利用者からのコマンド要求がマクロファイルの視覚化であることを識別し、XSLT変換手段116へマクロファイル名と出力形式情報を供給する。XSLT変換手段116は、マクロファイル130と出力形式情報と対になる視覚化スタイルシート140を入力ファイルとしてXSLT変換を行い、その結果としてマクロ変換結果160を出力する。   The user of the program 110 requests a command for visualizing the contents of the macro file via the user interface control unit 111. At this time, the user interface control unit 111 prompts the user to select an output format provided by the program 110. The command analysis unit 112 identifies that the command request from the user is visualization of the macro file, and supplies the macro file name and output format information to the XSLT conversion unit 116. The XSLT conversion unit 116 performs XSLT conversion using the visualization style sheet 140 paired with the macro file 130 and output format information as an input file, and outputs a macro conversion result 160 as a result.

XSLT変換手段116がXSLT変換を行うと、視覚化スタイルシート140に記述されたマクロ記述変換手段141が実行される。マクロ記述変換手段141は、名前リソース150をXMLドキュメントオブジェクトとして内部変数に展開する(ステップB1)。ここで名前リソース150の例を図6に示す。図6は、名前リソース150に含まれる、名前リソース情報151の1例を示す図である。次に、図4に示したマクロソースコード131の例にあるMacro要素のname属性の値と、内部変数に展開済みである名前リソース150のMacro要素のname属性の値とが一致するかを調べる(ステップB2およびステップB3)。即ち、マクロソースコード131の例にあるMacro要素のname属性の値(ここでは、1行目の“Create Table”)と、いずれかの名前リソース情報151のMacro要素のname属性の値(ここでは、2行目の“Create Table”)とが一致するかを調べる。
name属性の値が一致した場合、名前リソース150のMacro要素への参照パスが名前解決手段142へ与えられる。一方、ステップB2の比較結果が一致しない場合には、現在の処理対象であるマクロソースコード131上のMacro要素の解析を終了する。
When the XSLT conversion unit 116 performs the XSLT conversion, the macro description conversion unit 141 described in the visualization style sheet 140 is executed. The macro description conversion unit 141 expands the name resource 150 into an internal variable as an XML document object (step B1). An example of the name resource 150 is shown in FIG. FIG. 6 is a diagram illustrating an example of the name resource information 151 included in the name resource 150. Next, it is checked whether the value of the name attribute of the Macro element in the example of the macro source code 131 shown in FIG. 4 matches the value of the name attribute of the Macro element of the name resource 150 that has been expanded to an internal variable. (Step B2 and Step B3). That is, the value of the name attribute of the Macro element in the example of the macro source code 131 (here, “Create Table” on the first line) and the value of the name attribute of the Macro element of any name resource information 151 (here, Check whether “Create Table” in the second row matches.
, When the value of the name attribute matches, a reference path to the Macro element of the name resource 150 is given to the name resolution unit 142. On the other hand, if the comparison result of step B2 does not match, the analysis of the Macro element on the macro source code 131 that is the current processing object is terminated.

名前解決手段142は、図7に示すマクロソースコード131と名前リソース150の関係によって、マクロソースコード131の引数型シンボル名から名前リソース150に定義されている名前文字列を引き当てる(ステップB4)。 The name resolution unit 142 assigns a name character string defined in the name resource 150 from the argument type symbol name of the macro source code 131 based on the relationship between the macro source code 131 and the name resource 150 shown in FIG. 7 (step B4).

図8に、HTMLでの出力形式が選択された場合のマクロ変換結果160の例を示す。図8は、マクロ変換結果160に含まれる、マクロ変換結果表示情報161の1例を示す図である。 FIG. 8 shows an example of the macro conversion result 160 when the HTML output format is selected. FIG. 8 is a diagram illustrating an example of the macro conversion result display information 161 included in the macro conversion result 160.

図9に、図8の例にあるマクロ変換結果160をWebブラウザで表示した場合の例を示す。   FIG. 9 shows an example when the macro conversion result 160 in the example of FIG. 8 is displayed by a Web browser.

上記の本実施の形態によれば、以下の効果がある。
第1の効果は、マクロの内容を表示(もしくは印刷)出力する際に、XSLT技術を用いた構造変換を行うことが可能になることである。この結果HTML、SVG、XSL−Formatting−Object等、表現力の高い複数の形式でマクロの内容を視覚化することができる。
その理由は、コマンド実行情報に対応するマクロ仕様のメタデータ情報をあらかじめ定義し、これに基づいてコマンド実行引数データのテキスト変換を行い、マクロのソースコードをXML形式で記録しているためである。
According to the above embodiment, the following effects are obtained.
The first effect is that, when displaying (or printing) outputting the contents of a macro, it is possible to perform structure conversion using the XSLT technology. As a result, the contents of the macro can be visualized in a plurality of formats having high expressive power, such as HTML, SVG, and XSL-Formatting-Object.
The reason is that the metadata information of the macro specification corresponding to the command execution information is defined in advance, the text conversion of the command execution argument data is performed based on this, and the macro source code is recorded in the XML format. .

第2の効果は、プログラムのコマンド実行手順を記録して自動生成されるマクロに関して、プログラム言語を知る必要のない利用者が、マクロを実行して処理される内容を理解できるようになることである。
その理由は、マクロの内容を表示(もしくは印刷)出力する際のXSLT構造変換処理において、マクロに記述された引数型シンボル名を利用者が理解できる名前へ変換して出力しているためである。

The second effect is that a user who does not need to know the program language can understand the contents to be processed by executing the macro with respect to the macro automatically generated by recording the command execution procedure of the program. is there.
This is because, in the XSLT structure conversion process when displaying (or printing) the contents of the macro, the argument type symbol name described in the macro is converted into a name that can be understood by the user and output. .

なお、上述する各実施の形態は、本発明の好適な実施の形態であり、本発明の要旨を逸脱しない範囲内において種々変更実施が可能である。   Each of the above-described embodiments is a preferred embodiment of the present invention, and various modifications can be made without departing from the scope of the present invention.

100 入出力装置
110 プログラム
120 マクロ仕様メタデータ
130 マクロファイル
140 視覚化スタイルシート
150 名前リソース
160 マクロ変換結果
100 I / O device 110 Program 120 Macro specification metadata 130 Macro file 140 Visualization style sheet 150 Name resource 160 Macro conversion result

Claims (6)

プログラム上の各コマンドに対応するマクロのマクロ名と引数型シンボル名と引数データとを受け取り、前記コマンドの実行ステップを前記マクロとして構築するための仕様を記述したマクロ仕様メタデータから、前記引数型シンボル名と引数型を構成する変数名及び型との定義とで記述したメタデータ情報を前記引数型シンボル名をキーとして参照し、引数データの型を判断する手段と、
前記引数データの型に基づいて、前記引数データを予め定められた文字コードで示す文字列に変換し、XML要素に記録する手段と、
名前リソース情報を照会してXML要素に記述された前記引数型シンボル名に対応する名前テキストを引き当て、前記テキストに基づいてマクロ変換結果を生成し、出力するXSLT変換手段とを備えることを特徴とするマクロプログラムの構造化システム。
Receive macro name of the macro corresponding to each command in the program and argument type symbol name and the argument data, from the macro specification metadata execution steps of the command describing the specifications for building as the macro, the argument the metadata information described in the definition of the variable name and the type constituting the mold symbol name and argument types by referring to the argument type symbol name as a key, means for determining the type of argument data,
Means for converting the argument data into a character string represented by a predetermined character code based on the type of the argument data and recording it in an XML element;
XSLT conversion means for querying name resource information, assigning a name text corresponding to the argument type symbol name described in the XML element, generating a macro conversion result based on the text, and outputting the result A structured system for macro programs.
前記名前リソース情報は、前記マクロに記述された前記引数型シンボル名から利用者が理解できる名前を引き当てるための、前記名前テキストを格納する名前リソース情報としてあらかじめ準備しておくことを特徴とする請求項1記載のマクロプログラムの構造化システム。   The name resource information is prepared in advance as name resource information for storing the name text for assigning a name that can be understood by a user from the argument symbol name described in the macro. A structured system of a macro program according to item 1. プログラム上の各コマンドに対応するマクロのマクロ名と引数型シンボル名と引数データとを受け取り、前記コマンドの実行ステップを前記マクロとして構築するための仕様を記述したマクロ仕様メタデータから、前記引数型シンボル名と引数型を構成する変数名及び型との定義とで記述したメタデータ情報を前記引数型シンボル名をキーとして参照し、引数データの型を判断するステップと、
前記引数データの型に基づいて、前記引数データを予め定められた文字コードで示す文字列に変換し、XML要素に記録するステップと、
名前リソース情報を照会してXML要素に記述された前記引数型シンボル名に対応する名前テキストを引き当て、前記テキストに基づいてマクロ変換結果を生成し、出力するXSLT変換ステップとを有することを特徴とするマクロプログラムの構造化方法。
Receive macro name of the macro corresponding to each command in the program and argument type symbol name and the argument data, from the macro specification metadata execution steps of the command describing the specifications for building as the macro, the argument a step of the metadata information described in the definition of the variable name and the type constituting the mold symbol name and argument types by referring to the argument type symbol name as a key, to determine the type of argument data,
Converting the argument data into a character string represented by a predetermined character code based on the type of the argument data, and recording it in an XML element;
An XSLT conversion step of querying name resource information, assigning a name text corresponding to the argument type symbol name described in the XML element, generating a macro conversion result based on the text, and outputting the result. To structure a macro program.
前記名前リソース情報を、前記マクロに記述された前記引数型シンボル名から利用者が理解できる名前を引き当てるための、前記名前テキストを格納する名前リソース情報としてあらかじめ準備しておくステップを有することを特徴とする請求項3記載のマクロプログラムの構造化方法。   The name resource information has a step of preparing in advance as name resource information for storing the name text for assigning a name that can be understood by a user from the argument symbol name described in the macro. A method for structuring a macro program according to claim 3. コンピュータに、プログラム上の各コマンドに対応するマクロのマクロ名と引数型シンボル名と引数データとを受け取り、前記コマンドの実行ステップを前記マクロとして構築するための仕様を記述したマクロ仕様メタデータから、前記引数型シンボル名と引数型を構成する変数名及び型との定義とで記述したメタデータ情報を前記引数型シンボル名をキーとして参照し、引数データの型を判断する処理と、
前記引数データの型に基づいて、前記引数データを予め定められた文字コードで示す文字列に変換し、XML要素に記録する処理と、
名前リソース情報を照会してXML要素に記述された前記引数型シンボル名に対応する名前テキストを引き当て、前記テキストに基づいてマクロ変換結果を生成し、出力するXSLT変換処理とを実行させることを特徴とするプログラム。
The computer receives the macro name and argument type symbolic name of the macro corresponding to each command in the program and the parameter data, macro specification the execution step of said command describes the specifications for building and with the macro from the metadata, refer to the metadata information described in the definition of the variable name and the type constituting the argument type symbol name and argument types as keys the argument type symbol name, it determines the type of the argument data processing When,
A process of converting the argument data into a character string represented by a predetermined character code based on the type of the argument data, and recording it in an XML element;
Querying name resource information, assigning a name text corresponding to the argument type symbol name described in the XML element, generating a macro conversion result based on the text, and executing an XSLT conversion process to be output Program.
前記名前リソース情報は、マクロに記述された前記引数型シンボル名から利用者が理解できる名前を引き当てるための、前記名前テキストを格納する名前リソース情報としてあらかじめ準備されていることを特徴とする請求項5記載のプログラム。   The name resource information is prepared in advance as name resource information for storing the name text for assigning a name that can be understood by a user from the argument symbol name described in a macro. 5. The program according to 5.
JP2009024543A 2009-02-05 2009-02-05 Macro program structuring system, macro program structuring method, and program Expired - Fee Related JP5356851B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009024543A JP5356851B2 (en) 2009-02-05 2009-02-05 Macro program structuring system, macro program structuring method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009024543A JP5356851B2 (en) 2009-02-05 2009-02-05 Macro program structuring system, macro program structuring method, and program

Publications (2)

Publication Number Publication Date
JP2010182060A JP2010182060A (en) 2010-08-19
JP5356851B2 true JP5356851B2 (en) 2013-12-04

Family

ID=42763614

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009024543A Expired - Fee Related JP5356851B2 (en) 2009-02-05 2009-02-05 Macro program structuring system, macro program structuring method, and program

Country Status (1)

Country Link
JP (1) JP5356851B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109408991B (en) * 2018-11-02 2022-12-09 宜宾职业技术学院 Model parameter visualization processing method based on FANUC PICTURE human-computer interface

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07129446A (en) * 1993-11-05 1995-05-19 Canon Inc Data base access method
JPH11327976A (en) * 1998-05-13 1999-11-30 Mitsubishi Electric Corp Data base control method and device therefor
JP2000322295A (en) * 1999-05-12 2000-11-24 Nec Corp Method and device for programming support for data base stored sub-program

Also Published As

Publication number Publication date
JP2010182060A (en) 2010-08-19

Similar Documents

Publication Publication Date Title
WO2011029252A1 (en) Method and device for fast generating network web page based on data definition
US20030097637A1 (en) Schema generation apparatus, data processor, and program for processing in the same data processor
JP2004021791A (en) Method for describing existing data by natural language and program for the method
JP5028022B2 (en) Printing apparatus and document printing method
JP2010277120A (en) Image forming apparatus and application view conversion program
US9727537B2 (en) Application of a system font mapping to a design
JP5356851B2 (en) Macro program structuring system, macro program structuring method, and program
JP2010267092A (en) Information processor and information processing method
JP2009015395A (en) Dictionary construction support device and dictionary construction support program
JP2004185508A (en) Program analysis device and program
US10706215B2 (en) Producing formula representations of mathematical text
JP2008204000A (en) Encoding device and its control method, decoding device and its control method, program and storage medium
JP7260150B2 (en) WEBSITE DESIGN SUPPORT DEVICE, WEBSITE DESIGN SUPPORT METHOD, AND PROGRAM
JP2007279795A (en) System for deciding whether or not screen to be displayed by program satisfy specification
JP2009151613A (en) Program source conversion apparatus
JP6062735B2 (en) Software development support device, software development support method, software development support program
JP5844347B2 (en) Computer program generation device
JP2004110131A (en) Information processor, information processing method and information processing system
TW201537372A (en) Action designing device and action designing program
JP4354514B2 (en) Program automatic conversion method, program automatic conversion device, and program
JP2007219579A (en) Document converter and program
JP4472768B2 (en) Program analysis apparatus, program analysis method, and program
JP2009223882A (en) Data processing apparatus and data processing method
JP2005157827A (en) Method and device for creating program
JP2009104336A (en) Software deliverable management system and its method and program

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20110915

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120329

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120410

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120604

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120918

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20121105

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130409

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130603

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130806

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130829

R150 Certificate of patent or registration of utility model

Ref document number: 5356851

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees