Method and converter for converting high level language to other high level languages
A high-level language and converter technology, applied in the field of data processing, can solve the problems of users being impatient, the source language and target language are different, the target language is not readable and maintainable, etc., to achieve a clear format and easy to use. Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0053] Embodiment 1, a high-level language converter, its position in the whole system is as follows figure 1 shown; used to convert the source language to the target language description.
[0054] In this embodiment, the source language ST is a structured programming language for industrial control specified by IEC61131-3, similar to the PASCAL language, which is currently one of the international general industrial control programming standard languages; the target language is well known The C language, which is widely supported by the processor industry, can easily obtain C compilers for various platforms. The source language and target language used for conversion in practical applications are not limited to this embodiment.
[0055] The high-level language converter is as figure 2 As shown, it includes: a lexical analysis device, a syntax analysis device, a semantic analysis device and a target language generation device.
[0056] The lexical analysis device is used t...
Embodiment 2
[0162] Embodiment 2. A method for converting a high-level language into other high-level languages, said method comprising the following steps:
[0163] A. According to the ASCII code sequence output by the source language editor, generate ASCII sequence combinations with attributes one by one, and proceed to step B;
[0164] B, according to source language grammatical structure, obtain LR (1) analysis table by the described ASCII sequence combination with attribute, generate grammatical analysis tree, carry out step C;
[0165] C. Verify the validity of the syntax analysis tree, and proceed to step D after the verification is qualified;
[0166] D. Generate an equivalent target language description with readability and maintainability according to the verified syntax analysis tree; end.
[0167] In this embodiment, step D specifically includes:
[0168] Perform post-order traversal on the verified parse tree, and generate the target language description corresponding to eac...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com