Conditional compilation preprocessing method and device

A conditional compilation and preprocessing technology, which is applied in code compilation, electrical digital data processing, software engineering design, etc., can solve the problems of high maintenance cost and increased resource consumption, and achieve the effect of reducing maintenance cost and resource consumption

Inactive Publication Date: 2017-06-13
PAX COMP TECH SHENZHEN
View PDF4 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The practice of copying code will result in high maintenance costs, a

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
  • Conditional compilation preprocessing method and device
  • Conditional compilation preprocessing method and device
  • Conditional compilation preprocessing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0023] like figure 1 As shown, in one embodiment, the internal structure of the terminal 102 is as follows figure 1 As shown, it includes a processor, an internal memory, a non-volatile storage medium, a network interface, a display screen and an input device connected through a system bus. Wherein, the non-volatile storage medium of the terminal 102 stores an operating system, and also includes a conditional compilation preprocessing device, and the conditional compilation preprocessing device is used to implement a conditional compilation preprocessing method. The processor is used to provide c...

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 provides a conditional compilation preprocessing method. The method comprises steps as follows: acquiring to-be-processed original program text; analyzing the original program text; acquiring a corresponding key word through matching according to a preset regular expression and outputting a corresponding marker; acquiring a corresponding event through matching according to the marker and preset conditional compilation syntax rules; determining a corresponding processing action according to a current state and the event; correspondingly processing the original program text according to the determined processing action; outputting processed target program text. According to the method, conditional compilation characteristics can still be used when the interpreted language is applied to development, so that not only is maintenance cost reduced, but also resource consumption is reduced. Besides, the invention further provides a conditional compilation processing device.

Description

technical field [0001] The invention relates to the field of computer processing, in particular to a conditional compilation preprocessing method and device. Background technique [0002] Traditional POS application development generally uses C language for development. C language is a compiled high-level language. Developers can make full use of the characteristics of conditional compilation and support multiple soft / hard configurations in the same project. However, when the application is running on a cross-platform The versions under the respective platforms must be generated separately, and the development is more difficult. An interpreted language (for example, WMLScript) can be cross-platform, and compared with C language, the development difficulty is relatively low, but the interpreted language does not have the feature of conditional compilation. [0003] In a typical POS software project, the same project often needs to support multiple configurations, and the app...

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
IPC IPC(8): G06F9/45
CPCG06F8/42G06F8/423G06F8/425G06F8/437
Inventor 涂钦魁
Owner PAX COMP TECH SHENZHEN
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products