WO2014026595A1 - Procédé et système de réalisation de compilation sur la base d'un langage de programmation visuallisp - Google Patents
Procédé et système de réalisation de compilation sur la base d'un langage de programmation visuallisp Download PDFInfo
- Publication number
- WO2014026595A1 WO2014026595A1 PCT/CN2013/081403 CN2013081403W WO2014026595A1 WO 2014026595 A1 WO2014026595 A1 WO 2014026595A1 CN 2013081403 W CN2013081403 W CN 2013081403W WO 2014026595 A1 WO2014026595 A1 WO 2014026595A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- chinese
- command
- compilation
- library
- visuallisp
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 57
- 230000006870 function Effects 0.000 claims abstract description 92
- 238000012800 visualization Methods 0.000 claims abstract description 13
- 238000012545 processing Methods 0.000 claims abstract description 12
- 230000000007 visual effect Effects 0.000 claims 6
- 238000011161 development Methods 0.000 description 18
- 230000018109 developmental process Effects 0.000 description 18
- 238000010586 diagram Methods 0.000 description 6
- 206010011469 Crying Diseases 0.000 description 2
- 238000009434 installation Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000033772 system development Effects 0.000 description 2
- 238000013519 translation Methods 0.000 description 2
- 238000012790 confirmation Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/34—Graphical or visual programming
Definitions
- the present invention relates to the field of computer technology, and in particular, to a method and system for compiling a translation based on a VisualLisp programming language. Background technique
- AutoCAD One of the current programming languages for AutoCAD, VisualLisp, is the programming language that AutoDesk introduced in the 1990s. Only 5% of AutoCAD users are able to develop in general, and less than 1% are able to develop professionally. Because programming is a more difficult skill for non-computer professionals.
- the original AutoCAD secondary development programming language is in English, and people with bad English are more difficult to accept.
- the original AutoCAD secondary development programming language grammar is relatively complex, does not conform to Chinese grammar habits, learning and operation have certain difficulties.
- the original AutoCAD secondary development programming language code is too large, to achieve a single function, you need to write a lot of code, resulting in waste of manpower. Summary of the invention
- the embodiment of the present invention develops a Chinese command based on the VisualLisp language command library, which realizes the ease of the Chinese operation interface and the difficulty of development.
- an embodiment of the present invention provides a Chinese translation implementation method based on a VisualLisp programming language, and the method includes:
- the visualization window based on AutoCAD receives an operation command input by the operation user
- the input operation command is compiled and processed based on the Chinese function library and the Chinese code interpreter; the compiled result is displayed to the operation user.
- the setting of the Chinese function library and the Chinese code interpreter in the VisualLisp command library includes: setting a Chinese command library supported by the Chinese code interpreter; and a Chinese function library corresponding to each Chinese command.
- the compiling process of the input operation command based on the Chinese function library and the Chinese code interpreter includes: identifying and determining the input operation command, and if the operation command is parsed by the Chinese code interpreter, calling the corresponding The Chinese function library compiles the operation command; if the operation command cannot be parsed by the Chinese code interpreter, the user is prompted to input an error.
- an embodiment of the present invention further provides a method for compiling and implementing a method based on a VisualLisp programming language, where the method includes:
- the visualization window based on AutoCAD receives an operation command input by the operation user
- the input operation command is compiled based on the Chinese function library and the Chinese code interpreter; if the operation command is determined to be an English compilation environment, the English function library and the English code are interpreted. Compiling and processing the input operation commands;
- the setting of the Chinese function library and the Chinese code interpreter in the VisualLisp command library includes: setting a Chinese command library supported by the Chinese code interpreter; and a Chinese function library corresponding to each Chinese command.
- the compiling process of the input operation command based on the Chinese function library and the Chinese code interpreter includes: identifying and determining the input operation command, and if the operation command is parsed by the Chinese code interpreter, calling the corresponding The Chinese function library compiles the operation command; if the operation command cannot be parsed by the Chinese code interpreter, the user is prompted to input an error.
- the embodiment of the present invention further provides a compiling and realizing system based on the VisualLisp programming language, and the system includes:
- the command setting module is used to set the Chinese function library and Chinese code in the VisualLisp command library to explain the crying.
- a VisualLisp command library module a Chinese function library for storing settings and a Chinese code interpreter
- an input module for receiving an operation command input by an operation user based on an AutoCAD-based visualization window
- a compilation module for storing based on the VisualLisp command library module
- a display module configured to display the compiled result of the compiled module to the operation user.
- the command setting module is configured to set a Chinese command library supported by the Chinese code interpreter, and a Chinese function library corresponding to each Chinese command.
- the compiling module is further configured to: identify and determine the input operation command, if the operation command is parsed by the Chinese code interpreter, call the corresponding Chinese function library to compile the Chinese command; When the command cannot be parsed by the Chinese code interpreter, the user is prompted to enter an error.
- an embodiment of the present invention further provides a compiler implementation system based on a VisualLisp programming language, where the method includes:
- the command setting module is used to set the Chinese function library and Chinese code in the VisualLisp command library to explain the crying.
- the VisualLisp command library module is configured to store the set Chinese function library and the Chinese code interpreter; the input module is configured to receive an operation command input by the operation user according to the AutoCAD-based visualization window; and an environment recognition module, configured to determine that the operation command is located Compilation environment;
- a first compiling module configured to: after the environment identification module determines that the operation command is a Chinese compilation environment, compile and process the input operation command based on the Chinese function library and the Chinese code interpreter;
- a second compiling module configured to: after the environment identification module determines that the operation command is an English compilation environment, compile and process the input operation command based on the English function library and the English code interpreter;
- a display module configured to display the compiled result of the first compilation module or the second compilation module to the operation user.
- the command setting module is configured to set a Chinese command library supported by the Chinese code interpreter, and a Chinese function library corresponding to each Chinese command.
- the compiling module is further configured to: identify and determine the input operation command, if the operation command is parsed by the Chinese code interpreter, call the corresponding Chinese function library to compile the Chinese command; When the command cannot be parsed by the Chinese code interpreter, the user is prompted to enter an error.
- the Chinese language library and the Chinese code interpreter are written on the basis of the original English version as the underlying language, and a new Chinese Lisp programming language with a new grammar and a more powerful function is realized.
- This interpretation process is realized by the background compilation method. It is easier to learn than any existing AutoCAD-related development language. It can be programmed in Chinese language, and the English version of the flashback grammar is changed. It is more in line with Chinese habits, the learning cycle is greatly shortened, the Chinese language is more acceptable, and the learning cost is effectively saved.
- the Chinese function is more powerful than the English function, and the function library is more abundant.
- the English version of the multi-line code action is completed in one sentence.
- the English version requires a custom function.
- the Chinese version is directly provided.
- the system development is based on the AutoCAD platform, and the user's installation is the same as the original English Lisp programming language.
- the loading of the Chinese programming interpreter can be completed by using the Load Lisp program command in AutoCAD.
- the user can also use the original English version of the editor when programming, and can recognize the commands in the mixed operation of Chinese and English, and also facilitate the traditional operation of the user.
- BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are incorporated in the claims Other drawings may also be obtained from these drawings without the use of creative labor.
- FIG. 1 is a flow chart of a Chinese compiling implementation method based on a VisualLisp programming language according to an embodiment of the present invention
- FIG. 2 is a schematic structural diagram of a system for compiling and implementing a system based on a VisualLisp programming language according to an embodiment of the present invention
- FIG. 3 is a flow chart of a method for compiling and implementing a method based on a VisualLisp programming language according to an embodiment of the present invention
- FIG. 4 is a schematic diagram of another structure of a compiler implementation system based on a VisualLisp programming language according to an embodiment of the present invention.
- FIG. 5 is an application state diagram of a method for compiling and implementing a method based on a VisualLisp programming language according to an embodiment of the present invention
- FIG. 6 is another application state diagram of a compiling implementation method based on a VisualLisp programming language in an embodiment of the present invention. detailed description
- FIG. 1 is a flowchart of a Chinese compiling implementation method based on a VisualLisp programming language in an embodiment of the present invention, including the following steps:
- S101 Setting a Chinese function library and a Chinese code interpreter in the VisualLisp command library; setting a Chinese command library supported by the Chinese code interpreter; and a Chinese function library corresponding to each Chinese command.
- the AutoCAD-based visualization window receives an operation command input by the operation user
- S103 Compiling and processing the input operation command based on the Chinese function library and the Chinese code interpreter; identifying and determining the input operation command, and if the operation command is parsed by the Chinese code interpreter, calling the corresponding Chinese function library pair
- the operation command performs a compilation process; if the operation command cannot be parsed by the Chinese code interpreter, the user is prompted to input an error.
- the Chinese development interface supports the operation of the user to input the AutoCAD command.
- the input Chinese command can support the background compilation processing, thereby The operability of Chinese characters users.
- the operation command is the original English command
- the Chinese code interpreter and the Chinese function library may not be recognized, and the user may be prompted to input an error; or when the Chinese compiler environment cannot resolve the operation command, the operation command may be sent to In the compilation environment of the English command, the English code interpreter and the English function library are compiled and processed. If the compilation process can be performed, the compiled result is displayed to the operation user, otherwise the user may be prompted to input an error.
- FIG. 2 is a schematic diagram showing the structure of a compiler implementation system based on the VisualLisp programming language in the embodiment of the present invention, including the following:
- the command setting module 201 is configured to set a Chinese function library and a Chinese code interpreter in the VisualLisp command library;
- the VisualLisp command library module 202 is configured to store the set Chinese function library and the Chinese code interpreter; and the input module 203 is configured to receive an operation command input by the operation user according to the AutoCAD-based visualization window;
- the compiling module 204 is configured to compile and process the input operation command based on the Chinese function library and the Chinese code interpreter stored in the VisualLisp command library module 202;
- the display module 205 is configured to display the compiled result of the compiled module to the operation user.
- the command setting module 201 is used to set the Chinese code interpreter.
- the compiling module 204 is further configured to identify and determine the input operation command. If the operation command is parsed by the Chinese code interpreter, the corresponding Chinese function library is called to compile the Chinese command; if the operation command cannot be When the Chinese code interpreter parses, the user is prompted to enter an error.
- the Chinese development interface supports the operation of the user to input the AutoCAD command.
- the developer will set the corresponding Chinese development environment and compilation environment in the VisualLisp command library through the command setting module 201, which can enable the input Chinese command support.
- the background compile processing which simplifies the operability of Chinese characters.
- the command setting module 201 can simultaneously support mixed development of Chinese and English.
- the VisualLisp command library module 202 stores a Chinese function library and a Chinese code interpreter, and an English function library and a code interpreter for you.
- the operation command is the original English command
- the Chinese code interpreter and the Chinese function library are not recognized, the user may be prompted to input an error; or when the Chinese compiler environment cannot resolve the operation command, the compiling module 204 may invoke the English command.
- the English code interpreter and the English function library are compiled and processed. If the compilation process can be performed, the compiled result is displayed to the operation user, otherwise the user may be prompted to input an error.
- FIG. 3 is a flowchart of a method for compiling and implementing a method based on a VisualLisp programming language in an embodiment of the present invention, including the following steps:
- S301 setting a Chinese function library and a Chinese code interpreter in the VisualLisp command library; it should be noted that, in order to meet the needs of the Chinese character operator, the Chinese function library and the Chinese code interpreter can be developed based on the existing VisualLisp programming language, The input of the Chinese command of the operating user is implemented. It also retains the traditional English development environment, and can also receive the preferences of traditional users and receive input of English commands. When the developer sets the command, the Chinese command library supported by the Chinese code interpreter needs to be set; and the Chinese function library corresponding to each Chinese command.
- the AutoCAD-based visualization window receives an operation command input by the operation user; the operation command here may be a Chinese command or an English command, and the system simultaneously supports input of two commands.
- S304 Compiling and processing the input operation command based on the Chinese function library and the Chinese code interpreter; Further, the step specifically includes: identifying and determining the input operation command, and if the operation command is parsed by the Chinese code interpreter, calling the corresponding Chinese function library to compile the operation command; if the operation command cannot be Chinese When the code interpreter parses, the user is prompted to enter an error.
- the Chinese compiler environment is added to the original system, and the Chinese development interface or the English development interface is used to support the operation of the user to input AutoCAD commands. Since the original English command library already exists, firstly, by setting the corresponding Chinese development environment and compilation environment in the VisualLisp command library, the input Chinese command can support the background compilation processing, thereby simplifying the operability of the Chinese character user.
- the compilation environment is identified, thereby calling the corresponding compilation environment to implement the compilation processing and output of the command.
- FIG. 4 is a schematic diagram showing another structure of a compiler implementation system based on the VisualLisp programming language in the embodiment of the present invention, including the following:
- a command setting module 401 configured to set a Chinese function library and a Chinese code interpreter in the VisualLisp command library
- the VisualLisp command library module 402 is configured to store the set Chinese function library and the Chinese code interpreter; the input module 403 is configured to receive an operation command input by the operation user according to the AutoCAD-based visualization window;
- An environment identification module 404 configured to determine a compilation environment in which the operation command is located
- the first compiling module 405 is configured to: after the environment recognizing module determines that the operation command is a Chinese compiling environment, compile and process the input operation command based on the Chinese function library and the Chinese code interpreter;
- the second compiling module 406 is configured to: after the environment recognizing module determines that the operation command is an English compiling environment, compile and process the input operation command based on the English function library and the English code interpreter;
- the display module 407 is configured to display the compiled result of the first compilation module or the second compilation module to the operation user.
- the command setting module 401 is used to set the Chinese command library supported by the Chinese code interpreter, and the Chinese function library corresponding to each Chinese command.
- the compiling module is further configured to: identify and determine the input operation command, and if the operation command is parsed by the Chinese code interpreter, call the corresponding Chinese function library to compile the Chinese command; When the command cannot be parsed by the Chinese code interpreter, the user is prompted to enter an error.
- the Chinese compiler environment is added to the original system, and the Chinese development interface or the English development interface is used to support the operation user to input AutoCAD commands.
- the input Chinese command can support the background compilation processing, thereby simplifying the operability of the Chinese character user.
- the compilation environment is identified, thereby calling the corresponding compilation environment to implement the compilation processing and output of the command.
- Figures 5 and 6 show the operational application environment in the embodiment of the present invention.
- the Chinese language library and the Chinese code interpreter are written on the basis of the original English version as the underlying language, and a new Chinese Lisp programming language with a new grammar and a more powerful function is realized.
- This interpretation process is realized by the background compilation method. It is easier to learn than any existing AutoCAD-related development language. It can be programmed in Chinese language, and the English version of the flashback method is changed. It is more in line with Chinese habits, the learning cycle is greatly shortened, the Chinese language is more acceptable, and the learning cost is effectively saved.
- the Chinese function is more powerful than the English function, and the function library is more abundant.
- the English version of the multi-line code action is completed in one sentence.
- the English version requires a custom function, and the Chinese version is directly provided.
- the system development is based on the AutoCAD platform.
- the user's installation is the same as the original English Lisp programming language.
- the loading of the Lisp program command in AutoCAD can complete the loading of the Chinese programming interpreter.
- the user can also use the original English version of the editor when programming, and can recognize the commands in the mixed operation of Chinese and English, and also facilitate the traditional operation of the user.
Abstract
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012102892771A CN102880459A (zh) | 2012-08-14 | 2012-08-14 | 基于VisualLisp编程语言下的编译实现方法及*** |
CN201210289277.1 | 2012-08-14 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2014026595A1 true WO2014026595A1 (fr) | 2014-02-20 |
Family
ID=47481798
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2013/081403 WO2014026595A1 (fr) | 2012-08-14 | 2013-08-13 | Procédé et système de réalisation de compilation sur la base d'un langage de programmation visuallisp |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102880459A (fr) |
WO (1) | WO2014026595A1 (fr) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019200254A1 (fr) | 2018-04-13 | 2019-10-17 | Tolero Pharmaceuticals, Inc. | Inhibiteurs de kinase pim pour le traitement de néoplasmes myéloprolifératifs et de fibrose associée au cancer |
US10875864B2 (en) | 2011-07-21 | 2020-12-29 | Sumitomo Dainippon Pharma Oncology, Inc. | Substituted imidazo[1,2-B]pyridazines as protein kinase inhibitors |
US11471456B2 (en) | 2019-02-12 | 2022-10-18 | Sumitomo Pharma Oncology, Inc. | Formulations comprising heterocyclic protein kinase inhibitors |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102880459A (zh) * | 2012-08-14 | 2013-01-16 | 张涛 | 基于VisualLisp编程语言下的编译实现方法及*** |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1601970A (zh) * | 2003-09-23 | 2005-03-30 | 华为技术有限公司 | 基于人机交互语言的通用命令行输入装置及其方法 |
CN101122858A (zh) * | 2007-09-20 | 2008-02-13 | 中兴通讯股份有限公司 | 一种人机交互界面本地化的方法及*** |
CN101174207A (zh) * | 2007-11-05 | 2008-05-07 | 马旭东 | 一种能够使用母语开发多种高级语言程序的***和方法 |
CN102880459A (zh) * | 2012-08-14 | 2013-01-16 | 张涛 | 基于VisualLisp编程语言下的编译实现方法及*** |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030131337A1 (en) * | 2002-01-07 | 2003-07-10 | Perumainar Asok K. | Educational method and tool for isolating and teaching programming language concepts |
-
2012
- 2012-08-14 CN CN2012102892771A patent/CN102880459A/zh active Pending
-
2013
- 2013-08-13 WO PCT/CN2013/081403 patent/WO2014026595A1/fr active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1601970A (zh) * | 2003-09-23 | 2005-03-30 | 华为技术有限公司 | 基于人机交互语言的通用命令行输入装置及其方法 |
CN101122858A (zh) * | 2007-09-20 | 2008-02-13 | 中兴通讯股份有限公司 | 一种人机交互界面本地化的方法及*** |
CN101174207A (zh) * | 2007-11-05 | 2008-05-07 | 马旭东 | 一种能够使用母语开发多种高级语言程序的***和方法 |
CN102880459A (zh) * | 2012-08-14 | 2013-01-16 | 张涛 | 基于VisualLisp编程语言下的编译实现方法及*** |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10875864B2 (en) | 2011-07-21 | 2020-12-29 | Sumitomo Dainippon Pharma Oncology, Inc. | Substituted imidazo[1,2-B]pyridazines as protein kinase inhibitors |
WO2019200254A1 (fr) | 2018-04-13 | 2019-10-17 | Tolero Pharmaceuticals, Inc. | Inhibiteurs de kinase pim pour le traitement de néoplasmes myéloprolifératifs et de fibrose associée au cancer |
US11471456B2 (en) | 2019-02-12 | 2022-10-18 | Sumitomo Pharma Oncology, Inc. | Formulations comprising heterocyclic protein kinase inhibitors |
Also Published As
Publication number | Publication date |
---|---|
CN102880459A (zh) | 2013-01-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103312850B (zh) | 一种手机自动化测试***及工作方法 | |
CN110147256B (zh) | 一种多屏交互方法及装置 | |
WO2014026595A1 (fr) | Procédé et système de réalisation de compilation sur la base d'un langage de programmation visuallisp | |
JPS6017539A (ja) | エミユレ−シヨン方式 | |
TWI585681B (zh) | 從既存之單一語言程序建立多重語言程序 | |
CN108351764A (zh) | 程序代码编辑器中数据的图形表示 | |
WO2021258692A1 (fr) | Procédé et dispositif de compilation compatible avec plusieurs puces | |
US9378054B2 (en) | Testing system with methodology for background application control | |
US11482218B2 (en) | Voice control method, voice control device, and computer-executable non-volatile storage medium | |
CN103177724A (zh) | 语音控制文本操作的方法、装置及终端 | |
KR20170057264A (ko) | 멀티 컨텍스트 지능형 지원 기능을 갖는 코드 개발 툴 | |
KR20020094760A (ko) | 컴퓨터용 소프트웨어의 언어표시방법 및언어표시시스템과, 언어표시방법과 언어표시시스템이저장된 기록매체 | |
Patil et al. | Enhanced UI Automator Viewer with improved Android accessibility evaluation features | |
US20130249810A1 (en) | Text entry mode selection | |
CN113407255A (zh) | 组件调用方法、装置及计算机可读存储介质 | |
CN112269571A (zh) | 模块化代码开发方法和装置 | |
CN111061466A (zh) | 行为控制脚本语言的自动化转化方法、***、终端及介质 | |
AU9597498A (en) | System to associate control with applications using drag and drop interface | |
US11256479B2 (en) | Dynamic updates in an interactive programming environment | |
CN109271237B (zh) | 仿真控制方法和装置 | |
JP4925514B2 (ja) | 内外イベントドリブン方式によるプログラム実行制御方法、プログラム、実行制御装置および記録媒体 | |
Poirier et al. | Interactive multimodal system characterization in the internet of things context | |
CN112306493A (zh) | 热修复补丁生成方法、装置、存储介质及计算机设备 | |
CN109542303A (zh) | 触控设备及其响应方法、装置 | |
CN116400927B (zh) | 一种代码块转译方法、装置、电子设备及存储介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 13829132 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 13829132 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205N DATED 21/04/2015) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 13829132 Country of ref document: EP Kind code of ref document: A1 |