Supercharge Your Innovation With Domain-Expert AI Agents!

Preprocessing method and device for automatically expanding tcl language

A preprocessing and language technology, applied in electrical digital data processing, program control design, instruments, etc., can solve the problems of increasing the difficulty of TCL expansion, unable to achieve seamless connection, affecting the cost and convenience of TCL language use, and reducing The effect of expansion difficulty and expansion cost

Active Publication Date: 2016-03-16
苏州盛科科技有限公司
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, due to the structural requirements of TCL itself, programmers cannot realize the seamless connection between TCL and C, C++, JAVA and other languages. The extension module code must meet the structural requirements defined by TCL. Therefore, in order to correctly expand TCL, programmers must learn TCL Extension mechanism, TCL low-level application programming interface (API, Application Programming Interface), etc., and then modify or add the corresponding programming code in order to realize the integration with TCL. This cumbersome process seriously affects the cost and convenience of using TCL language.
[0005] like figure 1 Shown is the flow chart of the currently used TCL extension method, which completes the extension of TCL by writing function implementation code, debugging function implementation code, TCL adaptation layer development, code module and TCL integration, and generating TCL that supports extended functions However, this extension method not only needs to complete the code for function realization, but also needs to complete the development of the TCL adaptation layer, so the difficulty of TCL extension increases, and the extension cost is relatively high

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Preprocessing method and device for automatically expanding tcl language
  • Preprocessing method and device for automatically expanding tcl language
  • Preprocessing method and device for automatically expanding tcl language

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] The technical solutions of the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the present invention.

[0036] Such as figure 2 , image 3 As shown, the preprocessing method for automatically extending TCL language proposed by the present invention implements code by writing functions, and after the code is implemented in the debugging process, the automatic extension preprocessing device of the present invention is used to complete the preprocessing of TCL language, that is, The programmer only needs to complete the writing of the function module code, and then can use the preprocessing method and device provided by the present invention to complete the expansion of the TCL language.

[0037] Specifically, the preprocessing process of TCL is to map different types of programming languages ​​such as C, C++, JAVA, etc. (C language as an example below) through data type mapping in the data typ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses preprocessing method and device for automatically extending a TCL (Tool Command Language). A data type mapping module scans the global data structure of a TCL function realization code and the name and type of a read-write variable; an API (Application Programming Interface) scanning module of a programming language and an adaptive API generation module scan and process the outwards provided API interface of the TCL function realization code to automatically generate a corresponding TCL access interface and a TCL adaptation layer code; a global data read-write drive module of the programming language automatically processes a global variable to generate a TCL read-write interface; and a TCL extension generation module of the programming language carries out integrated compiling on the TCL function realization code to generate a corresponding TCL module, so that the extension of the TCL is completed. According to the invention, the seamless joint of the TCL and the programming language, such as a C language, a C++ language, a JAVA language, and the like, is realized, and the extension difficulty and extension cost of the TCL are reduced.

Description

Technical field [0001] The invention relates to a script programming language, in particular to a preprocessing method and device for automatically expanding TCL language. Background technique [0002] TCL (ToolCommandLanguage, tool command language) language is a scripting language, due to its simple syntax, powerful functions, cross-platform support and other advantages, it is widely used in rapid prototyping, script programming, GUI (GraphicalUserInterface, graphical user interface) and Testing and other aspects. The TCL language only supports one data structure: string. It treats all commands, all parameters of the command, the result of the command, and all variable data types as character strings. [0003] The characteristics of TCL include: everything is a command, including grammatical structure (for, if, etc.); everything can be redefined and overloaded; all data types can be regarded as strings, and the grammatical rules are quite simple; not only Provide event-driven ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/45
Inventor 杨曙军
Owner 苏州盛科科技有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More