Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Code conversion method and device and storage medium

A code conversion and code technology, applied in the computer field, can solve the problem of converting Less code into corresponding html code, etc.

Pending Publication Date: 2020-08-11
HANGZHOU QULIAN TECH CO LTD
View PDF7 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But there is currently no way to convert the Less code into the corresponding html code

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
  • Code conversion method and device and storage medium
  • Code conversion method and device and storage medium
  • Code conversion method and device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] The application 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 related inventions, rather than to limit the invention. It should also be noted that, for ease of description, only parts related to the invention are shown in the drawings.

[0035] It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and embodiments.

[0036] figure 1 It is a flowchart of a code conversion method provided by an embodiment of the present invention.

[0037] Such as figure 1 As shown, in this embodiment, the present invention provides a code conversion method, including:

[0038] S11. After deleting all codes in the first sourc...

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 code conversion method and device and a storage medium. The code conversion method comprises the steps of all codes starting with double oblique bars and ending with line feed in a first source code being deleted, and then a first text being generated; deleting all the space characters in the first text to generate a second text; judging whether the numbers of the leftand right supports in the first text are equal or not, if yes, sequentially traversing the second text, and executing corresponding operation according to the matched support type to generate a node tree; and generating a second code according to the node tree and a set hierarchy and indentation rule. According to the method, different operations are performed according to different support typesso as to construct the node tree, and the second code is quickly and directly generated according to the node tree and corresponding rules.

Description

technical field [0001] The present application relates to the field of computer technology, and in particular to a code conversion method, device and storage medium. Background technique [0002] In the front-end field, when using standard CSS, it is necessary to define styles for multi-level nested elements, either using descendant selectors to define the nesting from outside to inside, or adding a class name or id to the element to define. Although this way of writing is simple, it is very inconvenient to maintain. The reason is that the CSS syntax is scattered and it is impossible to clearly understand the hierarchy and relationship between styles. Hence the birth of languages ​​like Less, a CSS preprocessor that allows you to define styles using nested syntax. In Less, the nesting rules make the CSS grammar scattered and the problems of unclear levels are easily solved. Nesting rules allow one selector to nest another selector, which makes it easier to design a streaml...

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 Applications(China)
IPC IPC(8): G06F40/154G06F16/903
CPCG06F40/154G06F16/90344
Inventor 蔡亮张帅李伟匡立中邱炜伟
Owner HANGZHOU QULIAN TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products