CN106815000A - A kind of code generating method and device - Google Patents
A kind of code generating method and device Download PDFInfo
- Publication number
- CN106815000A CN106815000A CN201510856929.9A CN201510856929A CN106815000A CN 106815000 A CN106815000 A CN 106815000A CN 201510856929 A CN201510856929 A CN 201510856929A CN 106815000 A CN106815000 A CN 106815000A
- Authority
- CN
- China
- Prior art keywords
- user
- user input
- input interface
- code
- information
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a kind of code generating method and device.Wherein method includes:User input interface is provided:The behavior intent information of user is received by the user input interface;The behavior intent information of user is parsed, corresponding executable code is generated according to analysis result;The executable code is performed, and to user feedback implementing result.The manual compiling mode of coding is changed to automatically generate by the technical scheme, therefore and no longer limited by the code levels of specific operational staff, only need to operational staff's input behavior intent information, such as start, terminate, performing the demand of the operation concrete operations of input special value, just corresponding executable code can quickly and easily be automatically generated, code building efficiency is not only increased, the selection standard of operational staff is also reduced, personnel cost has been saved.
Description
Technical field
The present invention relates to field of computer technology, and in particular to a kind of code generating method and device.
Background technology
With being continually changing for people's demand, in field of computer technology, the effect of programmer is indispensable.
Exploitation either in software, safeguard and test process, be more or less required for programmer, or understand
The personnel of the coding techniques code different to write complexity.But in many cases, it is necessary to be encoded
Technical staff limited by itself code levels, it is impossible to required code is write out, for example, in software
Testing field, the code levels of tester are often limited, and the coding water required by test frame
Flat again very high, if entering writing for line code using code levels technical staff high, cost is very high.
The content of the invention
In view of the above problems, it is proposed that the present invention overcomes above mentioned problem or at least part of to provide one kind
The code generating method and device that solve the above problems.
According to one aspect of the present invention, there is provided a kind of code generating method, including:There is provided user defeated
Incoming interface:The behavior intent information of user is received by the user input interface;Parse the behavior of user
Intent information, corresponding executable code is generated according to analysis result;The executable code is performed, and
To user feedback implementing result.
Alternatively, the offer user input interface includes:User input interface is provided on named web page;
When user accesses the named web page, user input interface is shown on the named web page.
Alternatively, the behavior intent information for receiving user by the user input interface includes:It is logical
Cross the character information that the user input interface receives user input, or the voice letter for receiving user input
Breath.
Alternatively, the behavior intent information for receiving user by the user input interface includes:It is logical
Cross the user input interface and receive the behavior intent information that user input meets preset format.
Alternatively, the behavior intent information of the parsing user includes:When the behavior intent information of user is
During text information, keyword is therefrom parsed;When the behavior intent information of user is voice messaging, first
Text information is converted into, keyword is being parsed from text information.
Alternatively, generating corresponding executable code according to analysis result includes:According to the key for parsing
Word inquires about default keyword database;Keyword and keyword pair are preserved in the keyword database
The execution logic information answered;The corresponding execution logic information of keyword is inquired from keyword database,
Corresponding executable code is generated according to corresponding execution logic information.
Alternatively, generating corresponding executable code according to analysis result includes:According to the key for parsing
Word inquires about default keyword database;Keyword and keyword pair are preserved in the keyword database
The executable code answered;The corresponding executable code of keyword is inquired from keyword database, when having
How corresponding multistage executable code carries out integrating the final executable code of generation during multiple keywords.
Alternatively, it is described to be included according to the analysis result corresponding executable code of generation:According to analysis result
Corresponding executable code is generated in internal memory;The execution executable code includes:In internal memory
Perform the executable code.
Alternatively, the method is further included:It is described executable in removing internal memory after being finished
Code.
According to another aspect of the present invention, there is provided a kind of code generating unit, including:Interface provides single
Unit, is adapted to provide for user input interface:Receiving unit, is suitable to be received by the user input interface and used
The behavior intent information at family;Code generating unit, is suitable to parse the behavior intent information of user, according to solution
Analysis result generates corresponding executable code;Code execution unit, is adapted for carrying out the executable code,
And to user feedback implementing result.
Alternatively, the interface provides unit, is suitable to provide user input interface on named web page;When
When user accesses the named web page, user input interface is shown on the named web page.
Alternatively, the receiving unit, is suitable to be received by the user input interface word of user input
Symbol information, or receive the voice messaging of user input.
Alternatively, the receiving unit, is suitable to meet by user input interface reception user input
The behavior intent information of preset format.
Alternatively, the code generating unit, is suitable to when the behavior intent information of user is text information,
Therefrom parse keyword;When the behavior intent information of user is voice messaging, word letter is first converted into
Breath, is parsing keyword from text information.
Alternatively, the code generating unit, is suitable to according to the default key of keyword query for parsing
Numerical data base;Keyword and the corresponding execution logic information of keyword are preserved in the keyword database;
It is suitable to inquire the corresponding execution logic information of keyword from keyword database, according to corresponding execution
Logical message generates corresponding executable code.
Alternatively, the code generating unit, is suitable to according to the default key of keyword query for parsing
Numerical data base;Keyword and the corresponding executable code of keyword are preserved in the keyword database;
The corresponding executable code of keyword is inquired from keyword database, it is multipair when there is multiple keywords
The multistage executable code answered carries out integrating the final executable code of generation.
Alternatively, the code generating unit, is suitable to be generated in internal memory according to analysis result and accordingly may be used
Perform code;The code execution unit, is suitable to perform the executable code in internal memory.
Alternatively, the code execution unit, is further adapted for after being finished, in removing internal memory
The executable code.
From the foregoing, technical scheme, has provided the user user input interface, and pass through
The behavior intent information that parsing user is input into the user input interface, it is corresponding according to analysis result generation
Executable code, it is possible to further perform the executable code and to user feedback implementing result.The skill
The manual compiling mode of coding is changed to automatically generate by art scheme, therefore simultaneously no longer by specific operational staff's
Code levels are limited, it is only necessary to operational staff's input behavior intent information, such as start, terminate, perform it is defeated
Enter the demand of the concrete operations such as the operation of special value, just can quickly and easily automatically generate corresponding executable
Code, not only increases code building efficiency, also reduces the selection standard of operational staff, has saved people
Member's cost.
Described above is only the general introduction of technical solution of the present invention, in order to better understand skill of the invention
Art means, and can be practiced according to the content of specification, and it is of the invention above and other in order to allow
Objects, features and advantages can become apparent, below especially exemplified by specific embodiment of the invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit are for this
Field those of ordinary skill will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment,
And it is not considered as limitation of the present invention.And in whole accompanying drawing, be denoted by the same reference numerals
Identical part.In the accompanying drawings:
Fig. 1 shows a kind of flow chart of code generating method according to an embodiment of the invention;
Fig. 2 shows a kind of structural representation of code generating unit according to an embodiment of the invention.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although being shown in accompanying drawing
The exemplary embodiment of the disclosure, it being understood, however, that may be realized in various forms the disclosure without
Should be limited by embodiments set forth here.Conversely, there is provided these embodiments are able to more thoroughly
Understand the disclosure, and can by the scope of the present disclosure it is complete convey to those skilled in the art.
Fig. 1 shows a kind of flow chart of code generating method according to an embodiment of the invention, such as schemes
Shown in 1, the method includes:
Step S110, there is provided user input interface.
Step S120, the behavior intent information of user is received by user input interface.
Step S130, parses the behavior intent information of user, corresponding executable according to analysis result generation
Code.
Step S140, performs executable code, and to user feedback implementing result.
It can be seen that, the method shown in Fig. 1 has provided the user user input interface, and by parsing user
In the behavior intent information of user input interface input, in generation, can perform according to analysis result generation accordingly
Code, it is possible to further perform the executable code and to user feedback implementing result.The technical scheme will
The manual compiling mode of coding is changed to automatically generate, therefore simultaneously no longer by the code levels of specific operational staff
Limited, it is only necessary to operational staff's input behavior intent information, such as start, terminate, performing input certain number
The demand of the concrete operations such as the operation of value, just can quickly and easily automatically generate corresponding executable code, no
Code building efficiency is improve only, the selection standard of operational staff is also reduced, personnel cost has been saved.
In one embodiment of the invention, in the method shown in Fig. 1, there is provided user input interface includes:
User input interface is provided on named web page;When user accesses named web page, on the named web page
Displaying user input interface.
Although giving the example that input interface is provided on named web page, this area in the present embodiment
Technical staff it is to be appreciated that in specific implementation, the webpage can both be shown in a browser,
Can be loaded in particular clients.Therefore, in other embodiments, it is also possible to application-specific
The modes such as software provide user input interface, and the present embodiment is not the presentation mode to user input interface
It is any limitation as and there is provided example, and user input interface is provided on named web page, is easy to user
Access, design is also more convenient, but security there may be certain limitation, therefore user can be according to reality
Demand carries out the selection of specific embodiment.
In one embodiment of the invention, in the method shown in Fig. 1, received by user input interface
The behavior intent information of user includes:The character information of user input is received by user input interface, or
Person receives the voice messaging of user input.
For example, the real needs of user are the startup red fox browser when test assignment starts, some are connect
Mouth is tested.Therefore user can be by input " starting red fox browser " these character informations or straight
Connect and say " starting red fox browser ", it is possible to demand is given expression in very blunt mode, by this hair
Bright technical scheme is translated into executable code.Specific character information or voice messaging can also be with
The mode of specific file is first write, and character information is such as stored in the text of .txt, voice messaging
Music file of .mp3 forms etc. is recorded as, then is input into by user input interface.
In one embodiment of the invention, in the method shown in Fig. 1, received by user input interface
The behavior intent information of user includes:User input is received by user input interface and meets preset format
Behavior intent information.
To improve the formation efficiency of executable code, can be by preset format, it is desirable to the row of user input
For intent information meets preset format.For example, " starting red fox browser " in previous embodiment, this is needed
Ask, user is likely to simply be expressed in actually expression, such as " open red fox ", it is so, right
The behavior intent information of user input is analyzed will become complicated, therefore, it can by preset format,
Startup setting form such as to specific software is " input ' startup ' ", and so can further be lifted can
The formation efficiency of code is performed, also more specification.
In one embodiment of the invention, in the method shown in Fig. 1, the behavior for parsing user is intended to letter
Breath includes:When the behavior intent information of user is text information, keyword is therefrom parsed;Work as user
Behavior intent information be voice messaging when, be first converted into text information, parsed from text information
Keyword.
For example, in the behavior intent information of " start red fox browser " this user input, just comprising " opening
It is dynamic " and " red fox browser " the two keywords.It is voice for the behavior intent information of user input
The situation of information, it is possible to use it is first converted to speech recognition technology text information, then is therefrom converted into
Keyword.
Specifically, corresponding executable code can be generated according to analysis result by following scheme:
Scheme one:According to the default keyword database of keyword query for parsing;Keyword database
In preserve keyword and the corresponding execution logic information of keyword;Pass is inquired from keyword database
The corresponding execution logic information of key word, corresponding executable code is generated according to corresponding execution logic information.
For example, user wishes that the executable code of generation is a test case, but implementation of test cases is also
Certain test logic is needed, therefore can be according to the pass parsed in the user intent information of user input
The corresponding execution logic information of key word generates corresponding executable code and is tested.
Scheme two, generating corresponding executable code according to analysis result includes:According to the key for parsing
Word inquires about default keyword database;Keyword is preserved in keyword database and keyword is corresponding
Executable code;The corresponding executable code of keyword is inquired from keyword database, when there is multiple
How corresponding multistage executable code carries out integrating the final executable code of generation during keyword.
For example, user is intended merely to perform starts red fox browser this operation, and have input and " start red fox
Browser " this user intent information, according to keyword therein " startup " and " red fox browser "
Corresponding executable code, generates final executable code and is capable of achieving to open after execution after being integrated
Get angry fox browser this operation.
In one embodiment of the invention, in the above method, can be held accordingly according to analysis result generation
Line code includes:Corresponding executable code is generated in internal memory according to analysis result;Perform executable generation
Code includes:Executable code is performed in internal memory.
Because executable code directly by machine recognition can therefore, it can be anticipated according to the user of user input
The analysis result of figure information directly generates executable code in internal memory, rather than is compiled using high-level programming language
The code write, eliminates in the prior art, after writing the codes such as test code using high-level programming language,
Also need to translate it in the machine or be construed to the process of machine language.
In one embodiment of the invention, the above method is further included:After being finished, remove
Executable code in internal memory.
Use is just lost after executable code is performed, at this moment can directly be removed executable in internal memory
Code.User is generally required in the prior art to be manually purged the redundant code in internal memory, is taken
Effort, and the method that the embodiment is provided just can directly be removed after executable code is finished,
It is to need to remove that the decision logic of complexity is not required to come which executable code in distinguishing internal memory, easily and effectively.
Fig. 2 shows a kind of structure chart of code generating unit according to an embodiment of the invention, such as schemes
Shown in 2, code generating unit 200 includes:
Interface provides unit 210, is adapted to provide for user input interface.
Receiving unit 220, is suitable to be received by user input interface the behavior intent information of user.
Code generating unit 230, is suitable to parse the behavior intent information of user, is generated according to analysis result
Corresponding executable code.
Code execution unit.Executable code is adapted for carrying out, and to user feedback implementing result.
It can be seen that, the device shown in Fig. 2 has provided the user user input interface, and by parsing user
In the behavior intent information of user input interface input, in generation, can perform according to analysis result generation accordingly
Code, it is possible to further perform the executable code and to user feedback implementing result.The technical scheme will
The manual compiling mode of coding is changed to automatically generate, therefore simultaneously no longer by the code levels of specific operational staff
Limited, it is only necessary to operational staff's input behavior intent information, such as start, terminate, performing input certain number
The demand of the concrete operations such as the operation of value, just can quickly and easily automatically generate corresponding executable code, no
Code building efficiency is improve only, the selection standard of operational staff is also reduced, personnel cost has been saved.
In one embodiment of the invention, in the device shown in Fig. 2, interface provides unit, is suitable to
User input interface is provided on named web page;When user accesses named web page, opened up on the named web page
Show user input interface.
In one embodiment of the invention, in the device shown in Fig. 2, receiving unit, be suitable to by with
Family input interface receives the character information of user input, or the voice messaging for receiving user input.
In one embodiment of the invention, in the device shown in Fig. 2, receiving unit, be suitable to by with
Family input interface receives the behavior intent information that user input meets preset format.
In one embodiment of the invention, in the device shown in Fig. 2, code generating unit is suitable to work as
When the behavior intent information of user is text information, keyword is therefrom parsed;When the behavior of user is intended to
When information is voice messaging, text information is first converted into, keyword is being parsed from text information.
In one embodiment of the invention, in said apparatus, code generating unit is suitable to according to parsing
The default keyword database of keyword query for going out;Keyword and key are preserved in keyword database
The corresponding execution logic information of word;It is suitable to be inquired from keyword database the corresponding execution of keyword to patrol
The information of collecting, corresponding executable code is generated according to corresponding execution logic information.
In one embodiment of the invention, in said apparatus, code generating unit is suitable to according to parsing
The default keyword database of keyword query for going out;Keyword and key are preserved in keyword database
The corresponding executable code of word;The corresponding executable code of keyword is inquired from keyword database,
When there is multiple keywords, how corresponding multistage executable code carries out integrating generation final executable generation
Code.
In one embodiment of the invention, in said apparatus, code generating unit is suitable to according to parsing
Result generates corresponding executable code in internal memory;Code execution unit, be suitable in internal memory perform can
Perform code.
In one embodiment of the invention, in said apparatus, code execution unit is further adapted for working as
After being finished, the executable code in internal memory is removed.
It should be noted that the specific embodiment of above-mentioned each device embodiment is implemented with foregoing corresponding method
The specific embodiment of example is identical, will not be repeated here.
In sum, the device technical scheme shown in Fig. 2, has provided the user user input
Interface, and by parse behavior intent information such as character information that user is input into the user input interface and
Voice messaging, generates corresponding executable code, it is possible to which further performing this can hold according to analysis result
Line code and to user feedback implementing result.Be changed to the manual compiling mode of coding automatically by the technical scheme
Generation, therefore simultaneously no longer limited by the code levels of specific operational staff, it is only necessary to operational staff's line of input
It is intent information, such as starts, terminates, performing the demand of the operation concrete operations of input special value,
Just corresponding executable code can be quickly and easily automatically generated, code building efficiency is not only increased, is also dropped
The low selection standard of operational staff, has saved personnel cost.
It should be noted that:
Algorithm and display be not solid with any certain computer, virtual bench or miscellaneous equipment provided herein
There is correlation.Various fexible units can also be used together with based on teaching in this.As described above,
It is obvious to construct the structure required by this kind of device.Additionally, the present invention is not also for any specific
Programming language.It is understood that, it is possible to use various programming languages realize the content of invention described herein,
And the description done to language-specific above is to disclose preferred forms of the invention.
In specification mentioned herein, numerous specific details are set forth.It is to be appreciated, however, that this
Inventive embodiment can be put into practice in the case of without these details.In some instances, not
Known method, structure and technology are shown specifically, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help understand in each inventive aspect
Or it is multiple, in above to the description of exemplary embodiment of the invention, each feature of the invention is sometimes
It is grouped together into single embodiment, figure or descriptions thereof.However, should not be by the disclosure
Method be construed to reflect following intention:I.e. the present invention for required protection requirement ratio is in each claim
The middle more features of feature be expressly recited.More precisely, as the following claims reflect
As, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows
Thus claims of specific embodiment are expressly incorporated in the specific embodiment, wherein each right
It is required that in itself all as separate embodiments of the invention.
Those skilled in the art are appreciated that can be carried out certainly to the module in the equipment in embodiment
Adaptively change and they are arranged in one or more equipment different from the embodiment.Can be with
Module or unit or component in embodiment is combined into a module or unit or component, and in addition may be used
To be divided into multiple submodule or subelement or sub-component.Except such feature and/or process or
Outside at least some in unit exclude each other, can be using any combinations to this specification (including companion
With claim, summary and accompanying drawing) disclosed in all features and so disclosed any method or
All processes or unit of person's equipment are combined.Unless expressly stated otherwise, this specification (including companion
With claim, summary and accompanying drawing) disclosed in each feature can it is identical by offers, equally or phase
Replace like the alternative features of purpose.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include it
Some included features are rather than further feature, but the group of the feature of different embodiments in its embodiment
Conjunction means to be within the scope of the present invention and formed different embodiments.For example, in following power
In sharp claim, the one of any of embodiment required for protection mode can make in any combination
With.
All parts embodiment of the invention can be realized with hardware, or be processed with one or more
The software module run on device is realized, or is realized with combinations thereof.Those skilled in the art should
Understand, basis can be realized using microprocessor or digital signal processor (DSP) in practice
The some or all functions of some or all parts in the code generating unit of the embodiment of the present invention.
The present invention is also implemented as some or all equipment for performing method as described herein
Or program of device (for example, computer program and computer program product).It is such to realize the present invention
Program can store on a computer-readable medium, or can have one or more signal shape
Formula.Such signal can be downloaded from internet website and obtained, or be provided on carrier signal, or
Person provides in any other form.
It should be noted that above-described embodiment the present invention will be described rather than limiting the invention,
And those skilled in the art can design replacement in fact without departing from the scope of the appended claims
Apply example.In the claims, should not be configured to any reference symbol being located between bracket will to right
The limitation asked.Word "comprising" does not exclude the presence of element or step not listed in the claims.It is located at
Word "a" or "an" before element does not exclude the presence of element as multiple.The present invention can be with
Realized by means of the hardware for including some different elements and by means of properly programmed computer.
If in listing the unit claim of equipment for drying, several in these devices can be by same
Hardware branch is embodied.The use of word first, second, and third does not indicate that any order.
These words can be construed to title.
The invention discloses A1, a kind of code generating method, wherein, the method includes:
User input interface is provided:
The behavior intent information of user is received by the user input interface;
The behavior intent information of user is parsed, corresponding executable code is generated according to analysis result;
The executable code is performed, and to user feedback implementing result.
A2, the method as described in A1, wherein, the offer user input interface includes:
User input interface is provided on named web page;
When user accesses the named web page, user input interface is shown on the named web page.
A3, the method as described in A1, wherein, it is described to receive user's by the user input interface
Behavior intent information includes:
The character information of user input is received by the user input interface, or receives user input
Voice messaging.
A4, the method as described in A1, wherein, it is described to receive user's by the user input interface
Behavior intent information includes:
The behavior intent information that user input meets preset format is received by the user input interface.
A5, the method as described in A1, wherein, the behavior intent information of the parsing user includes:
When the behavior intent information of user is text information, keyword is therefrom parsed;
When the behavior intent information of user is voice messaging, text information is first converted into, believed from word
Keyword is parsed in breath.
A6, the method as described in A5, wherein, corresponding executable code bag is generated according to analysis result
Include:
According to the default keyword database of keyword query for parsing;Protected in the keyword database
There are keyword and the corresponding execution logic information of keyword;
The corresponding execution logic information of keyword is inquired from keyword database, according to corresponding execution
Logical message generates corresponding executable code.
A7, the method as described in A5, wherein, corresponding executable code bag is generated according to analysis result
Include:
According to the default keyword database of keyword query for parsing;Protected in the keyword database
There are keyword and the corresponding executable code of keyword;
The corresponding executable code of keyword is inquired from keyword database, when there are multiple keywords
More corresponding multistage executable code carries out integrating the final executable code of generation.
A8, the method as any one of A1-A7, wherein,
It is described to be included according to the analysis result corresponding executable code of generation:According to analysis result in internal memory
Generate corresponding executable code;
The execution executable code includes:The executable code is performed in internal memory.
A9, the method as described in A8, wherein, the method is further included:
After being finished, the executable code in internal memory is removed.
The invention also discloses B10, a kind of code generating unit, wherein, the device includes:
Interface provides unit, is adapted to provide for user input interface:
Receiving unit, is suitable to be received by the user input interface behavior intent information of user;
Code generating unit, is suitable to parse the behavior intent information of user, corresponding according to analysis result generation
Executable code;
Code execution unit, is adapted for carrying out the executable code, and to user feedback implementing result.
B11, the device as described in B10, wherein,
The interface provides unit, is suitable to provide user input interface on named web page;When user accesses
During the named web page, user input interface is shown on the named web page.
B12, the device as described in B10, wherein,
The receiving unit, is suitable to be received by the user input interface character information of user input,
Or receive the voice messaging of user input.
B13, the device as described in B10, wherein,
The receiving unit, is suitable to meet preset format by user input interface reception user input
Behavior intent information.
B14, the device as described in B10, wherein,
The code generating unit, is suitable to, when the behavior intent information of user is text information, therefrom solve
Separate out keyword;When the behavior intent information of user is voice messaging, text information is first converted into,
Keyword is parsed from text information.
B15, the device as described in B14, wherein,
The code generating unit, is suitable to according to the default keyword database of keyword query for parsing;
Keyword and the corresponding execution logic information of keyword are preserved in the keyword database;It is suitable to from pass
The corresponding execution logic information of keyword is inquired in key numerical data base, according to corresponding execution logic information
Generate corresponding executable code.
B16, the device as described in B14, wherein,
The code generating unit, is suitable to according to the default keyword database of keyword query for parsing;
Keyword and the corresponding executable code of keyword are preserved in the keyword database;From number of keyword
According to the corresponding executable code of keyword is inquired in storehouse, when there is multiple keywords, how corresponding multistage can
Performing code carries out integrating the final executable code of generation.
B17, the device as any one of B10-B16, wherein,
The code generating unit, is suitable to generate corresponding executable code in internal memory according to analysis result;
The code execution unit, is suitable to perform the executable code in internal memory.
B18, the device as described in B17, wherein,
The code execution unit, is further adapted for after being finished, and that removes in internal memory described holds
Line code.
Claims (10)
1. a kind of code generating method, wherein, the method includes:
User input interface is provided:
The behavior intent information of user is received by the user input interface;
The behavior intent information of user is parsed, corresponding executable code is generated according to analysis result;
The executable code is performed, and to user feedback implementing result.
2. the method for claim 1, wherein the offer user input interface includes:
User input interface is provided on named web page;
When user accesses the named web page, user input interface is shown on the named web page.
3. the method for claim 1, wherein described reception by the user input interface is used
The behavior intent information at family includes:
The character information of user input is received by the user input interface, or receives user input
Voice messaging.
4. the method for claim 1, wherein described reception by the user input interface is used
The behavior intent information at family includes:
The behavior intent information that user input meets preset format is received by the user input interface.
5. the method for claim 1, wherein the behavior intent information of the parsing user includes:
When the behavior intent information of user is text information, keyword is therefrom parsed;
When the behavior intent information of user is voice messaging, text information is first converted into, believed from word
Keyword is parsed in breath.
6. a kind of code generating unit, wherein, the device includes:
Interface provides unit, is adapted to provide for user input interface:
Receiving unit, is suitable to be received by the user input interface behavior intent information of user;
Code generating unit, is suitable to parse the behavior intent information of user, corresponding according to analysis result generation
Executable code;
Code execution unit, is adapted for carrying out the executable code, and to user feedback implementing result.
7. device as claimed in claim 6, wherein,
The interface provides unit, is suitable to provide user input interface on named web page;When user accesses
During the named web page, user input interface is shown on the named web page.
8. device as claimed in claim 6, wherein,
The receiving unit, is suitable to be received by the user input interface character information of user input,
Or receive the voice messaging of user input.
9. device as claimed in claim 6, wherein,
The receiving unit, is suitable to meet preset format by user input interface reception user input
Behavior intent information.
10. device as claimed in claim 6, wherein,
The code generating unit, is suitable to, when the behavior intent information of user is text information, therefrom solve
Separate out keyword;When the behavior intent information of user is voice messaging, text information is first converted into,
Keyword is parsed from text information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510856929.9A CN106815000A (en) | 2015-11-30 | 2015-11-30 | A kind of code generating method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510856929.9A CN106815000A (en) | 2015-11-30 | 2015-11-30 | A kind of code generating method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106815000A true CN106815000A (en) | 2017-06-09 |
Family
ID=59155424
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510856929.9A Pending CN106815000A (en) | 2015-11-30 | 2015-11-30 | A kind of code generating method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106815000A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107562816A (en) * | 2017-08-16 | 2018-01-09 | 深圳狗尾草智能科技有限公司 | User view automatic identifying method and device |
CN108399131A (en) * | 2018-03-13 | 2018-08-14 | 百度在线网络技术(北京)有限公司 | Automatic test cases generation method and device |
CN108763068A (en) * | 2018-05-15 | 2018-11-06 | 福建天泉教育科技有限公司 | A kind of automated testing method and terminal based on machine learning |
CN109144496A (en) * | 2018-08-23 | 2019-01-04 | 广州慧通编程教育科技有限公司 | The generation method and generating means for program of testing and assessing |
CN109243249A (en) * | 2018-08-23 | 2019-01-18 | 广州慧通编程教育科技有限公司 | The generation method and generating means for program of testing and assessing |
CN109840072A (en) * | 2019-02-02 | 2019-06-04 | 北京字节跳动网络技术有限公司 | Information processing method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101950269A (en) * | 2010-08-30 | 2011-01-19 | 清华大学 | Automatic test method for software members |
CN102231106A (en) * | 2011-05-27 | 2011-11-02 | 王志勇 | Method for generating application code of mobile and general development platform |
CN103019928A (en) * | 2011-09-27 | 2013-04-03 | 北京新媒传信科技有限公司 | Automatic testing method and system |
CN103123591A (en) * | 2013-03-13 | 2013-05-29 | 上海智变网络科技有限公司 | Method for rapid designing corporate web portal according to corporate client characteristic requirements |
-
2015
- 2015-11-30 CN CN201510856929.9A patent/CN106815000A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101950269A (en) * | 2010-08-30 | 2011-01-19 | 清华大学 | Automatic test method for software members |
CN102231106A (en) * | 2011-05-27 | 2011-11-02 | 王志勇 | Method for generating application code of mobile and general development platform |
CN103019928A (en) * | 2011-09-27 | 2013-04-03 | 北京新媒传信科技有限公司 | Automatic testing method and system |
CN103123591A (en) * | 2013-03-13 | 2013-05-29 | 上海智变网络科技有限公司 | Method for rapid designing corporate web portal according to corporate client characteristic requirements |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107562816A (en) * | 2017-08-16 | 2018-01-09 | 深圳狗尾草智能科技有限公司 | User view automatic identifying method and device |
CN107562816B (en) * | 2017-08-16 | 2021-02-09 | 苏州狗尾草智能科技有限公司 | Method and device for automatically identifying user intention |
CN108399131A (en) * | 2018-03-13 | 2018-08-14 | 百度在线网络技术(北京)有限公司 | Automatic test cases generation method and device |
CN108763068A (en) * | 2018-05-15 | 2018-11-06 | 福建天泉教育科技有限公司 | A kind of automated testing method and terminal based on machine learning |
CN108763068B (en) * | 2018-05-15 | 2021-12-28 | 福建天泉教育科技有限公司 | Automatic testing method and terminal based on machine learning |
CN109144496A (en) * | 2018-08-23 | 2019-01-04 | 广州慧通编程教育科技有限公司 | The generation method and generating means for program of testing and assessing |
CN109243249A (en) * | 2018-08-23 | 2019-01-18 | 广州慧通编程教育科技有限公司 | The generation method and generating means for program of testing and assessing |
CN109243249B (en) * | 2018-08-23 | 2021-07-06 | 广州慧通编程教育科技有限公司 | Method and device for generating evaluation program |
CN109840072A (en) * | 2019-02-02 | 2019-06-04 | 北京字节跳动网络技术有限公司 | Information processing method and device |
CN109840072B (en) * | 2019-02-02 | 2022-05-06 | 北京字节跳动网络技术有限公司 | Information processing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106815000A (en) | A kind of code generating method and device | |
US20190163691A1 (en) | Intent Based Dynamic Generation of Personalized Content from Dynamic Sources | |
CN108171073B (en) | Private data identification method based on code layer semantic parsing drive | |
CN103177204B (en) | Password information tip method and device | |
CN108595921B (en) | Method and device for confusing character strings in source codes | |
US20170060826A1 (en) | Automatic Sentence And Clause Level Topic Extraction And Text Summarization | |
CN104751024B (en) | A kind of method and device that core source code is encrypted | |
CN110674415B (en) | Information display method and device and server | |
CN108121455A (en) | Identify method and device for correcting | |
CN110347901A (en) | A kind of searching method and a kind of electronic device using this method | |
CN106486118A (en) | A kind of sound control method of application and device | |
US8667296B1 (en) | Generating a password from a media item | |
Safaka et al. | Matryoshka: Hiding secret communication in plain sight | |
CN108228643A (en) | A kind of search method and system | |
CN103543905B (en) | The method and device at the interface of Voice command terminal | |
WO2018176813A1 (en) | Personalized page generation method and device | |
CN107704450A (en) | Natural language recognition equipment and natural language recognition method | |
CN103903623B (en) | A kind of information processing method and electronic equipment | |
Mukherjee et al. | Intent classification from code mixed input for virtual assistants | |
CN111898762B (en) | Deep learning model catalog creation | |
CN106845273A (en) | A kind of method and apparatus for protecting intelligent terminal local file | |
CN105890612A (en) | Voice prompt method and device in navigation process | |
CN106709287A (en) | Method and device of uncoating | |
US20060031072A1 (en) | Electronic dictionary apparatus and its control method | |
CN107015955A (en) | Document edit method and device |
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: 20170609 |