CN1825279A - Method for processing declaration item by list in computer programming - Google Patents
Method for processing declaration item by list in computer programming Download PDFInfo
- Publication number
- CN1825279A CN1825279A CN 200610009139 CN200610009139A CN1825279A CN 1825279 A CN1825279 A CN 1825279A CN 200610009139 CN200610009139 CN 200610009139 CN 200610009139 A CN200610009139 A CN 200610009139A CN 1825279 A CN1825279 A CN 1825279A
- Authority
- CN
- China
- Prior art keywords
- statement
- text
- type
- computer programming
- handled
- 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.)
- Granted
Links
Images
Landscapes
- Stored Programmes (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a method for processing statement items by form in computer programming, comprising the step of: storing a programming software system based on any operating system (such as Windows or Linux) into a computer and bouncing out a design window on display screen, and characterized by also comprising the steps of: entering in mixed programmer by clicking menu, program tree table, and shortcut keys and/or double-clicking components, displaying head field of form of statement items, adding record rows, filling in the form and inputting information of statement items and copying and pasting. And it expresses the statement items in programming such as parameters, variants, constants and data types by form, clear and uneasy to make a mistake, reducing keywords and realizing interconversion between text mode and form processing mode, and laying the foundation of improving and spreading various computer programming software.
Description
Technical field
The present invention relates to computer programming, relate in particular to the method for utilization form processing statement item in the computer programming.
Background technology
All use the line of text mode to carry out program design in the computer programming design at present both at home and abroad, comprise statement subroutine and/or function parameters, variable, constant, rreturn value, data type, DLL order, resource, generic module, array, header file etc.A statement title needs statement before use; And illustrate with various key words which kind of data type it belongs to.Except that code was realized, data types such as all parameters, variable, constant all with the key word statement, not only will be remembered key word, and various key word and variable, constant etc. live together in delegation, and structure is unintelligible, identification difficulty.
Comparatively speaking, programmed environment is the mode of line of text, implement more easily, though strengthened programming user's workload, but alleviated programming language designer's workload.Its drawback is, along with the complicacy of programming is deepened, the programming user has run into the subroutine title in the code of having finished writing of oneself failing to understand, the subroutine rreturn value, what parameters are arranged, stated how many variablees, the difficulty of which constant statement is arranged, so because the code structure during statement is unintelligible, just be difficult to make in order code structure when compiled code, the programmer produces error code in programming also just not at all surprising.
Present programming language adopts the mode of line of text edit routine code, has formed a kind of fixed mode, and the inconvenience of bringing thus makes us feeling helpless.
But from user's angle, when input code, need a kind of new thinking and new programming standard really, with the various contradictions that solve this type of bottleneck with mode visual, hommization and therefore bring.The fundamental point of this programming standard is to use the form aided programming, when needs defined parameters, variable, constant etc., allows the user fill in the form of a form, as the statement of title and data type; And form can be copied as text codes, text codes also can be reduced to form.
Summary of the invention
The objective of the invention is to for the programming language environment provides a kind of code visualization rendering method, the datatype declarations part is come aided programming with form, reduce the user key words memory capacitance, reduce the mistake in the user program, convenient programming user's use.
Technical solution of the present invention is achieved in that
The utilization form is handled the method for statement item in a kind of computer programming, comprising:
On known computer, deposit a step in based on the programming software system of any operating system (as: Windows, Linux etc.);
On display screen, eject the step of design window;
It is characterized in that also comprising:
By clicking menu, the tree-like table options of program, shortcut and/or double-clicking the step that enters the shuffling device behind the assembly;
The step that shows a statement gauge outfit field;
Increase the step of record row;
The step of the input statement information of filling in a form; With
The step of duplicating and pasting.
The step of a described demonstration statement gauge outfit field is meant that the user shows a statement title, data type, array, preset value, rreturn value type, open, remarks, static state, library file name, the corresponding command name in storehouse, by reference and the statement item field of base class and the operating process of generation picture form line with space bar or text input mode on display screen.
The step of described increase record row is meant the operating process of user by clicking the menu option order and/or cursor positioning is pressed INS key or enter key generation picture form line insertion form after gauge outfit.
Described step of filling in a form an input statement information is meant that the user clicks at form prompt place and enters editing mode, imports the operating process of corresponding title, data type or other aforementioned statements.
The described step of duplicating and pasting can be selected following action:
The form that to state part as required duplicates on the native system platform and paste, or carry out cross-platform duplicate and paste as required, table content is duplicated in the plain text mode, and paste in the text editor and/or and paste back again in the table text shuffling device the text codes in the text editing machine.
The utilization form is handled the device of statement item in a kind of computer programming, comprising:
Be used to store the storage module of programming software system;
The form module that is used for the display design window;
It is characterized in that also comprising:
The shuffling device module that is used for form and text mixed editorial;
Be used to show the tables of data module of a statement gauge outfit field and record;
Be used to import the load module of a statement information; With
The modular converter that is used for system platform and/or cross-platform realization text mode and the mutual conversion of list processing (LISP) mode.
Compared with prior art, advantage of the present invention mainly shows: realized that form and text codes editing machine are combined in the same code editor, programme with form+textual form.Demonstrate fully visually, make the user check no longer frequently whether various statements are correct, also do not remember some key words; The program code of form can be changed between text and form in case of necessity.
Description of drawings
Fig. 1 is the flow chart that the utilization form is handled the statement item in the computer programming.
Fig. 2 is the virtual architecture synoptic diagram that the utilization form is handled the statement item in the computer programming.
Embodiment
The utilization form is handled the method for statement item in a kind of computer programming as depicted in figs. 1 and 2, be included in and deposit on the known computer based on any operating system (as: Windows, Linux etc.) step of design forms is ejected in the step of the Chinese programming software systems of platform and startup back, it is characterized in that also comprising the design forms are switched to the shuffling device, according to the gauge outfit field of a statement type display definition form that defines and the step of generation setting-out action, increase and/or amendment record is capable and draw the step of form line action to definition tables, in form, dose the step of a statement information and by duplicating, sticking placement is in the step of system platform and/or cross-platform realization text mode and the mutual conversion of list processing (LISP) mode.Specific implementation process is as follows:
1. switch: after opening a new program or already present program, if what show is not table text shuffling device, need operation by menu or shortcut or mouse, switch to table text shuffling device, with defining variable, constant, parameter etc., generally the mode by menu or shortcut realizes.Increase variable, DLL order, constant, generic module, procedure set, data type with menu, will switch to form and text shuffling device behind the use menu.Use shortcut, create global variable as CTRL+G; Or, choose list of thing when front assembly on front assembly, double-clicking mouse, all switch in the shuffling device.The tree-like table of program in the service routine panel is with the table text shuffling device that also can enter current type after the mouse double-click fast.
2. display gauge head: need to select the type of definition by menu, enter form definition shuffling device after the selection, promptly show the current gauge outfit part that needs definition tables in the shuffling device, produced the operation of drawing the form line simultaneously.
Be the empty gauge outfit of seeing after switching below:
The global variable name | Type | Array | Open | Remarks |
3. increase the form line number: use newly-built cell command of menu or cursor positioning after the gauge outfit part, to press INS key or enter key insertion form, will increase by a line space form, also produced the operation of drawing the form line simultaneously.
Be the appearance behind the increase delegation form below:
The global variable name | Type | Array | Open | Remarks |
Variable 1 |
When the parameter of subroutine/self-defined subroutine/procedure set variable/generic module etc. and the establishment of variable, gauge outfit and subroutine name have defined, need user's modification.Sometimes the gauge outfit of not only having drawn has also been drawn and has partly been shown body, as following DLL command table definition, needs the user to fill in and/or revises:
Be to have shown a sub-program name below, the user can control oneself and revise the form attributeses such as title of this subroutine.
Subroutine name | The rreturn value type | Open | Remarks |
Subroutine 1 |
The Dll command name | The rreturn value type | Open | Remarks | |
Open file | Logical type | Successfully return very, vacation is returned in failure | ||
Dll library file name: | ||||
class.dll | ||||
Corresponding command name in the Dll storehouse: | ||||
OpenF | ||||
Parameter name | Type | By reference | Array | Remarks |
Filename | The text type | The filename that appointment will be opened |
Factor program/self-defined subroutine/module/generic modules etc. are stated an existing parameter, and variable is arranged again, therefore must be with menu and/or carriage return increase on gauge outfit, to show difference.
Be to position a cursor over subroutine name to deserve to be called carriage return below, or use the parameter form that menu " insertion " → " parameter " added:
Subroutine name | The rreturn value type | Open | Remarks | ||
_ office assembly 1_ presses certain key | Logical type | ||||
Parameter name | Type | Reference | Can be empty | Array | Remarks |
The key code | Integer type | ||||
The function key state | Integer type |
Be after positioning a cursor over subroutine name and deserving to be called below, use the variable form that is produced behind menu " insertion " → " existing unit " or the shortcut CTRL+N:
Subroutine name | The rreturn value type | Open | Remarks |
_ start window _ establishment to finish |
Variable name | Type | Static | Array | Remarks |
Metering | Integer type | |||
Order line | The text type | |||
New window quantity | The text type |
3. fill in a form: next according to the gauge outfit definition, the variable of the required definition of input, constant, parameter etc. in the table body, form is accepted user's input, and the content of importing is drawn in the form.
4. duplicate and paste: the user chooses delegation or multirow by using shortcut, uses menu or shortcut to copy to other positions of program, or in other programs.
The form that to state part if desired carries out copy and paste, and available left mouse button pressing do not put and dragged cursor from beginning to end; Or press cursor key when pressing the SHIFT key and select with keyboard.Background color when choosing shows with different colours; Choose the back to use and duplicate menu or quick hot key, table content is copied in the internal memory.When cursor moves to the position that needs stickup, cursor positioning to this position, is used and pasted menu or quick hot key, the table content in the internal memory is pasted on the cursor position.
5. text-converted:
Copy code for convenience and exchange, table content can be duplicated in the plain text mode, and paste in the text editor.When the text codes in the text editing machine being pasted back again in the table text mixed editorial device, the form part can be reduced to form automatically.
Its detailed process is that the form line in the above table is removed, and then according to the form of form regulation, adds key word beginning the place, after connect content, replace separation in the form with comma and/or other forms of list separator.If handle the multirow form, also present with multirow form text.
Be below before the text-converted with text-converted after the contrast of gained content:
The global variable definition tables:
The global variable name | Type | Array | Open | Remarks |
Start the window left side | Integer type | |||
Start the window top margin | Integer type | |||
Start window width | Integer type | |||
Start window height | Integer type | |||
The object combination | Logical type | |||
Grid column is wide | Logical type | |||
Table row is contour | Logical type | |||
Form deletion row | Logical type | |||
The form delete columns | Logical type |
The global variable definition tables copies the content in the internal memory to:
. global variable starts the window left side, integer type
. global variable starts window top margin, integer type
. global variable starts window width, integer type
. global variable starts window height, integer type
. the combination of global variable object, logical type
. the global variable grid column is wide, logical type
. the global variable table row is contour, logical type
. global variable form deletion row, logical type
. global variable form delete columns, logical type
The constant definition form:
The constant title | Constant value | Open | Remarks |
Former database | " storehouse 1 " | ||
Database manager | " database manager " | ||
User's custom | " user's custom " |
The constant definition form copies the content in the internal memory to:
. the former database of constant, " " storehouse 1 " "
. constant database manager, " " database manager " "
. constant user custom, " " user's custom " "
Procedure set definition tables and procedure set variable-definition form:
The window writing routine set name | Keep | Keep | Remarks |
Start the window writing routine collection | |||
Variable name | Type | Array | Remarks |
Page interface | Page interface | ||
The revision interface | The revision interface | ||
Object interface | Object interface | ||
Table interface | Table interface | ||
The worksheet interface | The worksheet interface | ||
Picture display mode | Integer type | ||
The operation catalogue | The text type | ||
Catalogue | The text type | 0 | |
Recording mechanism | Integer type | ||
Database is opened | Logical type |
Procedure set definition tables and procedure set variable-definition form copy the content in the internal memory to:
. procedure set starts the window writing routine collection
. procedure set variable page interface, page interface
. procedure set variable revision interface, revision interface
. procedure set variable object interface, object interface
. procedure set variable table interface, table interface
. procedure set variable worksheet interface, worksheet interface
. procedure set variable picture display mode, integer type
. procedure set variable operation catalogue, text type
. procedure set variable catalogue, the text type,, " 0 "
. procedure set variable recording mechanism, integer type
. procedure set variable data storehouse is opened, logical type
The definition of subroutine/module/generic module and parameter-definition form thereof:
Subroutine name | The rreturn value type | Open | Remarks | ||
_ office assembly 1_ presses certain key | Logical type | ||||
Parameter name | Type | Reference | Can be empty | Array | Remarks |
The key code | Integer type | ||||
The function key state | Integer type |
The subroutine definition tables copies the content in the internal memory to:
. subroutine _ office assembly 1_ presses certain key, logical type
. parameter key code, integer type
. parameter function bonded state, integer type
The variable of subroutine/module/generic module/or the local variable definition tables
Subroutine name | The rreturn value type | Open | Remarks |
_ start window _ establishment to finish |
Variable name | Type | Static | Array | Remarks |
Metering | Integer type | |||
Order line | The text type | |||
New window quantity | The text type |
The variable of subroutine/module/generic module/or local variable copy content in the internal memory to:
. subroutine _ startup window _ establishment finishes
. local variable metering, integer type
. local variable order line, text type
. local variable new window quantity, text type
The definition tables of DLL (dynamic link library)
The Dll command name | The rreturn value type | Open | Remarks | |
Open file | Logical type | Successfully return very, vacation is returned in failure | ||
Dll library file name: | ||||
class.dll | ||||
Corresponding command name in the Dll storehouse: | ||||
OpenF | ||||
Parameter name | Type | By reference | Array | Remarks |
Filename | The text type | The filename that appointment will be opened |
DLL (dynamic link library) copies the content in the internal memory to:
.DLL order opens file, logical type, " class.dll ", and " OpenF ",, successfully to return very, vacation is returned in failure
. the Parameter File name, the text type,, the filename that appointment will be opened
The constant definition form:
The constant title | Constant value | Open | Remarks |
MF_BYPOSITION | 1024 | ||
Classification | " classification " | ||
Title | " title " | ||
Explanation | " illustrate " |
The constant definition form copies the content in the internal memory to:
. constant MF_BYPOSITION, " 1024 "
. constant classification, " " classification " "
. constant title, " " title " "
. constant declaration, " " explanation " "
Definition/self-defining data type form:
The data type name | Open | Remarks | ||
The observer | ||||
Member's name | Type | By reference | Array | Remarks |
The position | The point | |||
Around y | Double precision decimal type | |||
Around x | Double precision decimal type | |||
Translational speed | Double precision decimal type | |||
Mobile jump frequency | Double precision decimal type | |||
Mobile jump phase place | Integer type | |||
The frequency superposition value | Integer type |
Content in the definition/self-defining data type form copy internal memory:
. data type observer
. member position, point
. the member is around y, double precision decimal type
. the member is around x, double precision decimal type
. member's translational speed, double precision decimal type
. the member moves jump frequency, double precision decimal type
. the member moves jump phase place, integer type
. member's frequency superposition value, integer type
Claims (6)
1, the utilization form is handled the method for stating item in a kind of computer programming, comprising:
On known computer, deposit a step in based on the programming software system of any operating system;
On display screen, eject the step of design window;
It is characterized in that also comprising:
By clicking menu, the tree-like table options of program, shortcut and/or double-clicking the step that enters the shuffling device behind the assembly;
The step that shows a statement gauge outfit field;
Increase the step of record row;
The step of the input statement information of filling in a form; With
The step of duplicating and pasting.
2, the utilization form is handled the method for statement in the computer programming according to claim 1, and the step that it is characterized in that a described demonstration statement gauge outfit field is meant that the user shows the statement item field of a statement title, data type, array, preset value, rreturn value type, open, remarks, static state, library file name, the corresponding command name in storehouse, by reference and base class etc. and the operating process of generation picture form line with space bar or text input mode on display screen.
3, the utilization form is handled the method for stating item in the computer programming according to claim 1, it is characterized in that the step of described increase record row is meant the operating process of user by clicking the menu option order and/or cursor positioning is pressed INS key or enter key generation picture form line insertion form after gauge outfit.
4, the utilization form is handled the method for stating item in the computer programming according to claim 1, it is characterized in that described step of filling in a form an input statement information is meant that the user clicks at form prompt place and enters editing mode, import the operating process of corresponding title, data type or other aforementioned statements.
5, the utilization form is handled the method for statement in the computer programming according to claim 1, it is characterized in that the described step of duplicating and pasting can select following action:
The form that to state part as required duplicates on the native system platform and paste; Or carry out cross-platform duplicate and paste as required, table content is duplicated in the plain text mode, and paste in the text editor and/or and paste back again in the table text shuffling device the text codes in the text editing machine.
6, the utilization form is handled the device of stating item in a kind of computer programming, comprising:
Be used to store the storage module of programming software system;
The form module that is used for the display design window;
It is characterized in that also comprising:
The shuffling device module that is used for form and text mixed editorial;
Be used to show the tables of data module of a statement gauge outfit field and record;
Be used to import the load module of a statement information; With
The modular converter that is used for system platform and/or cross-platform realization text mode and the mutual conversion of list processing (LISP) mode.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006100091398A CN100385394C (en) | 2006-02-14 | 2006-02-14 | Method for processing declaration item by list in computer programming |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006100091398A CN100385394C (en) | 2006-02-14 | 2006-02-14 | Method for processing declaration item by list in computer programming |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1825279A true CN1825279A (en) | 2006-08-30 |
CN100385394C CN100385394C (en) | 2008-04-30 |
Family
ID=36935965
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2006100091398A Expired - Fee Related CN100385394C (en) | 2006-02-14 | 2006-02-14 | Method for processing declaration item by list in computer programming |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100385394C (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101782850A (en) * | 2009-10-08 | 2010-07-21 | 孙浩忠 | Software design idea for determining wood making on felled tree according to economic benefit |
CN109542420A (en) * | 2018-10-15 | 2019-03-29 | 张海光 | A kind of Code Edit method based on label |
CN110275707A (en) * | 2019-04-03 | 2019-09-24 | 杭州电子科技大学 | A kind of PLC variable input method of compatible table input and text input |
CN111221458A (en) * | 2020-01-08 | 2020-06-02 | 中联财联网科技有限公司 | Rapid display method for copying, pasting, dragging and cloning global sliding table of big data |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6836878B1 (en) * | 1996-06-04 | 2004-12-28 | International Business Machines Corporation | Visual programming from a tree structure |
US6684385B1 (en) * | 2000-01-14 | 2004-01-27 | Softwire Technology, Llc | Program object for use in generating application programs |
-
2006
- 2006-02-14 CN CNB2006100091398A patent/CN100385394C/en not_active Expired - Fee Related
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101782850A (en) * | 2009-10-08 | 2010-07-21 | 孙浩忠 | Software design idea for determining wood making on felled tree according to economic benefit |
CN109542420A (en) * | 2018-10-15 | 2019-03-29 | 张海光 | A kind of Code Edit method based on label |
CN110275707A (en) * | 2019-04-03 | 2019-09-24 | 杭州电子科技大学 | A kind of PLC variable input method of compatible table input and text input |
CN111221458A (en) * | 2020-01-08 | 2020-06-02 | 中联财联网科技有限公司 | Rapid display method for copying, pasting, dragging and cloning global sliding table of big data |
CN111221458B (en) * | 2020-01-08 | 2024-04-09 | 中联财联网科技有限公司 | Quick display method for large data copy-paste and drag clone global sliding table |
Also Published As
Publication number | Publication date |
---|---|
CN100385394C (en) | 2008-04-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2536390C2 (en) | Automated report generation method | |
CN1112642C (en) | Design part reusing method in configuration tool | |
CN1134730C (en) | System and method for reducing footprint of preloaded classes | |
CN1961314A (en) | Methods and apparatus for modifying process control data | |
US8745581B2 (en) | Method and system for selectively copying portions of a document contents in a computing system (smart copy and paste | |
US20160299745A1 (en) | Development method for web development system, and web development system | |
CN1841362A (en) | Method and system for processing an electronic form | |
CN1655120A (en) | Hosted application as a designer in an integrated development environment | |
CN1759389A (en) | System and method utilizing virtual folders | |
CN1731333A (en) | Three-dimensional motion graphical user interface and the method and apparatus that this interface is provided | |
CN1591412A (en) | Integrated data processing system | |
CN101051270A (en) | Interface layout changing method and interface display controller | |
KR101567455B1 (en) | Defining an interactive user interface | |
CN1991765A (en) | Developing apparatus and method for hand-held terminal application program | |
CN102609252A (en) | Intelligent configuration method for logic menu resources on basis of measurement instruments | |
CN1555523A (en) | Method and system in an office application for providing content dependent help information | |
CN1825279A (en) | Method for processing declaration item by list in computer programming | |
CN101038583A (en) | Gold report generating and generating method thereof | |
CN1614927A (en) | Method for realizing tree-shaped structure in B/S structure | |
CN1976320A (en) | Data access control method and system | |
CN100346315C (en) | Three dimension mode construction software automatic testing method based on script | |
CN1869926A (en) | Method and system for generating artificial equipment panel | |
CN1818898A (en) | Electronic document data processing editor and its controlling method | |
CN1601521A (en) | System and method of on-line web editing | |
CN1036092A (en) | A kind of Computerized automatic tabulation method and system thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20080430 Termination date: 20170214 |
|
CF01 | Termination of patent right due to non-payment of annual fee |