The invention discloses a DSL (
Digital Subscriber Line)-based cross-platform universal network request expression mode and a DSL-based cross-platform universal network request implementation method, and relates to the technical field of cross-platform universal networks. The
system comprises a DSL design unit, the output end of the DSL design unit is provided with a cross-platform
compiler unit, the output end of the cross-platform
compiler unit is provided with a data
serialization unit, the output end of the data
serialization unit is provided with a continuous maintenance unit, and the DSL design unit comprises a keyword module, an operator module, an identifier module and a constant module. The cross-platform
compiler unit comprises a lexical analyzer module, a
semantic analyzer module and a code generator module. According to the method, the lexical analyzer is responsible for converting the
source code into a series of tokens, and the module identifies and classifies different tokens, so that the structure of the
source code can be understood by subsequent grammatical analysis and semantic analysis, an operator can understand the structure, and the code understanding efficiency is improved.