Mixed-Language Compilation Using a Micro-Language AST Bridge

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Complex keywords and syntax in programming languages create barriers for novice programmers, and implementing business logic results in complex program code, hindering comprehension and user experience.

Innovation Solution

A method and system for recognizing mixed languages that involves writing a micro-language using user-defined keywords, converting it to a domain-specific language, parsing to obtain a mixed abstract syntax tree, and performing machine code compilation.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Extent of automation

If complex keywords and syntax are used in programming languages, then implementation capability is improved, but ease of operation deteriorates

Engineering Contradiction:
Improveimplementation capabilityVSAvoidease of programming
Core Design Contradiction:
Extent of automationVSEase of operation

Solution Approach 1:

The patent segments the programming language into multiple layers: a simplified user-facing language with domain-specific keywords, and an underlying complex language handled by the compiler. This segmentation allows users to write simple code while the system handles complexity in the background.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces an intermediary compilation system that translates between the simplified user language and the complex implementation language. The compiler acts as a mediator, converting domain-specific keywords into appropriate programming constructs without exposing complexity to users.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Adaptability or versatility

If complex business logic is implemented, then functionality is improved, but device complexity increases

Engineering Contradiction:
Improvebusiness logic capabilityVSAvoidprogram code complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent segments business logic into domain-specific concepts represented by simple keywords, separating the complexity of implementation details from the simplicity of business intent. This allows complex functionality to be expressed through simple, readable code.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent changes the parameter of language complexity by introducing a simplified syntax with domain-specific keywords. The same complex functionality is achieved, but the code representation changes from complex to simple, improving readability while maintaining capability.

Inventive Principle:
Principle #35Parameter changes

3Ease of operation

If simplified language is used, then ease of operation is improved, but manufacturing precision deteriorates

Engineering Contradiction:
Improveease of programmingVSAvoidcompilation accuracy
Core Design Contradiction:
Ease of operationVSManufacturing precision

Solution Approach 1:

The patent incorporates feedback mechanisms in the compilation process to verify that simplified keywords correctly map to intended programming constructs. The compiler checks and validates the translation, ensuring accuracy despite the simplified input language.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The compiler acts as an intelligent intermediary that preserves precision during translation. It maintains accurate mapping between simplified keywords and complex programming constructs, ensuring that the simplified language does not lose semantic precision.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS20250355650A1Method and system for recognizing mixed languages
Publication Date: 2025.11.20 GUANGZHOU YUNBIAOJU NETWORK TECHNOLOGY CO LTD
  • US20250355650A1 patent drawing
  • US20250355650A1 patent drawing

AI summary

This application relates to the field of language compilation technology and discloses a method and system for recognizing mixed languages. The method includes: obtaining a micro-language written by a user using keywords within the user's business domain based on a preset programming language strategy; obtaining a domain-specific language corresponding to the micro-language; parsing the domain-specific language and the micro-language and obtaining a mixed abstract syntax tree based on the parsing results; and using the mixed abstract syntax tree to obtain machine code corresponding to the micro-language. By comparing the first and second abstract syntax trees and comparing with historical data, the structure of the mixed abstract syntax tree is optimized, accurate compilation from micro-language to machine code is achieved, and optimization of micro-language writing is also realized. Finally, a simple language compilation environment is provided for beginners in language compilation.