TW201606644A - Methods and systems for generating program codes with automatic modification capability, and related computer program prodcuts - Google Patents

Methods and systems for generating program codes with automatic modification capability, and related computer program prodcuts Download PDF

Info

Publication number
TW201606644A
TW201606644A TW103126700A TW103126700A TW201606644A TW 201606644 A TW201606644 A TW 201606644A TW 103126700 A TW103126700 A TW 103126700A TW 103126700 A TW103126700 A TW 103126700A TW 201606644 A TW201606644 A TW 201606644A
Authority
TW
Taiwan
Prior art keywords
string
user instruction
instruction data
program
code
Prior art date
Application number
TW103126700A
Other languages
Chinese (zh)
Inventor
景弘 王
黃明三
陳麗徽
Original Assignee
拓連科技股份有限公司
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 拓連科技股份有限公司 filed Critical 拓連科技股份有限公司
Priority to TW103126700A priority Critical patent/TW201606644A/en
Publication of TW201606644A publication Critical patent/TW201606644A/en

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

Methods and systems for generating program codes with automatic modification capability are provided. A user gives a series of instructions, called user instruction data, corresponding to a program. Then, the user instruction data is analyzed to obtain at least a first string, and the first string is checked against a database having a plurality of defined strings. When the first string does not match any one of the defined strings, the first string is removed from the user instruction data, and program codes are generated according to the resulting user instruction data. In some embodiments, the first string is checked against a synonym database, and the first string in the user instruction data is changed into a specific defined string corresponding to a specific synonym of the first string.

Description

具有自動調整功能之程式產生方法及系統,及 其電腦程式產品 Program generation method and system with automatic adjustment function, and Computer program product

本發明係有關於一種程式產生方法及系統,且特別有關於一種可以自動調整相應程式之資料從而產生程式碼之方法及系統。 The present invention relates to a program generation method and system, and more particularly to a method and system for automatically adjusting data of a corresponding program to generate a program code.

隨著電子裝置,如電腦、平板電腦、筆記型電腦、智慧型手機、及穿戴式裝置與網路的發展。使用者可以隨時隨地的利用電子裝置執行各式各樣的功能。由於這些裝置及其功能所帶來的便利,也使得這些裝置成為現代人的必備品之一,並隨時隨地的在生活中頻繁使用這些功能。 With the development of electronic devices such as computers, tablets, notebooks, smart phones, and wearable devices and networks. Users can perform a wide variety of functions using electronic devices anytime, anywhere. Thanks to the convenience of these devices and their functions, these devices have become one of the must-have items for modern people, and they are frequently used in life anytime and anywhere.

為了要提供不同的功能,電子裝置上必須執行相應不同應用程式之程式碼。程式碼係一連串之指令的組合。電子裝置可以依照程式碼中之指令組合來執行工作,並將相應之結果輸出。程式語言是使用者與電子裝置溝通之媒介。在電腦的發展的早期,使用者可以利用機器碼來編寫演算法。然而,透過機器碼開發作業系統及相關軟體係非常複雜與困難的。有鑑於此,類似於虛擬碼的程式語言因而產生,而使演算法能夠更容易透過程式語言來完成。在電子裝置中,程式語言可以定義演算法或資料結構。相較於機器碼,程式語言可以使程式設計師可以更準確地表達其欲表達的想法。在過去的數十年間,大量的程式語言被發明。由於不同的程式語言適用之電子裝置或環境及其訴求的對象不盡相同,這些程式語言卻也難以互相取代。 In order to provide different functions, the code of the corresponding different application must be executed on the electronic device. The code is a combination of a series of instructions. The electronic device can perform work according to the combination of instructions in the code and output the corresponding result. The programming language is the medium through which the user communicates with the electronic device. In the early days of computer development, users could use machine code to write algorithms. However, developing operating systems and related soft systems through machine code is very complicated and difficult. In view of this, a programming language similar to a virtual code is generated, and the algorithm can be more easily implemented through a programming language. In an electronic device, a programming language can define an algorithm or data structure. Compared to machine code, programming languages allow programmers to express their ideas more accurately. A large number of programming languages have been invented over the past few decades. Since the electronic devices or environments to which different programming languages are applied and the objects they appeal to are not the same, these programming languages are difficult to replace each other.

無論任何程式語言,程式設計師都必須得知個別程式語言所定義的指令,以利用提供之指令來編寫程式碼。由於撰寫程式的人可能有著不同的背景及其理解能力,如何熟記特定的指令及其相應之正確使用 方法已成為一般使用者嘗試程式設計的最大障礙。因此,提供更便利且更聰明之程式編輯機制將成為程式設計領域之積極渴望。 Regardless of any programming language, the programmer must be aware of the instructions defined by the individual programming languages to write the code using the instructions provided. Since the person writing the program may have different backgrounds and understanding, how to memorize the specific instructions and their corresponding correct use The method has become the biggest obstacle for general users to try programming. Therefore, providing a more convenient and smarter program editing mechanism will become an active desire in the field of programming.

有鑑於此,本發明提供具有自動調整功能之程式產生方法及系統,其中相應程式之資料可以被自動調整以產生程式碼,從而增加程式編輯之彈性與效率。 In view of this, the present invention provides a program generation method and system with an automatic adjustment function, wherein the data of the corresponding program can be automatically adjusted to generate a code, thereby increasing the flexibility and efficiency of program editing.

本發明實施例之一種具有自動調整功能之程式產生方法。首先,接收相應一程式之使用者指令資料。接著,分析使用者指令資料以取得至少一第一字串,並將第一字串與一資料庫中之複數定義字串進行比對。當第一字串不符合定義字串中之一者時,由使用者指令資料中刪除第一字串,並依據刪除第一字串後之使用者指令資料產生相應程式之程式碼。 A program generation method with an automatic adjustment function according to an embodiment of the present invention. First, the user instruction data of the corresponding program is received. Next, the user instruction data is analyzed to obtain at least one first string, and the first string is compared with a plurality of defined strings in a database. When the first string does not match one of the defined strings, the first string is deleted from the user instruction data, and the program code of the corresponding program is generated according to the user instruction data after deleting the first string.

在一些實施例中,可以判斷第一字串是否符合一同義詞庫中之複數同義詞中之一者。當第一字串符合同義詞中之一特定同義詞時,將使用者指令資料中之第一字串關聯至相應特定同義詞之一特定定義字串。在一些實施例中,同義詞庫中之同義詞中至少包括具有不同語言表示而相同意義之一特定同義詞。 In some embodiments, it may be determined whether the first string conforms to one of the plural synonym in a synonym library. When the first string conforms to a particular synonym in the synonym, the first string in the user instruction material is associated with a particular defined string of one of the corresponding specific synonyms. In some embodiments, synonyms in the thesaurus include at least one of the same meanings with different language representations and the same meaning.

在一些實施例中,可以分析使用者指令資料以取得第一字串之後之一第二字串。第一字串與第二字串之順序可以被改變,且依據具有改變順序後之第一字串與第二字串之使用者指令資料產生相應程式之程式碼。 In some embodiments, the user instruction data can be analyzed to obtain one of the second strings after the first string. The order of the first string and the second string may be changed, and the code of the corresponding program is generated according to the user instruction data of the first string and the second string having the changed order.

在一些實施例中,可以分析使用者指令資料以取得一第二字串。第一字串與第二字串可以被組合,且依據組合後之第一字串與第二字串產生相應程式之程式碼。 In some embodiments, the user instruction data can be analyzed to obtain a second string. The first string and the second string may be combined, and the code of the corresponding program is generated according to the combined first string and the second string.

在一些實施例中,當第一字串不符合定義字串中之一者時,判斷第一字串是否近似於定義字串中之一特定定義字串。當第一字串近似於特定定義字串時,將使用者指令資料中之第一字串修正為特定定義字串。 In some embodiments, when the first string does not conform to one of the defined strings, it is determined whether the first string approximates one of the defined strings in the defined string. When the first string approximates a particular defined string, the first string in the user instruction data is modified to a particular defined string.

在一些實施例中,當第一字串符合定義字串中之一特定定 義字串時,判斷使用者指令資料是否包括特定定義字串相應之至少一關聯定義字串。當使用者指令資料並未包括關聯定義字串時,將關聯定義字串加入使用者指令資料中。 In some embodiments, when the first string matches one of the defined strings When the character string is determined, it is determined whether the user instruction data includes at least one associated definition string corresponding to the specific definition string. When the user instruction data does not include the association definition string, the association definition string is added to the user instruction data.

在一些實施例中,可以由使用者指令資料中取得相應一特定項目之一第一判斷條件,與相應特定項目之一第二判斷條件。判斷第一判斷條件與第二判斷條件是否有一交集範圍。當第一判斷條件與第二判斷條件有一交集範圍時,將第一判斷條件或第二判斷條件進行修正,以將交集範圍由第一判斷條件或第二判斷條件中排除。 In some embodiments, the first determination condition of one of the corresponding specific items and the second determination condition of one of the corresponding specific items may be obtained from the user instruction material. It is judged whether the first judgment condition and the second judgment condition have an intersection range. When the first judgment condition and the second judgment condition have an intersection range, the first judgment condition or the second judgment condition is corrected to exclude the intersection range from the first judgment condition or the second judgment condition.

本發明實施例之一種具有自動調整功能之程式產生方法。首先,接收相應一程式之使用者指令資料。接著,分析使用者指令資料以取得至少一第一字串,並判斷第一字串是否符合一同義詞庫中之複數同義詞中之一者。當第一字串符合同義詞中之一特定同義詞時,將使用者指令資料中之第一字串關聯至相應特定同義詞之一特定定義字串,並依據使用者指令資料產生相應程式之程式碼。 A program generation method with an automatic adjustment function according to an embodiment of the present invention. First, the user instruction data of the corresponding program is received. Next, the user instruction data is analyzed to obtain at least one first string, and it is determined whether the first string conforms to one of the plural synonym in a thesaurus. When the first string conforms to a specific synonym in the synonym, the first string in the user instruction data is associated with a specific definition string of one of the specific synonyms, and the code of the corresponding program is generated according to the user instruction data.

本發明實施例之一種具有自動調整功能之程式產生方法。首先,接收相應一程式之使用者指令資料。接著,分析使用者指令資料以取得至少一第一字串,並將第一字串與一資料庫中之複數定義字串進行比對。當第一字串符合定義字串中之一特定定義字串時,判斷使用者指令資料是否包括特定定義字串相應之至少一關聯定義字串。當使用者指令資料並未包括關聯定義字串時,將關聯定義字串加入使用者指令資料中。 A program generation method with an automatic adjustment function according to an embodiment of the present invention. First, the user instruction data of the corresponding program is received. Next, the user instruction data is analyzed to obtain at least one first string, and the first string is compared with a plurality of defined strings in a database. When the first string matches one of the defined strings in the defined string, it is determined whether the user instruction material includes at least one associated definition string corresponding to the specific defined string. When the user instruction data does not include the association definition string, the association definition string is added to the user instruction data.

本發明實施例之一種具有自動調整功能之程式產生方法。首先,接收相應一程式之使用者指令資料。接著,由使用者指令資料中取得相應一特定項目之一第一判斷條件,與相應特定項目之一第二判斷條件。判斷第一判斷條件與第二判斷條件是否有一交集範圍。當第一判斷條件與第二判斷條件有一交集範圍時,將第一判斷條件或第二判斷條件進行修正,以將交集範圍由第一判斷條件或第二判斷條件中排除。 A program generation method with an automatic adjustment function according to an embodiment of the present invention. First, the user instruction data of the corresponding program is received. Then, the first judgment condition of one of the specific items is obtained from the user instruction data, and the second judgment condition is one of the corresponding specific items. It is judged whether the first judgment condition and the second judgment condition have an intersection range. When the first judgment condition and the second judgment condition have an intersection range, the first judgment condition or the second judgment condition is corrected to exclude the intersection range from the first judgment condition or the second judgment condition.

本發明上述方法可以透過程式碼方式存在。當程式碼被機器載入且執行時,機器變成用以實行本發明之裝置。 The above method of the present invention can exist in a coded manner. When the code is loaded and executed by the machine, the machine becomes the means for practicing the invention.

為使本發明之上述目的、特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖示,詳細說明如下。 The above described objects, features, and advantages of the invention will be apparent from the description and appended claims appended claims

100‧‧‧具有自動調整功能之程式產生系統 100‧‧‧Program generation system with automatic adjustment function

110‧‧‧接收單元 110‧‧‧ receiving unit

120‧‧‧儲存單元 120‧‧‧ storage unit

122‧‧‧使用者指令資料 122‧‧‧User instruction materials

124‧‧‧資料庫 124‧‧‧Database

126‧‧‧同義詞庫 126‧‧‧ thesaurus

130‧‧‧處理單元 130‧‧‧Processing unit

S310、S320、S330、S340、S350‧‧‧步驟 S310, S320, S330, S340, S350‧‧‧ steps

S410、S420、…、S470‧‧‧步驟 S410, S420, ..., S470‧‧‧ steps

S510、S520、S530、S540‧‧‧步驟 S510, S520, S530, S540‧‧‧ steps

S610、S620‧‧‧步驟 S610, S620‧‧‧ steps

S710、S720、S730、S740、S750‧‧‧步驟 S710, S720, S730, S740, S750‧‧ steps

S810、S820、S830、S840、S850、S860‧‧‧步驟 S810, S820, S830, S840, S850, S860‧‧ steps

S910、S920、S930、S940‧‧‧步驟 S910, S920, S930, S940‧‧ steps

第1圖為一示意圖係顯示依據本發明實施例之具有自動調整功能之程式產生系統。 Fig. 1 is a schematic diagram showing a program generation system having an automatic adjustment function according to an embodiment of the present invention.

第2圖為一示意圖係顯示依據本發明實施例之儲存單元。 Figure 2 is a schematic diagram showing a storage unit in accordance with an embodiment of the present invention.

第3圖為一流程圖係顯示依據本發明實施例之具有自動調整功能之程式產生方法。 Fig. 3 is a flow chart showing a program generation method having an automatic adjustment function according to an embodiment of the present invention.

第4圖為一流程圖係顯示依據本發明另一實施例之具有自動調整功能之程式產生方法。 Figure 4 is a flow chart showing a program generation method with an automatic adjustment function according to another embodiment of the present invention.

第5圖為一流程圖係顯示依據本發明另一實施例之具有自動調整功能之程式產生方法。 Figure 5 is a flow chart showing a program generation method with an automatic adjustment function according to another embodiment of the present invention.

第6圖為一流程圖係顯示依據本發明另一實施例之具有自動調整功能之程式產生方法。 Figure 6 is a flow chart showing a program generation method with an automatic adjustment function according to another embodiment of the present invention.

第7圖為一流程圖係顯示依據本發明另一實施例之具有自動調整功能之程式產生方法。 Figure 7 is a flow chart showing a program generation method with an automatic adjustment function according to another embodiment of the present invention.

第8圖為一流程圖係顯示依據本發明另一實施例之具有自動調整功能之程式產生方法。 Figure 8 is a flow chart showing a program generation method with an automatic adjustment function according to another embodiment of the present invention.

第9圖為一流程圖係顯示依據本發明另一實施例之具有自動調整功能之程式產生方法。 Figure 9 is a flow chart showing a program generation method with an automatic adjustment function according to another embodiment of the present invention.

第1圖顯示依據本發明實施例之具有自動調整功能之程式產生系統。依據本發明實施例之具有自動調整功能之程式產生系統可以適用於一電子裝置,如個人電腦或行動裝置,如行動電話、智慧型手機、個人數位助理、全球定位系統、穿戴式裝置及筆記型電腦等。 Figure 1 shows a program generation system with an automatic adjustment function in accordance with an embodiment of the present invention. The program generation system with automatic adjustment function according to an embodiment of the present invention can be applied to an electronic device such as a personal computer or a mobile device such as a mobile phone, a smart phone, a personal digital assistant, a global positioning system, a wearable device, and a notebook type. Computer, etc.

如第1圖所示,依據本發明實施例之具有自動調整功能之程式產生系統100至少包括一接收單元110、一儲存單元120、與一處理單 元130。接收單元110可以接收相應一程式之使用者指令資料122。在一些實施例中,接收單元110可以係一網路連接單元,用以透過一網路,如有線網路、電信網路、與/或無線網路等接收使用者指令資料122。在一些實施例中,接收單元110可以係一輸入單元,如鍵盤、滑鼠、或觸控式顯示單元。使用者可以利用輸入單元將使用者指令資料122輸入至電子裝置中。儲存單元120可以將接收之使用者指令資料122進行儲存。另外,儲存單元120可以包括一資料庫124與/或一同義詞庫126,如第2圖所示。資料庫124中可以記錄相應至少一程式語言之定義字串,如各種指令、參數、代符(token)、及屬性等。值得注意的是,在一些實施例中,每一定義字串可以定義其相應之至少一關聯定義字串。換言之,當定義字串出現時相應之關聯定義字串必然會出現。同義詞庫126中可以記錄相應個別定義字串所相應之至少一同義詞。提醒的是,在一些實施例中,同義詞可以係與相應之定義字串以相同語言而不同文字表示的字詞。舉例來說,”once”與”when”可以係同義詞。在一些實施例中,同義詞可以係與相應之定義字串以不同語言表示而具有相同意義之字詞。舉例來說,”顯示”、”show”與”display”可以係同義詞。另外,以不同方式來描述相同意義之字詞亦可以係同義詞。舉例來說,”twice”與”two times”可以係同義詞,且”first item”與”item one”可以係同義詞。提醒的是,前述同義詞定義僅為本案例子,本發明並未限定於此。同義詞可以依據不同需求與應用進行設計。資料庫124與同義詞庫126的用法將於後進行說明。處理單元130可以控制電子裝置上相關硬體與軟體之作業,並執行本案之具有自動調整功能之程式產生方法,其將於後進行說明。 As shown in FIG. 1 , the program generation system 100 with an automatic adjustment function according to an embodiment of the present invention includes at least a receiving unit 110, a storage unit 120, and a processing list. Yuan 130. The receiving unit 110 can receive the user instruction data 122 of the corresponding program. In some embodiments, the receiving unit 110 can be a network connection unit for receiving user command data 122 over a network, such as a wired network, a telecommunications network, and/or a wireless network. In some embodiments, the receiving unit 110 can be an input unit such as a keyboard, a mouse, or a touch display unit. The user can input the user instruction data 122 into the electronic device by using the input unit. The storage unit 120 can store the received user instruction data 122. Additionally, storage unit 120 can include a database 124 and/or a synonym library 126, as shown in FIG. The database 124 can record a defined string of at least one programming language, such as various instructions, parameters, tokens, and attributes. It should be noted that in some embodiments, each defined string may define its corresponding at least one associated definition string. In other words, when the definition string appears, the corresponding associated definition string will necessarily appear. The synonym 126 may record at least one synonym corresponding to the corresponding individual defined string. It is reminded that, in some embodiments, a synonym may be a word that is represented in a different language than the corresponding defined string. For example, "once" and "when" can be synonymous. In some embodiments, a synonym can be a word that has the same meaning in a different language as the corresponding defined string. For example, "display", "show", and "display" can be synonymous. In addition, words that describe the same meaning in different ways may also be synonymous. For example, "twice" and "two times" can be synonymous, and "first item" and "item one" can be synonymous. It is to be noted that the foregoing synonym definition is only the present case, and the present invention is not limited thereto. Synonyms can be designed according to different needs and applications. The usage of the database 124 and the thesaurus 126 will be described later. The processing unit 130 can control the operations of the related hardware and software on the electronic device, and execute the program generation method with the automatic adjustment function of the present invention, which will be described later.

第3圖顯示依據本發明實施例之具有自動調整功能之程式產生方法。依據本發明實施例之具有自動調整功能之程式產生方法適用於一電子裝置,如個人電腦或行動裝置,如行動電話、智慧型手機、個人數位助理、全球定位系統、穿戴式裝置及筆記型電腦等。 Fig. 3 shows a program generation method with an automatic adjustment function according to an embodiment of the present invention. A program generation method with an automatic adjustment function according to an embodiment of the present invention is applicable to an electronic device such as a personal computer or a mobile device such as a mobile phone, a smart phone, a personal digital assistant, a global positioning system, a wearable device, and a notebook computer. Wait.

首先,如步驟S310,接收相應一程式之使用者指令資料。值得注意的是,在一些實施例中,相應程式之使用者指令資料可以透過一網路,如有線網路、電信網路、與/或無線網路等接收。在一些實施例中,相應程式之使用者指令資料可以透過一輸入單元,如鍵盤、滑鼠、或觸控 式顯示單元接收。接著,如步驟S320,分析使用者指令資料以取得至少一字串,並如步驟S330,將此字串與一資料庫中之複數定義字串,如指令、參數、代符、及屬性等比對。當字串符合資料庫中之定義字串中之一者時(步驟S330的否),進行步驟S350的步驟。當字串並未符合資料庫中之定義字串中之一者時(步驟S330的是),如步驟S340,由相應程式之使用者指令資料中刪除此字串。之後,如步驟S350,依據使用者指令資料產生相應程式之程式碼。提醒的是,在一些實施例中,程式碼可以選擇性地透過一編譯器進行編譯。 First, in step S310, the user instruction data of the corresponding program is received. It should be noted that in some embodiments, the user command data of the corresponding program can be received through a network such as a wired network, a telecommunications network, and/or a wireless network. In some embodiments, the user command data of the corresponding program can be transmitted through an input unit such as a keyboard, a mouse, or a touch. The display unit receives. Then, in step S320, the user instruction data is analyzed to obtain at least one string, and in step S330, the string is compared with a plural definition string in a database, such as an instruction, a parameter, an token, and an attribute. Correct. When the string matches one of the defined strings in the database (NO in step S330), the step S350 is performed. When the string does not match one of the defined strings in the database (YES in step S330), in step S340, the string is deleted from the user command data of the corresponding program. Then, in step S350, the code of the corresponding program is generated according to the user instruction data. It is noted that in some embodiments, the code can be selectively compiled by a compiler.

舉例來說,資料庫中可以包括”when”、”weather”、”is”、及”raining”等定義字串。當相應一程式之使用者指令資料係”when the weather is raining”時,分析使用者指令資料之後可以得到”when”、”the”、”weather”、”is”、及”raining”等字串。這些字串可以與資料庫中之定義字串進行比對。其中,字串”the”並未符合資料庫中之定義字串中之一者,所以字串”the”將會由使用者指令資料中刪除。經過處理後之使用者指令資料成為”when weather is raining”。此使用者指令資料可以再進行編譯,成為程式碼。 For example, the database may include definition strings such as "when", "weather", "is", and "raining". When the user command data of the corresponding program is "when the weather is raining", the strings of "when", "the", "weather", "is", and "raining" can be obtained after analyzing the user command data. . These strings can be compared to defined strings in the database. The string "the" does not match one of the defined strings in the database, so the string "the" will be deleted from the user's instruction data. The processed user command data becomes "when weather is raining". This user instruction data can be compiled again to become a code.

值得注意的是,在一些實施例中,相關於定義字串的相關資料亦可自動加入相應程式之使用者指令資料中。舉例來說,當使用者指令資料中之一字串符合定義字串中之一特定定義字串時,可以判斷使用者指令資料是否包括此特定定義字串相應之至少一關聯定義字串。當使用者指令資料並未包括關聯定義字串時,可以將關聯定義字串加入使用者指令資料中。舉例來說,資料庫中可以包括”when”、”weather”、”is”、及”raining”等定義字串,其中”when”及”raining”字串與”weather”及”is”字串相關聯。當相應一程式之使用者指令資料係”when raining”時,分析使用者指令資料之後可以得到”when”及”raining”等字串。這些字串可以與資料庫中之定義字串進行比對,從而檢索出關聯之字串”weather”及”is”。由於使用者指令資料並未包括這些關聯字串,這些關聯字串被加入使用者指令資料中。經過處理後之使用者指令資料成為”when weather is raining”。此使用者指令資料可以再進行編譯,成為程式碼。 It should be noted that in some embodiments, related data related to the defined string may also be automatically added to the user instruction data of the corresponding program. For example, when one of the user instruction data matches a specific definition string in the definition string, it can be determined whether the user instruction material includes at least one associated definition string corresponding to the specific definition string. When the user instruction data does not include the association definition string, the association definition string may be added to the user instruction data. For example, the database may include definition strings such as "when", "weather", "is", and "raining", where "when" and "raining" strings and "weather" and "is" strings are included. Associated. When the user command data of the corresponding program is "when raining", the strings of "when" and "raining" can be obtained after analyzing the user command data. These strings can be compared with the defined strings in the database to retrieve the associated strings "weather" and "is". Since the user command data does not include these associated strings, these associated strings are added to the user command material. The processed user command data becomes "when weather is raining". This user instruction data can be compiled again to become a code.

值得注意的是,在一些實施例中,可以由使用者指令資料中取得相應一特定項目之一第一判斷條件,與相應特定項目之一第二判斷條件。當第一判斷條件與第二判斷條件有一交集範圍時,可以將第一判斷條件或第二判斷條件進行修正,以將交集範圍由第一判斷條件或第二判斷條件中排除。 It should be noted that, in some embodiments, the first determination condition of one of the specific items may be obtained by the user instruction data, and the second determination condition is one of the corresponding specific items. When the first judgment condition and the second judgment condition have an intersection range, the first judgment condition or the second judgment condition may be corrected to exclude the intersection range from the first judgment condition or the second judgment condition.

第4圖顯示依據本發明另一實施例之具有自動調整功能之程式產生方法。依據本發明實施例之具有自動調整功能之程式產生方法適用於一電子裝置,如個人電腦或行動裝置,如行動電話、智慧型手機、個人數位助理、全球定位系統、穿戴式裝置及筆記型電腦等。 Fig. 4 is a diagram showing a program generation method having an automatic adjustment function according to another embodiment of the present invention. A program generation method with an automatic adjustment function according to an embodiment of the present invention is applicable to an electronic device such as a personal computer or a mobile device such as a mobile phone, a smart phone, a personal digital assistant, a global positioning system, a wearable device, and a notebook computer. Wait.

首先,如步驟S410,接收相應一程式之使用者指令資料。類似地,在一些實施例中,相應程式之使用者指令資料可以透過一網路,如有線網路、電信網路、與/或無線網路等接收。在一些實施例中,相應程式之使用者指令資料可以透過一輸入單元,如鍵盤、滑鼠、或觸控式顯示單元接收。接著,如步驟S420,分析使用者指令資料以取得至少一字串,並如步驟S430,將此字串與一同義詞庫中之複數同義詞進行比對。提醒的是,同義詞庫中可以記錄相應個別定義字串所相應之至少一同義詞。在一些實施例中,同義詞可以係與相應之定義字串以相同語言而不同文字表示的字詞。在一些實施例中,同義詞可以係與相應之定義字串以不同語言表示而具有相同意義之字詞。當字串並未符合同義詞庫中之同義詞中之一者時(步驟S430的否),進行步驟S450的步驟。當字串符合同義詞庫中之同義詞中之一者時(步驟S430的是),如步驟S440,將使用者指令資料中之此字串轉換為符合之同義詞所相應之一特定定義字串。接著,如步驟S450,將此字串與資料庫中之複數定義字串進行比對。當字串符合資料庫中之定義字串中之一者時(步驟S450的否),進行步驟S470的步驟。當字串並未符合資料庫中之定義字串中之一者時(步驟S450的是),如步驟S460,由相應程式之使用者指令資料中刪除此字串。之後,如步驟S470,依據使用者指令資料產生相應程式之程式碼。類似地,在一些實施例中,程式碼可以選擇性地透過一編譯器進行編譯。 First, in step S410, the user instruction data of the corresponding program is received. Similarly, in some embodiments, the user command data of the corresponding program can be received via a network, such as a wired network, a telecommunications network, and/or a wireless network. In some embodiments, the user instruction data of the corresponding program can be received through an input unit such as a keyboard, a mouse, or a touch display unit. Next, in step S420, the user instruction data is analyzed to obtain at least one string, and in step S430, the string is compared with a plurality of synonyms in a synonym database. It is reminded that at least one synonym corresponding to the corresponding individual definition string can be recorded in the thesaurus. In some embodiments, a synonym may be a word that is represented in a different language than the corresponding defined string. In some embodiments, a synonym can be a word that has the same meaning in a different language as the corresponding defined string. When the character string does not conform to one of the synonyms in the thesaurus (No in step S430), the step of step S450 is performed. When the string conforms to one of the synonyms in the thesaurus (Yes in step S430), in step S440, the string in the user instruction data is converted into a specific definition string corresponding to the corresponding synonym. Then, in step S450, the string is compared with the complex definition string in the database. When the string matches one of the defined strings in the database (NO at step S450), the step of step S470 is performed. When the string does not match one of the defined strings in the database (YES in step S450), in step S460, the string is deleted from the user instruction data of the corresponding program. Then, in step S470, the code of the corresponding program is generated according to the user instruction data. Similarly, in some embodiments, the code can be selectively compiled by a compiler.

舉例來說,資料庫中可以包括”when”、”weather”、”is”、及”raining”等定義字串。另外,同義 詞庫中可以至少記錄相應指令”when”之同義詞”當”、”若”、”如果”、及”once”。當相應一程式之使用者指令資料係”once the weather is raining”時,分析使用者指令資料之後可以得到”once”、”the”、”weather”、”is”、及”raining”等字串。這些字串可以與同義詞庫中之同義詞進行比對。其中,字串”once”符合同義詞庫中之”once”,所以使用者指令資料中之”once”會被轉換為相應之指令”when”。使用者指令資料之字串可以再與資料庫中之指令進行比對。其中,字串”the”並未符合資料庫中之指令中之一者,所以字串”the”將會由使用者指令資料中刪除。經過處理後之使用者指令資料成為”when weather is raining”。此使用者指令資料可以再進行編譯,成為程式碼。 For example, the database may include definition strings such as "when", "weather", "is", and "raining". In addition, synonymous In the lexicon, at least the synonyms "when", "if", "if", and "once" of the corresponding instruction "when" can be recorded. When the user command data of the corresponding program is "once the weather is raining", the strings of "once", "the", "weather", "is", and "raining" can be obtained after analyzing the user command data. . These strings can be compared to synonyms in the thesaurus. Among them, the string "once" conforms to the "once" in the thesaurus, so the "once" in the user instruction data will be converted into the corresponding instruction "when". The string of user instruction data can be compared with the instructions in the database. The string "the" does not match one of the instructions in the database, so the string "the" will be deleted from the user's instruction data. The processed user command data becomes "when weather is raining". This user instruction data can be compiled again to become a code.

第5圖顯示依據本發明另一實施例之具有自動調整功能之程式產生方法。依據本發明實施例之具有自動調整功能之程式產生方法適用於一電子裝置,如個人電腦或行動裝置,如行動電話、智慧型手機、個人數位助理、全球定位系統、穿戴式裝置及筆記型電腦等。 Fig. 5 shows a program generation method with an automatic adjustment function according to another embodiment of the present invention. A program generation method with an automatic adjustment function according to an embodiment of the present invention is applicable to an electronic device such as a personal computer or a mobile device such as a mobile phone, a smart phone, a personal digital assistant, a global positioning system, a wearable device, and a notebook computer. Wait.

首先,如步驟S510,接收相應一程式之使用者指令資料。類似地,在一些實施例中,相應程式之使用者指令資料可以透過一網路,如有線網路、電信網路、與/或無線網路等接收。在一些實施例中,相應程式之使用者指令資料可以透過一輸入單元,如鍵盤、滑鼠、或觸控式顯示單元接收。接著,如步驟S520,分析使用者指令資料以取得複數字串。注意的是,在一些實施例中,由使用者指令資料取得之字串可以經由如第4圖中之資料庫判斷與/或同義詞庫判斷。之後,如步驟S530,將取得之字串進行組合,並如步驟S540,依據組合後之字串產生相應程式之程式碼。 First, in step S510, the user instruction data of the corresponding program is received. Similarly, in some embodiments, the user command data of the corresponding program can be received via a network, such as a wired network, a telecommunications network, and/or a wireless network. In some embodiments, the user instruction data of the corresponding program can be received through an input unit such as a keyboard, a mouse, or a touch display unit. Next, in step S520, the user instruction data is analyzed to obtain a complex number string. It is noted that in some embodiments, the string obtained by the user instruction data may be determined via the database as determined in FIG. 4 and/or the thesaurus. Then, in step S530, the acquired strings are combined, and in step S540, the code of the corresponding program is generated according to the combined string.

必須說明的是,在一些實施例中,進行組合之字串係由使用者指令資料中之同一字句中取得。在一些實施例中,字串的順序可以被改變。舉例來說,使用者可以編寫使用者指令資料”show‘good morning’blinking fast”來產生程式碼。另外,使用者亦可以編寫使用者指令資料”show‘good morning’with fast blinking”來產生程式碼。在此例子中,經過處理後之使用者指令資料可以被轉換為”show‘good morning’blinking fast”。注意的是,字串”blinking”與”fast”在使用者 指令資料中的順序被進行調整。此使用者指令資料可以再進行編譯,成為程式碼。 It must be noted that in some embodiments, the combined string is retrieved from the same sentence in the user's instruction material. In some embodiments, the order of the strings can be changed. For example, the user can write the user instruction data "show‘good morning'blinking fast" to generate the code. In addition, the user can also write the user instruction data "show‘good morning' with fast blinking" to generate the code. In this example, the processed user instruction data can be converted to "show‘good morning'blinking fast". Note that the string "blinking" and "fast" are in the user The order in the instruction data is adjusted. This user instruction data can be compiled again to become a code.

值得注意的是,在一些實施例中,當由使用者指令資料中取得之字串並未符合資料庫中之定義字串中之一者時,可以對於字串進一步進行處理。第6圖顯示依據本發明另一實施例之具有自動調整功能之程式產生方法。當由使用者指令資料中取得之一字串並未符合資料庫中之定義字串中之一者時,如步驟S610,判斷此字串是否近似於定義字串中之一特定定義字串。當此字串並未近似於特定定義字串時(步驟S610的否),結束流程。當此字串近似於特定定義字串時(步驟S610的是),如步驟S620,將使用者指令資料中之此字串修正為特定定義字串。舉例來說,當相應一程式之使用者指令資料係”whem motion is circle”時,由於字串”whem”近似於指令”when”,因此經過處理後之使用者指令資料可以成為”when motion is circle”,其中字串”whem”被修正為”when”。 It should be noted that in some embodiments, the string may be further processed when the string obtained by the user instruction data does not conform to one of the defined strings in the database. Fig. 6 shows a program generation method with an automatic adjustment function according to another embodiment of the present invention. When one of the strings obtained by the user instruction data does not match one of the defined strings in the database, in step S610, it is determined whether the string approximates one of the defined strings in the defined string. When the character string does not approximate a specific definition string (No at step S610), the flow is ended. When the string approximates a specific definition string (Yes in step S610), in step S620, the string in the user instruction material is corrected to a specific definition string. For example, when the user command data of the corresponding program is "whem motion is circle", since the string "whem" is approximated to the instruction "when", the processed user instruction data can become "when motion is" Circle", where the string "whem" is corrected to "when".

第7圖顯示依據本發明另一實施例之具有自動調整功能之程式產生方法。依據本發明實施例之具有自動調整功能之程式產生方法適用於一電子裝置,如個人電腦或行動裝置,如行動電話、智慧型手機、個人數位助理、全球定位系統、穿戴式裝置及筆記型電腦等。 Fig. 7 shows a program generation method with an automatic adjustment function according to another embodiment of the present invention. A program generation method with an automatic adjustment function according to an embodiment of the present invention is applicable to an electronic device such as a personal computer or a mobile device such as a mobile phone, a smart phone, a personal digital assistant, a global positioning system, a wearable device, and a notebook computer. Wait.

首先,如步驟S710,接收相應一程式之使用者指令資料。類似地,在一些實施例中,相應程式之使用者指令資料可以透過一網路,如有線網路、電信網路、與/或無線網路等接收。在一些實施例中,相應程式之使用者指令資料可以透過一輸入單元,如鍵盤、滑鼠、或觸控式顯示單元接收。接著,如步驟S720,分析使用者指令資料以取得至少一字串,並如步驟S730,將此字串與一同義詞庫中之複數同義詞進行比對。提醒的是,同義詞庫中可以記錄相應個別定義字串所相應之至少一同義詞。在一些實施例中,同義詞可以係與相應之定義字串以相同語言而不同文字表示的字詞。在一些實施例中,同義詞可以係與相應之定義字串以不同語言表示而具有相同意義之字詞。如前所述,”顯示”、”show”與”display”可以係同義詞。當字串並未符合同義詞庫中之同義詞中之一者時(步驟S730的否),進行步驟S750的步驟。當字串符合同義詞庫中之同義詞中之一者時(步驟S730的是),如步驟S740,將使用者指令資料中之此字串關聯至符合之同 義詞所相應之一特定定義字串。接著,如步驟S750,依據使用者指令資料產生相應程式之程式碼。類似地,在一些實施例中,程式碼可以選擇性地透過一編譯器進行編譯。 First, in step S710, the user instruction data of the corresponding program is received. Similarly, in some embodiments, the user command data of the corresponding program can be received via a network, such as a wired network, a telecommunications network, and/or a wireless network. In some embodiments, the user instruction data of the corresponding program can be received through an input unit such as a keyboard, a mouse, or a touch display unit. Next, in step S720, the user instruction data is analyzed to obtain at least one string, and in step S730, the string is compared with a plurality of synonyms in a synonym database. It is reminded that at least one synonym corresponding to the corresponding individual definition string can be recorded in the thesaurus. In some embodiments, a synonym may be a word that is represented in a different language than the corresponding defined string. In some embodiments, a synonym can be a word that has the same meaning in a different language as the corresponding defined string. As mentioned before, "display", "show" and "display" can be synonymous. When the string does not match one of the synonyms in the thesaurus (No in step S730), the step S750 is performed. When the string conforms to one of the synonyms in the thesaurus (Yes in step S730), in step S740, the string in the user instruction data is associated with the same One of the meaning words corresponds to a specific definition string. Then, in step S750, the code of the corresponding program is generated according to the user instruction data. Similarly, in some embodiments, the code can be selectively compiled by a compiler.

第8圖顯示依據本發明另一實施例之具有自動調整功能之程式產生方法。依據本發明實施例之具有自動調整功能之程式產生方法適用於一電子裝置,如個人電腦或行動裝置,如行動電話、智慧型手機、個人數位助理、全球定位系統、穿戴式裝置及筆記型電腦等。 Figure 8 is a diagram showing a program generation method with an automatic adjustment function according to another embodiment of the present invention. A program generation method with an automatic adjustment function according to an embodiment of the present invention is applicable to an electronic device such as a personal computer or a mobile device such as a mobile phone, a smart phone, a personal digital assistant, a global positioning system, a wearable device, and a notebook computer. Wait.

首先,如步驟S810,接收相應一程式之使用者指令資料。值得注意的是,在一些實施例中,相應程式之使用者指令資料可以透過一網路,如有線網路、電信網路、與/或無線網路等接收。在一些實施例中,相應程式之使用者指令資料可以透過一輸入單元,如鍵盤、滑鼠、或觸控式顯示單元接收。接著,如步驟S820,分析使用者指令資料以取得至少一字串,並如步驟S830,將此字串與一資料庫中之複數定義字串,如指令、參數、代符、及屬性等比對。提醒的是,資料庫中之定義字串可以定義其相應之至少一關聯定義字串。換言之,當定義字串出現時相應之關聯定義字串必然會出現。當字串並未符合資料庫中之任一定義字串時(步驟S830的否),進行步驟S860的步驟。當字串符合資料庫中之一特定定義字串時(步驟S830的是),如步驟S840,判斷使用者指令資料中是否包括相應此特定定義字串之至少一關聯定義字串。當使用者指令資料中包括相應此特定定義字串之關聯定義字串時(步驟S840的是),進行步驟S860的步驟。當使用者指令資料中並未包括相應此特定定義字串之關聯定義字串時(步驟S840的否),如步驟S850,將關聯定義字串加入使用者指令資料中。之後,如步驟S860,依據使用者指令資料產生相應程式之程式碼。提醒的是,在一些實施例中,程式碼可以選擇性地透過一編譯器進行編譯。 First, in step S810, the user instruction data of the corresponding program is received. It should be noted that in some embodiments, the user command data of the corresponding program can be received through a network such as a wired network, a telecommunications network, and/or a wireless network. In some embodiments, the user instruction data of the corresponding program can be received through an input unit such as a keyboard, a mouse, or a touch display unit. Then, in step S820, the user instruction data is analyzed to obtain at least one string, and in step S830, the string is compared with a plurality of defined strings in a database, such as instructions, parameters, tokens, and attributes. Correct. It is reminded that the definition string in the database can define its corresponding at least one associated definition string. In other words, when the definition string appears, the corresponding associated definition string will necessarily appear. When the character string does not match any of the definition strings in the database (NO in step S830), the step of step S860 is performed. When the string matches one of the specific definition strings in the database (YES in step S830), in step S840, it is determined whether at least one associated definition string of the specific definition string is included in the user instruction data. When the user instruction material includes the associated definition string corresponding to the specific definition string (YES in step S840), the step of step S860 is performed. When the associated definition string of the specific definition string is not included in the user instruction data (No in step S840), in step S850, the association definition string is added to the user instruction material. Then, in step S860, the code of the corresponding program is generated according to the user instruction data. It is noted that in some embodiments, the code can be selectively compiled by a compiler.

第9圖顯示依據本發明另一實施例之具有自動調整功能之程式產生方法。依據本發明實施例之具有自動調整功能之程式產生方法適用於一電子裝置,如個人電腦或行動裝置,如行動電話、智慧型手機、個人數位助理、全球定位系統、穿戴式裝置及筆記型電腦等。 Figure 9 is a diagram showing a program generation method with an automatic adjustment function according to another embodiment of the present invention. A program generation method with an automatic adjustment function according to an embodiment of the present invention is applicable to an electronic device such as a personal computer or a mobile device such as a mobile phone, a smart phone, a personal digital assistant, a global positioning system, a wearable device, and a notebook computer. Wait.

首先,如步驟S910,接收相應一程式之使用者指令資料。值得注意的是,在一些實施例中,相應程式之使用者指令資料可以透過一 網路,如有線網路、電信網路、與/或無線網路等接收。在一些實施例中,相應程式之使用者指令資料可以透過一輸入單元,如鍵盤、滑鼠、或觸控式顯示單元接收。接著,如步驟S920,由使用者指令資料中取得相應一特定項目之一第一判斷條件,與相應特定項目之一第二判斷條件。提醒的是,在一些實施例中,第一判斷條件與第二判斷條件係由使用者指令資料中之同一字句中取得。如步驟S930,判斷第一判斷條件與第二判斷條件是否有一交集範圍。當第一判斷條件與第二判斷條件並未有交集範圍時(步驟S930的否),結束流程。當第一判斷條件與第二判斷條件有一交集範圍時(步驟S930的是),如步驟S940,將第一判斷條件或第二判斷條件進行修正,以將交集範圍由第一判斷條件或第二判斷條件中排除。值得注意的是,在一些實施例中,交集範圍可以由具有較大範圍的判斷條件中排除。 First, in step S910, the user instruction data of the corresponding program is received. It should be noted that in some embodiments, the user instruction data of the corresponding program can pass through a The network, such as a wired network, a telecommunications network, and/or a wireless network, is received. In some embodiments, the user instruction data of the corresponding program can be received through an input unit such as a keyboard, a mouse, or a touch display unit. Next, in step S920, a first determination condition of one of the specific items is obtained from the user instruction data, and a second determination condition is one of the corresponding specific items. It is reminded that in some embodiments, the first determination condition and the second determination condition are obtained from the same sentence in the user instruction material. In step S930, it is determined whether the first determination condition and the second determination condition have an intersection range. When the first judgment condition and the second judgment condition do not have an intersection range (NO in step S930), the flow is ended. When the first judgment condition and the second judgment condition have an intersection range (YES in step S930), in step S940, the first judgment condition or the second judgment condition is corrected to set the intersection range from the first judgment condition or the second Excluded from the judgment condition. It is worth noting that in some embodiments, the intersection range may be excluded from the judgment condition having a larger range.

舉例來說,相應一程式之使用者指令資料係”whenTEMPERATURE>10 SHOWTEMPERATURE whenTEMPERATURE<=10 SHOW‘VERY COOL!’whenTEMPERATURE<5 SHOW‘GOD DAMM COOL!’,其中三個判斷條件皆係對應於項目”TEMPERATURE”之判斷,且”TEMPERATURE<=10”與”TEMPERATURE<5”具有一交集範圍。因此經過處理後之使用者指令資料可以成為”when TEMPERATURE>10 SHOW TEMPERATURE whenTEMPERATURE<=10 AND TEMPERATURE>=5 SHOW‘VERY COOL!’whenTEMPERATURE<5 SHOW‘GOD DAMM COOL!’。其中,判斷條件”TEMPERATURE<=10”被修正為”TEMPERATURE<=10 AND TEMPERATURE>=5”。 For example, the user command data of the corresponding program is "whenTEMPERATURE>10 SHOWTEMPERATURE whenTEMPERATURE<=10 SHOW'VERY COOL!'whenTEMPERATURE<5 SHOW'GOD DAMM COOL!', and three of the judgment conditions correspond to the project" TEMPERATURE", and "TEMPERATURE<=10" and "TEMPERATURE<5" have an intersection range. Therefore, the processed user directive can be "when TEMPERATURE>10 SHOW TEMPERATURE whenTEMPERATURE<=10 AND TEMPERATURE>=5 SHOW'VERY COOL! ‘whenTEMPERATURE<5 SHOW‘GOD DAMM COOL! ’. The judgment condition "TEMPERATURE<=10" was corrected to "TEMPERATURE<=10 AND TEMPERATURE>=5".

因此,透過本案之具有自動調整功能之程式產生方法及系統,相應程式之資料可以被自動調整以產生程式碼,從而增加程式編輯之彈性與效率。藉由本案,使用者不需嚴謹地背記指令及其使用規則,便可輕易且有效率地完成程式之設計。 Therefore, through the method and system for generating programs with automatic adjustment function in this case, the data of the corresponding program can be automatically adjusted to generate code, thereby increasing the flexibility and efficiency of program editing. With this case, the user can easily and efficiently complete the design of the program without rigorously memorizing the instructions and their usage rules.

本發明之方法,或特定型態或其部份,可以以程式碼的型態存在。程式碼可以包含於實體媒體,如軟碟、光碟片、硬碟、或是任何其他機器可讀取(如電腦可讀取)儲存媒體,亦或不限於外在形式之電腦程式產品,其中,當程式碼被機器,如電腦載入且執行時,此機器變成用以 參與本發明之裝置。程式碼也可以透過一些傳送媒體,如電線或電纜、光纖、或是任何傳輸型態進行傳送,其中,當程式碼被機器,如電腦接收、載入且執行時,此機器變成用以參與本發明之裝置。當在一般用途處理單元實作時,程式碼結合處理單元提供一操作類似於應用特定邏輯電路之獨特裝置。 The method of the invention, or a particular type or portion thereof, may exist in the form of a code. The code may be included in a physical medium such as a floppy disk, a CD, a hard disk, or any other machine readable (such as computer readable) storage medium, or is not limited to an external computer program product, wherein When the code is loaded and executed by a machine such as a computer, the machine becomes Participating in the device of the invention. The code can also be transmitted via some transmission medium, such as a wire or cable, fiber optics, or any transmission type, where the machine becomes part of the program when it is received, loaded, and executed by a machine, such as a computer. Invented device. When implemented in a general purpose processing unit, the code combination processing unit provides a unique means of operation similar to application specific logic.

雖然本發明已以較佳實施例揭露如上,然其並非用以限定本發明,任何熟悉此項技藝者,在不脫離本發明之精神和範圍內,當可做些許更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。 While the present invention has been described in its preferred embodiments, the present invention is not intended to limit the invention, and the present invention may be modified and modified without departing from the spirit and scope of the invention. The scope of protection is subject to the definition of the scope of the patent application.

S310、S320、S330、S340、S350‧‧‧步驟 S310, S320, S330, S340, S350‧‧‧ steps

Claims (15)

一種具有自動調整功能之程式產生方法,適用於一電子裝置,包括下列步驟:接收相應一程式之使用者指令資料;分析該使用者指令資料以取得至少一第一字串;將該第一字串與一資料庫中之複數定義字串進行比對;當該第一字串不符合該等定義字串中之一者時,由該使用者指令資料中刪除該第一字串;以及依據刪除該第一字串後之該使用者指令資料產生相應該程式之程式碼。 A program generating method with an automatic adjustment function, which is applicable to an electronic device, comprising the steps of: receiving user instruction data of a corresponding program; analyzing the user instruction data to obtain at least one first string; and the first word The string is compared with a complex definition string in a database; when the first string does not match one of the defined strings, the first string is deleted from the user instruction data; The user instruction data after deleting the first string generates a code corresponding to the program. 根據申請專利範圍第1項之具有自動調整功能之程式產生方法,更包括下列步驟:判斷該第一字串是否符合一同義詞庫中之複數同義詞中之一者;以及當該第一字串符合該等同義詞中之一特定同義詞時,將該使用者指令資料中之該第一字串關聯至相應該特定同義詞之一特定定義字串。 The method for generating a program having an automatic adjustment function according to claim 1 of the patent application scope, further comprising the steps of: determining whether the first string conforms to one of a plural synonym in a thesaurus; and when the first string matches When one of the equivalent words is a specific synonym, the first string in the user instruction data is associated with a specific definition string corresponding to one of the specific synonyms. 根據申請專利範圍第1項之具有自動調整功能之程式產生方法,更包括下列步驟:分析該使用者指令資料以取得該第一字串之後之一第二字串;改變該第一字串與該第二字串之順序;以及依據具有改變順序後之該第一字串與該第二字串之該使用者指令資料產生相應該程式之該程式碼。 The method for generating a program having an automatic adjustment function according to the first aspect of the patent application includes the following steps: analyzing the user instruction data to obtain a second string after the first string; changing the first string and The sequence of the second string; and generating the code corresponding to the program according to the user instruction data of the first string and the second string after the changing order. 根據申請專利範圍第1項之具有自動調整功能之程式產生方法,更包括下列步驟:分析該使用者指令資料以取得一第二字串;將該第一字串與該第二字串進行組合;以及依據組合後之該第一字串與該第二字串產生相應該程式之該程式碼。 The method for generating a program having an automatic adjustment function according to the first aspect of the patent application includes the following steps: analyzing the user instruction data to obtain a second string; combining the first string with the second string And generating the code corresponding to the program according to the combined first string and the second string. 根據申請專利範圍第1項之具有自動調整功能之程式產生方法,更包括下列步驟:當該第一字串不符合該等定義字串中之一者時,判斷該第一字串是否近似於該等定義字串中之一特定定義字串;以及當該第一字串近似於該等定義字串中之該特定定義字串時,將該使用者指令資料中之該第一字串修正為該特定定義字串。 According to the program generation method of the automatic adjustment function according to the first aspect of the patent application, the method further includes the following steps: when the first string does not meet one of the defined strings, determining whether the first string is similar to Determining one of the defined strings; and correcting the first string in the user instruction data when the first string approximates the particular defined string in the defined string Define a string for this particular. 根據申請專利範圍第2項之具有自動調整功能之程式產生方法,其中該同義詞庫中之該等同義詞中至少包括具有不同語言表示而相同意義之一特定同義詞。 A program generating method having an automatic adjustment function according to item 2 of the patent application scope, wherein the equivalent word in the thesaurus includes at least one of the same meanings with different language representations and the same meaning. 根據申請專利範圍第1項之具有自動調整功能之程式產生方法,更包括下列步驟:當該第一字串符合該等定義字串中之一特定定義字串時,判斷該使用者指令資料是否包括該特定定義字串相應之至少一關聯定義字串;以及當該使用者指令資料並未包括該關聯定義字串時,將該關聯定義字串加入該使用者指令資料中。 According to the program generation method of the automatic adjustment function according to the first aspect of the patent application, the method further includes the following steps: when the first string matches one of the defined strings in the defined string, determining whether the user instruction data is The at least one associated definition string corresponding to the specific definition string is included; and when the user instruction data does not include the association definition string, the association definition string is added to the user instruction data. 根據申請專利範圍第1項之具有自動調整功能之程式產生方法,更包括下列步驟:由該使用者指令資料中取得相應一特定項目之一第一判斷條件,與相應該特定項目之一第二判斷條件;判斷該第一判斷條件與該第二判斷條件是否有一交集範圍;以及當該第一判斷條件與該第二判斷條件有一交集範圍時,將該第一判斷條件或該第二判斷條件進行修正,以將該交集範圍由該第一判斷條件或該第二判斷條件中排除。 The method for generating a program having an automatic adjustment function according to Item 1 of the patent application scope further includes the following steps: obtaining, by the user instruction data, a first judgment condition corresponding to one of the specific items, and correspondingly one of the corresponding specific items Determining a condition; determining whether the first judgment condition and the second judgment condition have an intersection range; and when the first judgment condition and the second judgment condition have an intersection range, the first judgment condition or the second judgment condition A correction is made to exclude the intersection range from the first judgment condition or the second judgment condition. 一種具有自動調整功能之程式產生方法,適用於一電子裝置,包括下列步驟:接收相應一程式之使用者指令資料;分析該使用者指令資料以取得至少一第一字串;判斷該第一字串是否符合一同義詞庫中之複數同義詞中之一者;當該第一字串符合該等同義詞中之一特定同義詞時,將該使用者指令資料中之該第一字串關聯至相應該特定同義詞之一特定定義字串;以及依據該使用者指令資料產生相應該程式之程式碼。 A program generating method with an automatic adjustment function, which is applicable to an electronic device, comprising the steps of: receiving user instruction data of a corresponding program; analyzing the user instruction data to obtain at least one first string; determining the first word Whether the string conforms to one of the plural synonym in the synonym; when the first string matches a specific synonym in the equivalent, the first string in the user instruction data is associated with the corresponding One of the synonyms defines a string; and the code of the corresponding program is generated according to the user instruction data. 一種具有自動調整功能之程式產生方法,適用於一電子裝置,包括下列步驟:接收相應一程式之使用者指令資料;分析該使用者指令資料以取得至少一第一字串;將該第一字串與一資料庫中之複數定義字串進行比對; 當該第一字串符合該等定義字串中之一特定定義字串時,判斷該使用者指令資料是否包括該特定定義字串相應之至少一關聯定義字串;當該使用者指令資料並未包括該關聯定義字串時,將該關聯定義字串加入該使用者指令資料中;以及依據加入該關聯定義字串之該使用者指令資料產生相應該程式之程式碼。 A program generating method with an automatic adjustment function, which is applicable to an electronic device, comprising the steps of: receiving user instruction data of a corresponding program; analyzing the user instruction data to obtain at least one first string; and the first word The string is compared with a plural definition string in a database; When the first string matches one of the defined strings in the defined string, determining whether the user instruction material includes at least one associated definition string corresponding to the specific defined string; when the user instructs the data When the association definition string is not included, the association definition string is added to the user instruction data; and the program code corresponding to the program is generated according to the user instruction data added to the association definition string. 一種具有自動調整功能之程式產生方法,適用於一電子裝置,包括下列步驟:接收相應一程式之使用者指令資料;由該使用者指令資料中取得相應一特定項目之一第一判斷條件,與相應該特定項目之一第二判斷條件;判斷該第一判斷條件與該第二判斷條件是否有一交集範圍;以及當該第一判斷條件與該第二判斷條件有一交集範圍時,將該第一判斷條件或該第二判斷條件進行修正,以將該交集範圍由該第一判斷條件或該第二判斷條件中排除。 A program generating method with an automatic adjustment function, which is applicable to an electronic device, comprising the steps of: receiving user instruction data of a corresponding program; obtaining, by the user instruction data, a first judgment condition corresponding to one of the specific items, and Corresponding to a second judgment condition of the specific item; determining whether the first judgment condition and the second judgment condition have an intersection range; and when the first judgment condition and the second judgment condition have an intersection range, the first The judgment condition or the second judgment condition is corrected to exclude the intersection range from the first judgment condition or the second judgment condition. 一種電腦程式產品,用以被一機器載入且執行一具有自動調整功能之程式產生方法,該電腦程式產品包括:一第一程式碼,用以接收相應一程式之使用者指令資料;一第二程式碼,用以分析該使用者指令資料以取得至少一第一字串; 一第三程式碼,用以將該第一字串與一資料庫中之複數定義字串進行比對;一第四程式碼,用以當該第一字串不符合該等定義字串中之一者時,由該使用者指令資料中刪除該第一字串;以及一第五程式碼,用以依據刪除該第一字串後之該使用者指令資料產生相應該程式之程式碼。 A computer program product for being loaded by a machine and executing a program generation method with an automatic adjustment function, the computer program product comprising: a first code for receiving user instruction data of a corresponding program; a second code for analyzing the user instruction data to obtain at least one first string; a third code for comparing the first string with a complex definition string in a database; a fourth code for when the first string does not match the defined string In one case, the first string is deleted from the user command data; and a fifth code is used to generate a code corresponding to the program according to the user instruction data after deleting the first string. 一種電腦程式產品,用以被一機器載入且執行一具有自動調整功能之程式產生方法,該電腦程式產品包括:一第一程式碼,用以接收相應一程式之使用者指令資料;一第二程式碼,用以分析該使用者指令資料以取得至少一第一字串;一第三程式碼,用以判斷該第一字串是否符合一同義詞庫中之複數同義詞中之一者;一第四程式碼,用以當該第一字串符合該等同義詞中之一特定同義詞時,將該使用者指令資料中之該第一字串關聯至相應該特定同義詞之一特定定義字串;以及一第五程式碼,用以依據該使用者指令資料產生相應該程式之程式碼。 A computer program product for being loaded by a machine and executing a program generation method with an automatic adjustment function, the computer program product comprising: a first code for receiving user instruction data of a corresponding program; a second code for analyzing the user command data to obtain at least a first string; a third code for determining whether the first string matches one of a plurality of synonyms in a synonym library; a fourth code for associating the first string in the user instruction data with a specific definition string corresponding to the specific synonym when the first string matches a specific synonym of the equivalent word; And a fifth code for generating a code corresponding to the program according to the user instruction data. 一種電腦程式產品,用以被一機器載入且執行一具有自動調整功能之程式產生方法,該電腦程式產品包括:一第一程式碼,用以接收相應一程式之使用者指令資料; 一第二程式碼,用以分析該使用者指令資料以取得至少一第一字串;一第三程式碼,用以將該第一字串與一資料庫中之複數定義字串進行比對;一第四程式碼,用以當該第一字串符合該等定義字串中之一特定定義字串時,判斷該使用者指令資料是否包括該特定定義字串相應之至少一關聯定義字串;一第五程式碼,用以當該使用者指令資料並未包括該關聯定義字串時,將該關聯定義字串加入該使用者指令資料中;以及一第六程式碼,用以依據加入該關聯定義字串之該使用者指令資料產生相應該程式之程式碼。 A computer program product for being loaded by a machine and executing a program generation method with an automatic adjustment function, the computer program product comprising: a first code for receiving user instruction data of a corresponding program; a second code for analyzing the user command data to obtain at least one first string; a third code for comparing the first string with a plurality of defined strings in a database a fourth code for determining whether the user instruction material includes at least one associated definition word corresponding to the specific definition string when the first string matches one of the defined strings in the defined string a fifth code for adding the association definition string to the user instruction data when the user instruction data does not include the association definition string; and a sixth code for The user instruction data added to the association definition string generates a code corresponding to the program. 一種電腦程式產品,用以被一機器載入且執行一具有自動調整功能之程式產生方法,該電腦程式產品包括:一第一程式碼,用以接收相應一程式之使用者指令資料;一第二程式碼,用以由該使用者指令資料中取得相應一特定項目之一第一判斷條件,與相應該特定項目之一第二判斷條件;一第三程式碼,用以判斷該第一判斷條件與該第二判斷條件是否有一交集範圍;以及一第四程式碼,用以當該第一判斷條件與該第二判斷條件有一交集範圍時,將該第一判斷條件或該第二判斷條件進 行修正,以將該交集範圍由該第一判斷條件或該第二判斷條件中排除。 A computer program product for being loaded by a machine and executing a program generation method with an automatic adjustment function, the computer program product comprising: a first code for receiving user instruction data of a corresponding program; a second code for obtaining a first judgment condition of one of the specific items from the user instruction data, and a second judgment condition corresponding to one of the specific items; and a third code for determining the first judgment Whether the condition has an intersection range with the second judgment condition; and a fourth code for using the first judgment condition or the second judgment condition when the first judgment condition and the second judgment condition have an intersection range Enter The line correction is performed to exclude the intersection range from the first judgment condition or the second judgment condition.
TW103126700A 2014-08-05 2014-08-05 Methods and systems for generating program codes with automatic modification capability, and related computer program prodcuts TW201606644A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW103126700A TW201606644A (en) 2014-08-05 2014-08-05 Methods and systems for generating program codes with automatic modification capability, and related computer program prodcuts

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW103126700A TW201606644A (en) 2014-08-05 2014-08-05 Methods and systems for generating program codes with automatic modification capability, and related computer program prodcuts

Publications (1)

Publication Number Publication Date
TW201606644A true TW201606644A (en) 2016-02-16

Family

ID=55810074

Family Applications (1)

Application Number Title Priority Date Filing Date
TW103126700A TW201606644A (en) 2014-08-05 2014-08-05 Methods and systems for generating program codes with automatic modification capability, and related computer program prodcuts

Country Status (1)

Country Link
TW (1) TW201606644A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI621066B (en) * 2016-08-30 2018-04-11 Mitsubishi Electric Corp Program editing device, program editing method, and program editing program product

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI621066B (en) * 2016-08-30 2018-04-11 Mitsubishi Electric Corp Program editing device, program editing method, and program editing program product

Similar Documents

Publication Publication Date Title
US10666583B2 (en) System and method for visually understanding and programming conversational agents of electronic devices
KR102462365B1 (en) Method and apparatus for predicting text input based on user demographic information and context information
US10289682B2 (en) Dynamic translation substitution
EP3857432A1 (en) Automated content editor
KR20210061141A (en) Method and apparatus for processimg natural languages
US11586689B2 (en) Electronic apparatus and controlling method thereof
EP3971761A1 (en) Method and apparatus for generating summary, electronic device and storage medium thereof
US10754885B2 (en) System and method for visually searching and debugging conversational agents of electronic devices
EP3667493B1 (en) A method for a software development system
US20120317544A1 (en) Information processing apparatus and information processing method
KR20140017649A (en) Methods to adapt user interfaces and input controls
US11397567B2 (en) Integrated system for designing a user interface
CN111443964B (en) Method, apparatus and computer readable storage medium for updating user interface
CN104462056A (en) Active knowledge guidance based on deep document analysis
CN108139897A (en) Do not pre-process it is macro in the case of use Ubershader variants system and method
US11403079B2 (en) Integrated system for designing a user interface
KR20220048374A (en) Electronic apparatus and control method thereof
JP2022002093A (en) Method and device for editing face, electronic device, and readable storage medium
US20140096089A1 (en) Electronic device including mind-map user interface and method for manipulating mind-map using the same
US11074054B1 (en) Integrated system for designing a user interface
JP2012123675A (en) Method and system for extracting system component
TW201606644A (en) Methods and systems for generating program codes with automatic modification capability, and related computer program prodcuts
KR102019752B1 (en) Method of providing user interface/ user experience strategy executable by computer and apparatus providing the same
US8548798B2 (en) Representations for graphical user interfaces of operators, data types, and data values in a plurality of natural languages
JP7247593B2 (en) Generation device, software robot system, generation method and generation program