CN109947423A - Code generating method, device, terminal and medium - Google Patents
Code generating method, device, terminal and medium Download PDFInfo
- Publication number
- CN109947423A CN109947423A CN201910239223.6A CN201910239223A CN109947423A CN 109947423 A CN109947423 A CN 109947423A CN 201910239223 A CN201910239223 A CN 201910239223A CN 109947423 A CN109947423 A CN 109947423A
- Authority
- CN
- China
- Prior art keywords
- software
- description information
- rule
- code
- terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The embodiment of the present disclosure discloses a kind of code generating method, device, terminal and medium, this method comprises: when client software is run at the terminal, software rules description information is obtained from server, wherein, the software rules description information is for recording the regular relevant description of software realization corresponding to code to be generated;Using the rule parsing program of client software local, the software rules description information is parsed, corresponding data model is obtained, wherein the data model is the object for coded description syntax rule;By running the data model to generate code corresponding with the software realization rule, wherein the code realizes the software realization rule for being performed.The embodiment of the present disclosure generates the code to realize Software Create rule based on software rules description information, improves the dynamic and availability of code building, solve the problems, such as that code building low efficiency, development cost are high in the prior art when software is run.
Description
Technical field
The embodiment of the present disclosure is related to Internet technical field more particularly to a kind of code generating method, device, terminal and Jie
Matter.
Background technique
With the development of Internet technology and intelligent terminal, people increasingly be unable to do without intelligent terminal, are available in intelligent end
The type for the client software installed on end is also further abundant, brings great convenience for daily life.Along with
The amplification of amount amount and the development of the relevant technologies, requirement of the user to these client softwares is also higher and higher, therefore, each to supply
It answers commercial city in the product for constantly optimizing oneself, meets the needs of more users so as to as much as possible, in competitive environment not
It is disconnected to win.
During client software is developed and is improved, developer usually requires to write source code, and source code passes through
Compiling generates compiled code, then runs on the terminal device, to realize the function of client software.And client software is to need
It to be constantly improve, especially in many client softwares, can exist and show again and light interactive interface element, such as
The text of displaying, list, picture are pressed with simply interactive element when there is the adjustment demand to these interface elements
Corresponding code is generated according to the above process, then can bring very big written in code workload to developer, not only will affect
Code building efficiency, while being also unfavorable for controlling development cost.
Disclosure
The embodiment of the present disclosure provides a kind of code generating method, device, terminal and medium, to solve code in the prior art
The problem that formation efficiency is low, development cost is high.
In a first aspect, the embodiment of the present disclosure provides a kind of code generating method, this method comprises:
When client software is run at the terminal, software rules description information is obtained from server, wherein the software
Rule description information is for recording the regular relevant description of software realization corresponding to code to be generated;
Using the rule parsing program of client software local, the software rules description information is parsed, is obtained
Corresponding data model, wherein the data model is the object for coded description syntax rule;
By running the data model to generate code corresponding with the software realization rule, wherein the code is used
In being performed to realize software realization rule.
Optionally, the software rules description information and rule parsing program are realized using field language-specific;
Correspondingly, the data model is the object for describing the syntax rule of field language-specific.
Optionally, the client software is run at the terminal, comprising:
When client software starts at the terminal, or after starting during operation.
Optionally, software rules description information is obtained from server, comprising:
Receive the software rules description information that server issues;Or
Software rules description information is downloaded from server according to predetermined period.
Optionally, the software realization rule includes at least one in following: the displaying rule of element, friendship on software interface
The mutually rule of rule and software specific function.
Optionally, before being parsed to the software rules description information, the method also includes:
The software rules description information currently obtained from server according to the acquisition time of software rules description information, detection
It whether is newest description information;
When being judged as newest description information, the operation parsed to the software rules description information is executed.
Optionally, using the rule parsing program of client software local, the software rules description information is solved
Analysis, comprising:
By way of explaining execution or Complied executing, the software is advised using the interpreter or compiler write in advance
Then description information is parsed.
Optionally, the method also includes:
The data model is stored in the memory of the terminal.
Second aspect, the embodiment of the present disclosure additionally provide a kind of code generating unit, which includes:
Software rules description information obtains module, for being obtained from server when client software is run at the terminal
Software rules description information, wherein the software rules description information is for recording software realization corresponding with code to be generated
The relevant description of rule;
Description information parsing module, for the rule parsing program using client software local, to the software rules
Description information is parsed, and corresponding data model is obtained, wherein the data model is for coded description syntax rule
Object;
Code generation module, for generating generation corresponding with the software realization rule by running the data model
Code, wherein the code realizes the software realization rule for being run.
Optionally, the software rules description information and rule parsing program are realized using field language-specific;
Correspondingly, the data model is the object for describing the syntax rule of field language-specific.
Optionally, it includes client software when starting at the terminal that the client software is run at the terminal, Huo Zheqi
During being run after dynamic.
Optionally, the software rules description information obtains module, comprising:
First acquisition unit, for when client software is run at the terminal, receiving the software rules that server issues
Description information;Or
Second acquisition unit, for being downloaded from server according to predetermined period when client software is run at the terminal
Software rules description information.
Optionally, the software realization rule includes at least one in following: the displaying rule of element, friendship on software interface
The mutually rule of rule and software specific function.
Optionally, described device further include:
Detection module, for carrying out parsing it to the software rules description information in the description information parsing module
Before, according to the acquisition time of software rules description information, whether the software rules description information that detection is currently obtained from server
For newest description information, and when being judged as newest description information, the software is advised by the description information parsing module
Then description information is parsed.
Optionally, the description information parsing module, is specifically used for:
By way of explaining execution or Complied executing, the software is advised using the interpreter or compiler write in advance
Then description information is parsed, and obtains corresponding data model.
Optionally, described device further include:
Preserving module, for the data model to be stored in the memory of the terminal.
The third aspect, the embodiment of the present disclosure additionally provide a kind of terminal, comprising:
One or more processing units;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processing units, so that one or more of places
Manage code generating method of the device realization as described in disclosure any embodiment.
Fourth aspect, the embodiment of the present disclosure additionally provide a kind of computer readable storage medium, are stored thereon with computer
Program realizes the code generating method as described in the disclosure any embodiment when program is executed by device.
When the software of the embodiment of the present disclosure at the terminal is run, the software rules description information based on acquisition, by parsing
Data model is obtained, and is generated by running the data model to realize the code of Software Create rule, to avoid soft
Part generates code to realize Software Create rule by way of generating source code when compiling, and developer can be with
When update the software rules description information according to demand, and be issued to terminal, then improve code building dynamic and
Availability solves the problems, such as that code building low efficiency, development cost are high in the prior art.
Detailed description of the invention
Fig. 1 is a kind of flow diagram for code generating method that the embodiment of the present disclosure provides;
Fig. 2 is the flow diagram for another code generating method that the embodiment of the present disclosure provides;
Fig. 3 is a kind of structural schematic diagram for code generating unit that the embodiment of the present disclosure provides;
Fig. 4 is a kind of hardware structural diagram for terminal that the embodiment of the present disclosure provides.
Specific embodiment
The disclosure is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the disclosure, rather than the restriction to the disclosure.It also should be noted that in order to just
Part relevant to the disclosure is illustrated only in description, attached drawing rather than entire infrastructure.
Optional feature and example are provided simultaneously in following each embodiments, each feature recorded in embodiment can carry out group
It closes, forms multiple optinal plans.
Fig. 1 is a kind of flow diagram for code generating method that the embodiment of the present disclosure provides, and the present embodiment is applicable to
The case where generating the code to realize software realization rule at the terminal according to demand, this method can be by code generating unit
It executes, which can be realized by the way of software and/or hardware, and can be integrated at the terminal, such as mobile phone or plate
The intelligent terminals such as computer.
As shown in Figure 1, the code generating method provided in the embodiment of the present disclosure may include:
S110, when client software is run at the terminal, from server obtain software rules description information, wherein institute
State software rules description information for record the regular relevant description of corresponding to code to be generated software realization.
The client software can for example be mounted in the client software in the terminals such as smart phone.Client software
It runs at the terminal, when referring to that client software is already installed in terminal, and starting at the terminal, or run after starting
When in the process, such as every time starting, or during user uses client software.
The software realization rule includes at least one in following: the displaying rule of element, rules of interaction on software interface
With the rule of software specific function.In general, having different elements, for example, picture, text on the displaying interface of client software
With list etc., and the software realization rule is usually to need the appearance shown on showing interface according to software design demand,
The relevant rule with displaying such as display location, color or sequence including each element, or the background picture and the color that show interface
Then.Certainly, in addition to this, it also may include to software specific function implementation rule, such as automatic replacement at the appointed time
Show background, or including showing the rules of interaction such as corresponding dynamic special efficacy based on specific trigger condition.The present embodiment
The particular content and form of software realization rule are not limited in any way.
In order to realize certain software realization rule, need to realize using code, namely need to generate corresponding code, when soft
Part can realize this software realization rule when executing code.The software rules description information be for record with it is to be generated
At the relevant description of the corresponding software realization rule of code.The software rules description information can be from the corresponding clothes of client software
Business device obtains, such as receives the software rules description information that server actively issues, or according to predetermined period under server
Carry software rules description information.
In a preferred embodiment, the software rules description information can use field language-specific DSL
(domain-specific language) is realized, is referred to for specific application area and is designed the computer language used.Tool
Body can be according to software realization rule, and is write according to the requirement of the field language-specific.
S120, using the rule parsing program of client software local, the software rules description information is parsed,
Obtain corresponding data model, wherein the data model is the object for coded description syntax rule.
When the software rules description information is realized using DSL, correspondingly, the rule parsing program is also using DSL
It realizes.Specifically, the rule and requirement according to DSL may be implemented, rule parsing program is write, and as client software
A part, or downloading, installation are at the terminal.Therefore, after obtaining software rules description information, rule parsing program
Software rules description information is parsed, parsing the result is that obtaining data model.Correspondingly, the data model is to be used for
The object of DSL syntax rule is described.
S130, by running the data model to generate and the corresponding code of software realization rule, wherein the generation
Code realizes the software realization rule for being performed.
Specifically, the data model generated can be stored in the memory of terminal, client software is obtained from memory
Data model is simultaneously run, and then generates code corresponding with software realization rule, there is code corresponding with software realization rule,
Client software can realize software realization rule by executing the code.
What needs to be explained here is that in the prior art, usually before client software operation, in particular to software
The compilation phase of code generates code, and a part as client software source code by DSL, user is needed to download peace
It is attached on mobile phone and realizes corresponding software bandwagon effect or function.When needing to be adjusted software according to demand, for example, it is right
The interface element for showing on software interface and gently interacting is shown adjustment again when, then need to re-use DSL compiling generation source
Code, user are also required to just be able to achieve specific displaying and function after re-downloading software or being updated software.This
Process is cumbersome, and dynamic is poor.Further, since the generation of source code is needed by DSL in the relevant structure of code building
With the restriction in rule, the quality that will lead to source code generation is uncontrollable.
And in the technical solution of the embodiment of the present disclosure, the generation of code be not in the compilation phase, but software transport
When row, developer only needs to change DSL software rules description information on the server and is issued to client, then client is soft
Part can obtain corresponding data model by parsing, and not need to generate software source code, to improve software
Dynamic improves the efficiency of code building, reduces cost of labor.In addition, generating data model only will receive in data
Rule restricts, and not will cause that code quality is uncontrollable, further improves the availability for generating code.
When the client software of the technical solution of the present embodiment at the terminal is run, the software rules based on acquisition describe letter
Breath obtains data model by parsing, and generates the code to realize Software Create rule by running the data model, from
And it avoids generating the code to realize Software Create rule by way of generating source code in software translating, and develop
Personnel can update the software rules description information according to demand at any time, and be issued to the client software in terminal, then
The dynamic and availability for improving code building, solve that code building low efficiency, development cost in the prior art are high to ask
Topic.
Fig. 2 is the flow diagram for another code generating method that the embodiment of the present disclosure provides, in above-described embodiment
It is extended based on each optinal plan, it can be in conjunction with optinal plan each in above-described embodiment.
As shown in Fig. 2, the code generating method that the embodiment of the present disclosure provides may include:
S210, when client software is run at the terminal, from server obtain software rules description information, wherein institute
State software rules description information for record the regular relevant description of corresponding to code to be generated software realization.
S220, according to the acquisition time of software rules description information, detection is currently retouched from the software rules that server obtains
State whether information is newest description information, when being judged as newest description information, executes S230.
Software rules description information is to be write by developer according to upgrading demand to client software and pass through service
Device is issued to the client in terminal, or actively downloaded from server by client.Client software once start or
Software rules description information is got during startup, be will do it parsing just to obtain corresponding data model, is then passed through
Operation data model generates code corresponding with software realization rule.Therefore, the software rules description letter for having parsed
Breath, which will not then repeat, executes parsing.Specifically, can be according to the acquisition time of software rules description information come to different soft
Part rule description information is identified, and has been parsed so which is distinguished, which is up-to-date information, when judging Current software
Rule description information is not newest description information, then need not execute the operation of parsing, to avoid repeating.
S230, explain execute or Complied executing by way of, using the interpreter or compiler write in advance to described
Software rules description information is parsed, and corresponding data model is obtained.
In the present embodiment, the interpreter write in advance or compiler can be used as the rule of client software local
Analysis program parses software rules description information.Wherein, the interpreter or compiler are realized using DSL.
S240, by running the data model to generate and the corresponding code of software realization rule, wherein the generation
Code realizes the software realization rule for being performed.
When the software of the technical solution of the present embodiment at the terminal is run, the software rules description information based on acquisition, warp
It crosses parsing and obtains data model, and generated by running the data model to realize the code of Software Create rule, to keep away
Exempt to generate the code to realize Software Create rule by way of generating source code in software translating, and developer
The software rules description information can be updated according to demand at any time, and be issued to terminal, then improve the dynamic of code building
State property and availability solve the problems, such as that code building low efficiency, development cost are high in the prior art.In addition, being advised according to software
Then the acquisition time of description information judges whether to need to parse Current software rule description information, avoids unnecessary
Repeated resolution further improves code building efficiency.
Fig. 3 is a kind of structural schematic diagram for code generating unit that the embodiment of the present disclosure provides, and the present embodiment is applicable to
The case where generating the code to realize software realization rule at the terminal according to demand.The code generating unit can use soft
The mode of part and/or hardware is realized, and is configured in terminal, such as the intelligent terminals such as mobile phone or tablet computer.
As shown in figure 3, the code generating unit that the embodiment of the present disclosure provides includes that software rules description information obtains module
301, description information parsing module 302 and code generation module 303, in which:
Software rules description information obtains module 301, for being obtained from server when client software is run at the terminal
Take software rules description information, wherein the software rules description information is real for recording software corresponding with code to be generated
Existing regular relevant description;
Description information parsing module 302 advises the software for the rule parsing program using client software local
Then description information is parsed, and obtains corresponding data model, wherein the data model is for coded description syntax rule
Object;
Code generation module 303, it is corresponding to the software realization rule for being generated by running the data model
Code, wherein the code realizes software realization rule for being run.
Optionally, the software rules description information and rule parsing program are realized using field language-specific;
Correspondingly, the data model is the object for describing the syntax rule of field language-specific.
Optionally, it includes client software when starting at the terminal that the client software is run at the terminal, Huo Zheqi
During being run after dynamic.
Optionally, the software rules description information obtains module 301, comprising:
First acquisition unit, for when client software is run at the terminal, receiving the software rules that server issues
Description information;Or
Second acquisition unit, for being downloaded from server according to predetermined period when client software is run at the terminal
Software rules description information.
Optionally, the software realization rule includes at least one in following: the displaying rule of element, friendship on software interface
The mutually rule of rule and software specific function.
Optionally, described device further include:
Detection module, for being parsed in the description information parsing module 302 to the software rules description information
Before, according to the acquisition time of software rules description information, detection is currently from the software rules description information that server obtains
No is newest description information, and when being judged as newest description information, by the description information parsing module 302 to described soft
Part rule description information is parsed.
Optionally, the description information parsing module 302, is specifically used for:
By way of explaining execution or Complied executing, the software is advised using the interpreter or compiler write in advance
Then description information is parsed, and obtains corresponding data model.
Optionally, described device further include:
Preserving module, for the data model to be stored in the memory of the terminal.
It is above-mentioned that code generating method provided by disclosure any embodiment can be performed based on code generating unit, have and holds
The corresponding functional module of row method and beneficial effect.
Fig. 4 is a kind of hardware structural diagram for terminal that the embodiment of the present disclosure provides.Below with reference to Fig. 4, it illustrates
Suitable for being used to realize the structural schematic diagram of the terminal 400 of the embodiment of the present disclosure.Terminal in the embodiment of the present disclosure may include but
Be not limited to such as mobile phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer),
The mobile terminal of PMP (portable media player), car-mounted terminal (such as vehicle mounted guidance terminal) etc. and such as number
The fixed terminal of TV, desktop computer etc..Terminal shown in Fig. 4 is only an example, should not be to the embodiment of the present disclosure
Function and use scope bring any restrictions.
As shown in figure 4, terminal 400 may include one or more processing units (such as central processing unit, graphics processor
Deng) 401, and the storage device 408 for storing one or more programs.Wherein, processing unit 401 can be according to being stored in
Program in read-only memory (ROM) 402 is loaded into the journey in random access storage device (RAM) 403 from storage device 408
Sequence and execute various movements appropriate and processing.In RAM 403, be also stored with terminal 400 operate required various programs and
Data.Processing unit 401, ROM 402 and RAM 403 are connected with each other by bus 404.Input/output (I/O) interface 405
It is also connected to bus 404.
In general, following device can connect to I/O interface 405: including such as touch screen, touch tablet, keyboard, mouse, taking the photograph
As the input unit 406 of head, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaker, vibration
The output device 407 of dynamic device etc.;Storage device 408 including such as tape, hard disk etc.;And communication device 409.Communication device
409, which can permit terminal 400, is wirelessly or non-wirelessly communicated with other equipment to exchange data.Although Fig. 4, which is shown, to be had respectively
The terminal 400 of kind device, it should be understood that being not required for implementing or having all devices shown.It can be alternatively real
Apply or have more or fewer devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description
Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium
On computer program, which includes the program code for method shown in execution flow chart.In such reality
It applies in example, which can be downloaded and installed from network by communication device 409, or from storage device 408
It is mounted, or is mounted from ROM 402.When the computer program is executed by processing unit 401, the embodiment of the present disclosure is executed
Method in the above-mentioned function that limits.
It should be noted that the above-mentioned computer-readable medium of the disclosure can be computer-readable signal media or meter
Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not
Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter
The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires
Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage
Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device,
Or above-mentioned any appropriate combination.In the disclosure, computer readable storage medium can be it is any include or storage journey
The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this
In open, computer-readable signal media may include in a base band or as the data-signal that carrier wave a part is propagated,
In carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to
Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable and deposit
Any computer-readable medium other than storage media, the computer-readable signal media can send, propagate or transmit and be used for
By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium
Program code can transmit with any suitable medium, including but not limited to: electric wire, optical cable, RF (radio frequency) etc. are above-mentioned
Any appropriate combination.
Above-mentioned computer-readable medium can be included in above-mentioned terminal;It is also possible to individualism, and it is unassembled
Enter in the terminal.
Above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are by the end
When end executes, so that the terminal:
When client software is run at the terminal, software rules description information is obtained from server, wherein the software
Rule description information is for recording the regular relevant description of software realization corresponding to code to be generated;
Using the rule parsing program of client software local, the software rules description information is parsed, is obtained
Corresponding data model, wherein the data model is the object for coded description syntax rule;
By running the data model to generate code corresponding with the software realization rule, wherein the code is used
In being performed to realize software realization rule.
The calculating of the operation for executing the disclosure can be write with one or more programming languages or combinations thereof
Machine program code, above procedure design language include object oriented program language-such as Java, Smalltalk, C+
+, it further include conventional procedural programming language-such as " C " language or similar programming language.Program code can
Fully to execute, partly execute on the user computer on the user computer, be executed as an independent software package,
Part executes on the remote computer or executes on a remote computer or server completely on the user computer for part.
In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN)
Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet service
Provider is connected by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use
The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box
The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually
It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse
Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding
The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction
Combination realize.
Being described in unit involved in the embodiment of the present disclosure can be realized by way of software, can also be by hard
The mode of part is realized.Wherein, the title of unit does not constitute the restriction to the unit itself under certain conditions, for example, the
One acquiring unit is also described as " when client software is run at the terminal, receiving the software rules that server issues
The unit of description information ".
Above description is only the preferred embodiment of the disclosure and the explanation to institute's application technology principle.Those skilled in the art
Member is it should be appreciated that the open scope involved in the disclosure, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic
Scheme, while should also cover in the case where not departing from design disclosed above, it is carried out by above-mentioned technical characteristic or its equivalent feature
Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed in the disclosure
Can technical characteristic replaced mutually and the technical solution that is formed.
Claims (11)
1. a kind of code generating method characterized by comprising
When client software is run at the terminal, software rules description information is obtained from server, wherein the software rules
Description information is for recording the regular relevant description of software realization corresponding to code to be generated;
Using the rule parsing program of client software local, the software rules description information is parsed, is corresponded to
Data model, wherein the data model is the object for coded description syntax rule;
By running the data model to generate code corresponding with the software realization rule, wherein the code is used for quilt
It executes to realize the software realization rule.
2. the method according to claim 1, wherein the software rules description information and rule parsing program are adopted
It is realized with field language-specific;
Correspondingly, the data model is the object for describing the syntax rule of field language-specific.
3. method according to claim 1 or 2, which is characterized in that the client software is run at the terminal, comprising:
When client software starts at the terminal, or after starting during operation.
4. method according to claim 1 or 2, which is characterized in that obtain software rules description information, packet from server
It includes:
Receive the software rules description information that server issues;Or
Software rules description information is downloaded from server according to predetermined period.
5. method according to claim 1 or 2, which is characterized in that the software realization rule includes at least one in following
It is a: displaying rule, the rule of rules of interaction and software specific function of element on software interface.
6. method according to claim 1 or 2, which is characterized in that carry out parsing it to the software rules description information
Before, the method also includes:
According to the acquisition time of software rules description information, whether the software rules description information that detection is currently obtained from server
For newest description information;
When being judged as newest description information, the operation parsed to the software rules description information is executed.
7. method according to claim 1 or 2, which is characterized in that using the rule parsing program of client software local,
The software rules description information is parsed, comprising:
By way of explaining execution or Complied executing, the software rules are retouched using the interpreter or compiler write in advance
Information is stated to be parsed.
8. method according to claim 1 or 2, which is characterized in that the method also includes:
The data model is stored in the memory of the terminal.
9. a kind of code generating unit characterized by comprising
Software rules description information obtains module, for obtaining software from server when client software is run at the terminal
Rule description information, wherein the software rules description information is for recording software realization rule corresponding with code to be generated
Relevant description;
Description information parsing module describes the software rules for the rule parsing program using client software local
Information is parsed, and corresponding data model is obtained, wherein the data model is pair for coded description syntax rule
As;
Code generation module, for generating code corresponding with the software realization rule by running the data model,
Wherein, which realizes the software realization rule for being run.
10. a kind of terminal characterized by comprising
One or more processing units;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processing units, so that one or more of processing fill
Set realization such as code generating method described in any one of claims 1-8.
11. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that program dress processed
Such as code generating method described in any one of claims 1-8 is realized when setting execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910239223.6A CN109947423A (en) | 2019-03-27 | 2019-03-27 | Code generating method, device, terminal and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910239223.6A CN109947423A (en) | 2019-03-27 | 2019-03-27 | Code generating method, device, terminal and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109947423A true CN109947423A (en) | 2019-06-28 |
Family
ID=67011928
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910239223.6A Pending CN109947423A (en) | 2019-03-27 | 2019-03-27 | Code generating method, device, terminal and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109947423A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110764740A (en) * | 2019-09-18 | 2020-02-07 | 北京你财富计算机科技有限公司 | Information calling method and device based on modular decoupling and electronic equipment |
CN110941427A (en) * | 2019-11-15 | 2020-03-31 | 珠海豹趣科技有限公司 | Code generation method and code generator |
CN112711409A (en) * | 2019-10-25 | 2021-04-27 | 杭州海康威视数字技术股份有限公司 | Application program development and operation method and system and intelligent analysis equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102289375A (en) * | 2011-09-02 | 2011-12-21 | 中兴通讯股份有限公司 | Code generation method and system |
CN102929646A (en) * | 2011-12-09 | 2013-02-13 | 江西省电力公司信息通信中心 | Application program production method and device |
CN108399072A (en) * | 2017-02-06 | 2018-08-14 | 腾讯科技(深圳)有限公司 | Five application page update method and device |
CN108829395A (en) * | 2018-06-19 | 2018-11-16 | 中国电子科技集团公司第四十研究所 | A kind of signal-oriented driver code automatic generation method and device |
-
2019
- 2019-03-27 CN CN201910239223.6A patent/CN109947423A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102289375A (en) * | 2011-09-02 | 2011-12-21 | 中兴通讯股份有限公司 | Code generation method and system |
CN102929646A (en) * | 2011-12-09 | 2013-02-13 | 江西省电力公司信息通信中心 | Application program production method and device |
CN108399072A (en) * | 2017-02-06 | 2018-08-14 | 腾讯科技(深圳)有限公司 | Five application page update method and device |
CN108829395A (en) * | 2018-06-19 | 2018-11-16 | 中国电子科技集团公司第四十研究所 | A kind of signal-oriented driver code automatic generation method and device |
Non-Patent Citations (1)
Title |
---|
王博等: "自动代码生成技术的发展现状与趋势", 《西安邮电大学学报》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110764740A (en) * | 2019-09-18 | 2020-02-07 | 北京你财富计算机科技有限公司 | Information calling method and device based on modular decoupling and electronic equipment |
CN112711409A (en) * | 2019-10-25 | 2021-04-27 | 杭州海康威视数字技术股份有限公司 | Application program development and operation method and system and intelligent analysis equipment |
CN112711409B (en) * | 2019-10-25 | 2024-06-04 | 杭州海康威视数字技术股份有限公司 | Application program development and operation method, system and intelligent analysis equipment |
CN110941427A (en) * | 2019-11-15 | 2020-03-31 | 珠海豹趣科技有限公司 | Code generation method and code generator |
CN110941427B (en) * | 2019-11-15 | 2023-10-20 | 珠海豹趣科技有限公司 | Code generation method and code generator |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109062563B (en) | Method and device for generating page | |
CN109375918A (en) | Interface rendering method, device, electronic equipment and the storage medium of small routine | |
CN109460233A (en) | Primary interface display update method, device, terminal device and the medium of the page | |
CN110069308A (en) | The page starts method, apparatus, electronic equipment and storage medium | |
CN108962244A (en) | Method and apparatus for sending information | |
CN109947423A (en) | Code generating method, device, terminal and medium | |
CN110209315A (en) | The display methods of character, device, electronic equipment and storage medium in user interface | |
CN109992732A (en) | Information sharing method, device, electronic equipment and storage medium | |
CN109815105A (en) | Applied program testing method and device based on Btrace | |
CN113204425B (en) | Method, device, electronic equipment and storage medium for process management internal thread | |
CN111324342A (en) | Method, device, medium and electronic equipment for generating interface layer code | |
CN107463406A (en) | Issue the method and electronic equipment of Mobile solution | |
CN109408481A (en) | Update method, device, electronic equipment and the readable medium of log collection rule | |
CN109344330A (en) | Information processing method and device | |
CN110221877A (en) | A kind of operation method of application program, device, electronic equipment and storage medium | |
CN109471647A (en) | A kind of update method of data, device, electronic equipment and readable medium | |
CN111338666A (en) | Method, device, medium and electronic equipment for realizing application program upgrading | |
CN107347093A (en) | Collocation method and device for distributed server system | |
CN109981546A (en) | The method and apparatus for obtaining the far call relationship between application module | |
CN109683992A (en) | Method and apparatus for managing object | |
CN109669720B (en) | Chain type asynchronous request processing method and device based on Promise and electronic equipment | |
CN111752644A (en) | Interface simulation method, device, equipment and storage medium | |
CN110262841A (en) | The method and apparatus that a kind of pair of bytecode is enhanced | |
CN112596729A (en) | Target application interface generation method and device, readable medium and electronic equipment | |
CN110209591A (en) | Picture searching method, apparatus, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190628 |