CN109710225A - Program language edit methods - Google Patents
Program language edit methods Download PDFInfo
- Publication number
- CN109710225A CN109710225A CN201711246896.1A CN201711246896A CN109710225A CN 109710225 A CN109710225 A CN 109710225A CN 201711246896 A CN201711246896 A CN 201711246896A CN 109710225 A CN109710225 A CN 109710225A
- Authority
- CN
- China
- Prior art keywords
- function
- program language
- variable
- editor
- pane
- 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
- 238000000034 method Methods 0.000 title claims abstract description 32
- 230000006870 function Effects 0.000 claims abstract description 92
- 238000006073 displacement reaction Methods 0.000 claims description 9
- 238000005516 engineering process Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000004590 computer program Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 230000001151 other effect Effects 0.000 description 1
Abstract
The present invention provides a kind of program language edit methods, it is to provide an edition interface, pane and grammer editor's pane are selected including grammer, display represents the selection label and its semantic description of a variable or a function in grammer selection pane, for user by grammer selection pane select and click be intended to using variable or function, variable or function are shown in grammer editor's pane further to be edited, whereby, the present invention can be while user clicks selection variable or function or further editor, show the grammer and semanteme of program language, it is watched for user, facilitate the content that user is familiar with program language, it can watch at any time and the previous edited program language content of fast understanding, improve user's study, the efficiency of prehension program language, reduce setback in study sense.
Description
Technical field
The present invention relates to a kind of program language edit methods.
Background technique
Program language is the formal language for defining computer program, is used to issue instruction to computer.Program language
Description can be divided into grammer and semanteme, grammer refers in program language, the combination of which symbol or text be correctly,
And semanteme is then the explanation for program language.
At present there are many program language editing machine can auxiliary program language design teacher's editorial language, these program words
Speech editing machine can provide that such as grammer is highlighted, grammer folds, keyword is automatically performed, finds, replacing, spell check, code one
The functions such as cause property inspection, that is to say, that existing program language editing machine is mostly for assistant designer with correct [grammer]
Editorial language, but especially [semanteme] of program language is not illustrated.
However, the beginner of many program languages is not only also unfamiliar with [grammer] of program language, or even can not yet
It is understood completely [semanteme] of program language, therefore existing program language editing machine is still not friendly enough for program language beginner
, often allow program language beginner to feel setback.
Summary of the invention
In view of this, semantic and syntax format journey can be prompted user the main purpose of the present invention is to provide a kind of
Sequence language edit methods.
In order to reach above and other purpose, the present invention provides a kind of program language edit methods, comprising: provides an editor
Interface, the edition interface include grammer selection pane and a grammer editor's pane, and grammer selection pane shows multiple difference
Represent the selection label and its semantic description of a variable or a function;After the selection label is clicked, the grammer editor's pane
Variable/function editor's window of the corresponding variable of display one or function, the variable/function editor's window include a corresponding variable
Or the program language area in the variable of function/function format area and a corresponding variable/function format area, the variable/function format
Area shows format corresponding to the variable or function and including an at least input field;An input is received from the input field
Value;The program language area shows a corresponding program language according to the format and the input value of the variable or function.
Based on above-mentioned design, user can read simultaneously program word in edition interface during editorial language
Speech, its syntax format and its semantic description, and it is matching display that program word, which mentions syntax format, compared to existing program language
Editing machine only individually shows program language, and design of the invention allows user after having edited multiple groups variable/function, more
It is readily understood upon format and its semanteme corresponding to previous edited variable/function, to facilitate program editing beginner
Learn, the editing operating of prehension program language, reduces its setback in study sense.
The detailed content of other effects and embodiment for the present invention, cooperation schema are described as follows.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The some embodiments recorded in application, for those of ordinary skill in the art, without creative efforts,
It can also be obtained according to these attached drawings other attached drawings.
Fig. 1 is the edition interface schematic diagram of present procedure language edit methods;
Fig. 2 to Figure 11 is the continuous operation schematic diagram of present procedure language edit methods.
Symbol description
10 grammers select pane 225 to be displaced label
11 selection 23 parameters of label/function editor's windows
12 231 parameters of semantic description/function format area
13 bookmark, 232 program language area
The 14 selection 233 sub- panes of grammer editor of label
20 grammer editor's pane, 234 input field
21 default input areas 235 are displaced label
22 parameters/30 menu pane of function editor window
221 parameters/31 preset content label of function format area
Translate button in 222 program language areas 40
223 newly-increased 50 complete routine language panes of label
224 input fields
Specific embodiment
The present embodiment provides a kind of program language edit methods, as shown in Figure 1, being to run computer journey with electronic computer
Sequence product, and its edition interface is shown by screen or similar device, electronic calculator, which is operated, for user executes program language volume
The method of collecting, edits and writes program language, different according to the type of electronic calculator when user operates electronic calculator, makes
User may be operated with mouse, keyboard, Trackpad, Touch Screen or other input/output devices.
The program language edit methods of the present embodiment are executed, including an edition interface is provided, as shown in Figure 1, the editor connects
Mouth includes grammer selection pane 10 and a grammer editor's pane 20, and the grammer selection display of pane 10, which is available for users to, to be selected to use
Program language grammer, specifically include multiple selection labels 11 and its semantic description for respectively representing a variable or a function
12, wherein variable and function are the symbol arranged in a manner of specific combination, are free of other variables or letter in each variable
Formula, but may then contain other variables or function in a function;The content of selection label 11 and semantic description 12 is each other
Match, the content in semantic description 12 can prompt and illustrate the meaning or interior of the variable shown or function in corresponding selection label 11
Hold, clicks selection label 11 for user and select, wherein the program language edited may have a variety of different variables and letter
Formula, be quickly found out for the convenience of the users be intended to using target, grammer selection pane in may further include it is multiple with function,
The bookmark 13 that type is classified, the parameter bookmark of example as shown in figure 1 and function bookmark, each bookmark can respectively correspond multiple selections
Grammer is selected displayable selection label 11 and its semantic description in pane 10 by label 11 and its semantic description, these bookmarks 13
12 classification make the selection label 11 that a part is once only shown in grammer selection pane 10.
Grammer editor's pane 20 shows that user has edited the program language write or will edited at present, clear for user
It lookes at and further edits.In the case of user not yet clicks selection label 11, as shown in Figure 1, grammer editor's pane 20 is only
There is one default input area 21 of display.
Referring to FIG. 2, user clicks one of selection label 11, such as clicks represent variable a surname in the present embodiment
The selection label 11 of announcement, grammer editor's pane 20 are to show a corresponding selection label 11 at default input area 21 in original show
Variable/function editor window 22, default input area, which then arranges, is shown in 22 lower section of variable/function editor window, the variable/function editor
Window 22 includes variable/function format area 221 of a corresponding variable or function and the journey in a corresponding variable/function format area
Sequence language area 222, in addition, the variable/function editor window 22 further includes having a newly-increased label 223.Variable/function format area 221
Format corresponding to the variable or function of display corresponding selection label 11, and including one or more input field 224, input field
The semantic input value for meeting the input field 224 is filled in 224 in advance, the form of the input value may be character string, numerical value, cloth
Value of, undefined, null value or other possible values, wherein format corresponding to variable or function is to be intended to compile according to user
The program language type volume write is defined, such as the program language of HTML, Java Script or other types, make variable/
The variable or the corresponding format of function that show in function format area 221 meet the format specification or grammer of this kind of program language standard
Content.Referring to FIG. 3, edition interface shows a menu pane 30, the menu pane 30 when user clicks input field 224
In be loaded with multiple preset content labels 31 for respectively corresponding a preset content, be available for users to click, when user click wherein
One preset content label 31, as shown in figure 4, preset content corresponding to the preset content label 31 clicked is entered simultaneously
It is shown in input field 224.The content shown by the input value or preset content label 31 of 224 pre-fill of input field, can be to
The format for the input value that user prompts the input field 224 that can insert.
Please refer to Fig. 4 and Fig. 5, user except 224 pre-fill of input field input value and preset content label 31 it is interior
Except appearance, after user can also click input field 224, other input values is inserted voluntarily with keyboard or similar device, are allowed defeated
Enter field 224 and receive the custom input value of user, and is not necessarily limited to the content of preset content label 31.
Fig. 5 and Fig. 6 are please referred to, each input field 224 inputs after the completion of setting, and user can click newly-increased label
223, program language area 222 is the format and input field 224 according to the variable shown or function in variable/function format area
Received input value shows a corresponding program language.Wherein, program language shown by program language area 222 is also possible to
All or part (such as only corresponding to the part of input field) is available for users to editor, and user can click program language
Program language in area 222, and modify in such a way that keyboard or similar device are directly keyed in.
Fig. 6 and Fig. 7 are please referred to, user can also further click on the function bookmark of grammer selection pane 10, and click it
Middle to represent the selection label 14 for establishing function, grammer editor's pane 20, which is shown in script, shows selection mark at default input area 21
Variable/function editor window 23 corresponding to label 14, default input area 21, which then arranges, is shown in 23 lower section of variable/function editor window,
The corresponding variable in variable/function format area 231, one of the variable/function editor window 23 including a corresponding variable or function/
The program language area 232 in function format area and the sub- pane 233 of a grammer editor, variable/function format area 231 show corresponding selection
Format corresponding to the variable or function of label 14, and including one or more input field 234, it can be set in input field 234
It is fixed to be filled with the semantic input value for meeting the input field 234 in advance.Wherein, program language area 232 is according to variable or the lattice of function
The program language of the input value real-time display editor of formula and input field 234 input, when user clicks input field 234 and key
When entering input value, the program language shown in program language area 232 is changed according to the input value real-time perfoming of user's input.Language
The sub- pane 233 of method editor is located in program language area 232, and user can click the sub- pane 233 of grammer editor, as shown in figure 8, in advance
It is shown in the sub- pane 233 of grammer editor if input area 21 changes, referring to FIG. 9, user can further click on arbitrary choosing
Select label, such as the selection label 11 of variable bookmark, the sub- pane 233 of grammer editor be show corresponding selection label 11 variable or
The variable of function/function sub- editor window 24, is further edited for user.
In addition, user can not show that variable/function editor's window any position is clicked in grammer editor's pane 20, example
Such as between any two variables/function editor's window or variable/function editor's window lower section, the i.e. corresponding institute of grammer editor's pane 20
The position of click shows default input area 21, in user is subsequent further click on arbitrary selection label when, in default input
Area shows the variable/function editor's window for corresponding to selection label.
Fig. 9 and Figure 10 are please referred to, variable/function editor's window also comprises displacement label 225,235, e.g. shifts up
Label, when user click displacement label 235 when, be loaded with the displacement label to dependent variable/function editor window 23 and other changes
Amount/function editor's window relative position will change, be e.g. loaded with the displacement label variable/function editor window 23 and its
The variable of top/22 position of function editor window is exchanged, and the variable for being loaded with the displacement label/function editor window 23 is moved up,
It is available for users to and adjusts putting in order for each parameter/function editor's window using displacement label 225,235.
Fig. 9 and Figure 11 are please referred to, edition interface also comprises a translation button 40, when user clicks the translation button
40, edition interface shows a complete routine language pane 50, all variables/function editor window 22 in grammer editor's pane 20,
The program language shown in 23 is sequentially shown in complete routine language pane 50, that is, completes the editor of program language, user can
Content shown in complete routine language pane 50 is clicked and clicked, is replicated or unloading is utilized.
In addition to the implementation, in addition also a custom label can be arranged at selection label 11 or bookmark 13 in the present invention, in
User generates and shows that the interface for user's input, the content storage that user is inputted are another newly-increased after clicking
Select label, or can after user clicks by user in advance prior to the content storage of grammer editor's pane centre circle choosing or by language
Full content storage in method editor's pane, increases newly as another selection label, and it is custom with newly-increased selection label to provide user
Use function.
Using above content, the present invention provides a kind of program language edit methods, and user can use mouse or similar
Operation interface carry out clicking operation, clicking needs variable to be used and function, is directly displayed out using edition interface correct complete
Whole grammer, can reduce program language Edit Error caused by input error or gaps and omissions symbol, and assisting user editor simultaneously writes
Program writing language.
Secondly, the present invention is in edition interface, while showing program language, syntax format and its semantic description, and in
Preset input content is provided in the input field of variable and function, the variable that user can be prompted currently used and function are in journey
Representative semanteme in sequence language with quick review and can also understand the program word of previous written during user edits
The meaning of speech, assisting user generate the memory of association, the study that the beginner that can reduce program language meets with when study
Door mitigates setback, and facilitates Fast Learning program language.
In conclusion present procedure language edit methods can not only directly help user to complete needed for program language
Grammer can also give the considerable degree of prompt of user and be assisted on semantic level, editor and of program language can be improved
Efficiency is practised, actually practice industry is looked forward to educational circles.
Embodiment described above and/or embodiment are only the preferred embodiments to illustrate to realize the technology of the present invention
And/or embodiment, not the embodiment of the technology of the present invention is made any form of restriction, any those skilled in the art
Member changes or is modified to other equivalent when can make a little in the range for not departing from technological means disclosed in the content of present invention
Embodiment, but still should be regarded as and the substantially identical technology or embodiment of the present invention.
Claims (10)
1. a kind of program language edit methods characterized by comprising
An edition interface is provided, which includes grammer selection pane and a grammer editor's pane, which selects window
Lattice show multiple selection labels and its semantic description for respectively representing a variable or a function;
After the selection label is clicked, which shows that variable/function of a corresponding variable or function is compiled
Window is collected, the variable/function editor's window includes variable/function format area and corresponding change of a corresponding variable or function
Program language area, amount/function format area, the variable/function format area show format corresponding to the variable or function and packet
Include an at least input field;
An input value is received from the input field;
The program language area shows a corresponding program language according to the format and the input value of the variable or function.
2. program language edit methods as described in claim 1, which is characterized in that when the selection label is clicked, until
A few input field, that is, pre-fill one meets the semantic input value of the input field.
3. program language edit methods as described in claim 1, which is characterized in that the variable/function editor's window further includes one
Newly-increased label, and when this increases label newly and is clicked, the program language area begin format according to the variable or function and this is defeated
Enter value and shows a corresponding program language.
4. program language edit methods as described in claim 1, which is characterized in that described program language is the program language area
According to the variable or the format and the input value real-time display of function.
5. program language edit methods as described in claim 1, which is characterized in that the program language area is a permission user
Modify the input area of described program language.
6. program language edit methods as described in claim 1, which is characterized in that the program language area further includes grammer volume
Sub- pane is collected, and the program language edit methods further include:
After the sub- pane of grammer editor is clicked, the sub- pane of grammer editor is set to show one when a selection label is clicked
Variable/function sub- editor's window of the corresponding variable or function.
7. program language edit methods as described in claim 1, which is characterized in that further include the following steps:
When not showing that the variable/function editor's window position is clicked in the grammer editor's pane, Yu Yufa editor's pane
Corresponding clicked position shows a default input area;
When the selection label is clicked, presets input area and show that another pair answers variable/letter of the variable or function at this
Formula editor's window.
8. program language edit methods as claimed in claim 7, which is characterized in that the variable/function editor's window further includes
At least one displacement label, and the program language edit methods further include:
When the displacement label is clicked, it is loaded with variable/function editor window and at least one other changes of the displacement label
Amount/function editor's window relative position generates change.
9. program language edit methods as described in claim 1, which is characterized in that further include:
When the input field is clicked, which shows a menu pane, which is loaded with multiple respectively correspond
The preset content label of one preset content;
When wherein a preset content label is clicked, preset content corresponding to the preset content label clicked is defeated
Enter and is shown in the input field.
10. program language edit methods as described in claim 1, which is characterized in that the edition interface further include a translation by
Button, and the program language edit methods further include:
When the translation button is clicked, the edition interface is made to show a complete routine language pane, and the grammer editor's pane
In the program language that shows in all variables/function editor's window be sequentially shown in the complete routine language pane.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW106136979 | 2017-10-26 | ||
TW106136979A TWI647618B (en) | 2017-10-26 | 2017-10-26 | Method for editing programming language |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109710225A true CN109710225A (en) | 2019-05-03 |
Family
ID=65804136
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711246896.1A Pending CN109710225A (en) | 2017-10-26 | 2017-12-01 | Program language edit methods |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109710225A (en) |
TW (1) | TWI647618B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030131337A1 (en) * | 2002-01-07 | 2003-07-10 | Perumainar Asok K. | Educational method and tool for isolating and teaching programming language concepts |
CN1794234A (en) * | 2004-12-20 | 2006-06-28 | 富士通株式会社 | Data semanticizer |
CN102279845A (en) * | 2010-06-09 | 2011-12-14 | 英业达股份有限公司 | System and method for adding new supplementary word explanations in connection mode |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6269475B1 (en) * | 1997-06-02 | 2001-07-31 | Webgain, Inc. | Interface for object oriented programming language |
US20030105620A1 (en) * | 2001-01-29 | 2003-06-05 | Matt Bowen | System, method and article of manufacture for interface constructs in a programming language capable of programming hardware architetures |
TW200931281A (en) * | 2008-01-15 | 2009-07-16 | Mitac Int Corp | An editing system and method for application programming interface |
TWI544354B (en) * | 2013-09-14 | 2016-08-01 | Chunghwa Telecom Co Ltd | Graphic Control Interface Design System and Its Graphic Control Interface Design and Operation |
TWI609578B (en) * | 2015-09-17 | 2017-12-21 | 財團法人資訊工業策進會 | On-line discussing system with compiling program function and method thereof |
-
2017
- 2017-10-26 TW TW106136979A patent/TWI647618B/en active
- 2017-12-01 CN CN201711246896.1A patent/CN109710225A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030131337A1 (en) * | 2002-01-07 | 2003-07-10 | Perumainar Asok K. | Educational method and tool for isolating and teaching programming language concepts |
CN1794234A (en) * | 2004-12-20 | 2006-06-28 | 富士通株式会社 | Data semanticizer |
CN102279845A (en) * | 2010-06-09 | 2011-12-14 | 英业达股份有限公司 | System and method for adding new supplementary word explanations in connection mode |
Non-Patent Citations (1)
Title |
---|
LOMOHOO: "VEX教育机器人编程软件教学", 《HTTPS://WENKU.BAIDU.COM/VIEW/7665D9736EDB6F1AFF001FBD.HTML》 * |
Also Published As
Publication number | Publication date |
---|---|
TW201917572A (en) | 2019-05-01 |
TWI647618B (en) | 2019-01-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Monig et al. | Blocks at your fingertips: Blurring the line between blocks and text in GP | |
Longest | Using Stata for quantitative analysis | |
US7761843B2 (en) | Computer source code generator | |
US8510647B2 (en) | Computer programming and markup language source code visualization tool | |
CN106648819B (en) | A kind of internationalization code conversion method based on editing machine | |
US20080270111A1 (en) | System, method to generate transliteration and method for generating decision tree to obtain transliteration | |
KR20080042852A (en) | Markup based extensibility for user interfaces | |
US20150134321A1 (en) | System and method for translating text | |
Kölling et al. | Stride in BlueJ--computing for all in an educational IDE | |
US10366149B2 (en) | Multimedia presentation authoring tools | |
US9158507B2 (en) | Domain transformation languages | |
Roeder | Juxta web service, lera, and variance viewer. web based collation tools for tei | |
US20160062738A1 (en) | Methods and Apparatuses for Interactive Computer Programming | |
CN109710225A (en) | Program language edit methods | |
US20140115447A1 (en) | Centering Mathematical Objects in Documents | |
Rodriguez | Literate data analysis with Stata and Markdown | |
Garretson | Dexter: Free tools for analyzing texts | |
Walker | SDL Trados Studio–A Practical Guide | |
Haghish | Rethinking literate programming in statistics | |
Edhlund et al. | NVivo 12 for Mac Essentials | |
CN117592468B (en) | Text processing method, device, equipment and storage medium based on artificial intelligence | |
TW201911037A (en) | Method of editing super file markup language file | |
Inoue et al. | Development of J-Assist, a statistical analysis support tool for Julia | |
Nilsson et al. | The FLUIDE Specification Languages with an Accompanying Method | |
Brüggemann-Klein et al. | Graphical User Interface Tool forDesigningModel-BasedUserInterfaces with UIML |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20190503 |