CN109976734A - A method of realizing mother tongue programming - Google Patents

A method of realizing mother tongue programming Download PDF

Info

Publication number
CN109976734A
CN109976734A CN201910142906.XA CN201910142906A CN109976734A CN 109976734 A CN109976734 A CN 109976734A CN 201910142906 A CN201910142906 A CN 201910142906A CN 109976734 A CN109976734 A CN 109976734A
Authority
CN
China
Prior art keywords
mother tongue
source code
page
language
programming
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
Application number
CN201910142906.XA
Other languages
Chinese (zh)
Other versions
CN109976734B (en
Inventor
林庆斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN201910142906.XA priority Critical patent/CN109976734B/en
Publication of CN109976734A publication Critical patent/CN109976734A/en
Application granted granted Critical
Publication of CN109976734B publication Critical patent/CN109976734B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/454Multi-language systems; Localisation; Internationalisation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a kind of methods for realizing mother tongue programming, execute suitable for associated computer device.Structure of the invention is reasonable, by eclipse software platform, can not only realize and is programmed using mother tongue, but also by special conversion module, can be also various language (such as java, c, c++ etc.) popular on the market by mother tongue code conversion;And without need to only change the conversion module between mother tongue code and source code, can modify to mother tongue code by change compiler, to be easier to modify or expand coding, it is made to be more in line with the habit of compatriots.

Description

A method of realizing mother tongue programming
Technical field
The present invention relates to programming technique field more particularly to a kind of methods for realizing mother tongue programming.
Background technique
Computer has incorporated our life already, and food, clothing, housing and transportation are closely bound up inseparable;Informationization technology Tide is just as that unwearied wave forever, and then a wave sweeps across our body and mind to a wave, us is urged to advance.
However, computer programming is the technical profession of a high threshold, the code of pure English substantially increases the difficulty of study, So being currently suggested a kind of mother tongue programming, it is broadly divided into two kinds: first is that the program of entirely autonomous research and development is set such as e language Count language;Secondly being expanded, being modified aiming at existing English programming language, to meet the programming language of taste of Chinese people habit Speech.
For both schemes, drawback is fairly obvious, as the first in this way, being tantamount to " making a cart behind closed doors, driving of closing the door ", entirely Nodularization is not only blending economically, and collision even more inwardly, you can not keep pace with the times at the language of a block forever Trend;Still more, present program generally requires a variety of programming languages and exists jointly, this is that it is unable to satisfy demand.
Second is idle work, or perhaps produces little effect, even if programming language is expanded good again, modifies suitable again The taste of compatriots, also without changing the fact that programming language is English, popularizing to masses also can only be difficult, Wu Fati Play public interest.Based on this, the author proposes a kind of method for realizing mother tongue programming.
Summary of the invention
The purpose of the present invention is to solve disadvantages existing in the prior art, and a kind of of proposition realizes what mother tongue programmed Method can not only be realized and be programmed using mother tongue by eclipse software platform, but also pass through special conversion module, It can be various programming languages (such as java, c, c++ etc.) popular on the market by mother tongue code conversion;And without passing through change Compiler need to only change the conversion module between mother tongue code and source code, can modify to mother tongue code, to make it more It is easy to modify or expand coding, more caters to the programming habit of compatriots, people is made no longer to feel dry as dust to programming.
To achieve the goals above, present invention employs following technical solutions: a method of it realizing mother tongue programming, is applicable in It is executed in computer equipment, comprising the following steps:
One, it chooses suitable eclipse version and downloads installation, and JDK is installed, then carry out corresponding environmental variance and match It sets;
Two, using eclipse software as platform, build programming language exploitation environment, it is described build language environment can be divided into Lower three steps:
A. according to the eclipse software installed, the language development kit that installation has editing machine is carried out;
B. according to the eclipse software version installed, the compiler of corresponding programming language is installed;
C. the CompilerTools installed and eclipse software platform are bound in eclipse software;
Three, based on eclipse software, eclipse plug-in unit is created on this platform, specific:
(1) editing machine is created, structure framework is established, is chosen to be multipage editing machine, the multipage editing machine includes that mother tongue is defeated Enter page and corresponding source code output page:
A, it is chosen to be StyledText control in the mother tongue incoming page, be laid out as FillLayout, and built in control Vertical context menu increases related execution function;
B, TextEditor control is chosen in the source code output page, and establishes its context menu, is increased correlation and is held Row function;
(2) binding and preservation of content of pages resource:
A, the binding of the source code output page: it is responsible for showing English source code and final compiling, operation or life At;
B, the binding of the mother tongue incoming page: being responsible for the preservation of mother tongue input and mother tongue code, and as language engineering is It is no newly-built, there is the following two kinds situation:
I) engineering is newly-built: in the moment for opening source code file with this editing machine, the life under the catalogue of source code file At one and source code file text of the same name, it is responsible for the storage of mother tongue code;
Ii) engineering has been established: opening the moment of source code file in this editing machine, uploads existing source code text of the same name On file content to mother tongue input page;
C, content of pages stores;
(3) transformation mechanism between mother tongue incoming page and source code incoming page is set, and transformation mechanism is associated with to corresponding The mother tongue incoming page and the source code incoming page are bound, can be carried out according to set conversion module by conversion module Conversion;
Four, new language engineering is created on eclipse platform, to make the content and corresponding volume of source code output page Device, interpreter and connector binding are translated, explains generation to be compiled, to realize that mother tongue programs.
Preferably, corresponding expansion is added, in the plug-in unit to prove that eclipse plug-in unit is successfully installed.
Preferably, when more conversion modules are set, judge mechanism is set in system, is allowed to independently switch in different inputs Conversion method and conversion module.
Preferably, according to the programming language program of exploitation, corresponding language development kit and compiler are downloaded, and is carried out Corresponding configuration.
Preferably, the function of mother tongue incoming page is responsible for the preservation of mother tongue input and mother tongue code, as language engineering is It is no newly-built, there is the following two kinds situation:
A, engineering is newly-built: in the moment for opening source code file with this editing machine, the life under the catalogue of source code file At one and source code file text of the same name, it is responsible for the storage of mother tongue code.
B, engineering has been established: opening the moment of source code file in this editing machine, uploads existing source code text of the same name On file content to mother tongue input page.
Preferably, the setting steps of the binding of the page and conversion module are as follows:
A, transformation mechanism is established, and is associated with to conversion module, mother tongue incoming page and the binding of source code output page is inline, make The content for obtaining mother tongue incoming page is converted to English source code according to set conversion module, and is shown in the source code output page On.
B, configurable system is built in editing machine, pulls out a configuration file, and conversion is set in configuration file Template so that the content of mother tongue incoming page is converted according to set conversion module, and exports and exports the page in source code On.
Compared with prior art, the present invention has the advantages that:
1, mother tongue programming truly is realized, state's language is no longer limited to, can be Chinese programming, it can also be with It is Japanese, Korean programming, that is, realizes so-called " lead to and kill ", theoretically any language can be carried out programming.
2, it is formed by programming system, and the current programming language system of prevalence both at home and abroad has no and substantially distinguishes, behind Essence on it is identical;Mother tongue code can be switched to by English by the interior conversion module set by eclipse software platform Source code, and realize that it is language popular on the market, namely c language or java language are realized in the programming to communicate in one's mother tongue, or Ruby language or go language or perl language, etc. language.
3, it is easy to modify or expand coding, without need to only change the conversion module between mother tongue English by change compiler, Mother tongue code can be modified, it is made to be more in line with the habit of compatriots.
Detailed description of the invention
It, below will be to embodiment party in order to illustrate more clearly of embodiments of the present invention or technical solution in the prior art Formula or attached drawing needed to be used in the description of the prior art are briefly described.It should be evident that the accompanying drawings in the following description is only It is merely exemplary, it for those of ordinary skill in the art, without creative efforts, can also basis The attached drawing of offer, which is extended, obtains other implementation attached drawings.
Structure depicted in this specification, ratio, size etc., only to cooperate the revealed content of specification, for Those skilled in the art understands and reads, and is not intended to limit the invention enforceable qualifications, therefore does not have technical Essential meaning, the modification of any structure, the change of proportionate relationship or the adjustment of size are not influencing the function of the invention that can be generated Under effect and the purpose that can reach, (following view in the range of disclosed technology contents obtain and can cover should all be still fallen in Eclipse version is 4.6.3-neon Chinesizing version in figure).
Fig. 1 is a kind of mother tongue programming flow diagram for realizing mother tongue programmed method proposed by the present invention;
Fig. 2 is proposed by the present invention a kind of realizes in mother tongue programmed method in the creation editing machine flow chart in plug-in unit;
Fig. 3 is that a kind of realize in mother tongue programmed method proposed by the present invention is bound in the source code output page content in plug-in unit Figure;
Fig. 4 is that a kind of realize in mother tongue programmed method proposed by the present invention is bound in the mother tongue incoming page content in plug-in unit Figure;
Fig. 5 is proposed by the present invention a kind of to realize in mother tongue programmed method the binding figure between the page in plug-in unit;
Fig. 6 is the programming language in a kind of conversion module manufacturing process realized in mother tongue programmed method proposed by the present invention It is grouped classification chart;
Fig. 7 is the structure of transvers plate in a kind of conversion module manufacturing process realized in mother tongue programmed method proposed by the present invention Figure;
Fig. 8 is that a kind of addition realized in mother tongue programmed method in conversion module manufacturing process proposed by the present invention is grouped word Figure;
Fig. 9 is a kind of plug-in card configuration file configuration figure realized in mother tongue programmed method proposed by the present invention;
Figure 10 is proposed by the present invention a kind of realizes in mother tongue programmed method in the modulus of conversion plate circuit in plug-in card configuration file Diameter configuration diagram;
Figure 11 (one or two) is proposed by the present invention a kind of realizes in mother tongue programmed method in the programming in plug-in card configuration file Language packet class word configuration diagram;
Figure 12 (one two three) is proposed by the present invention a kind of realizes in mother tongue programmed method on eclipse software platform Plug-in unit installs Successful outcomes figure;
Figure 13 (one~eight) is eclipse software configuration diagram in a kind of realization mother tongue programmed method proposed by the present invention;
Figure 14 (one two three) is a kind of creation realized in mother tongue programmed method in eclipse software proposed by the present invention Engineering project figure;
Figure 15 (one or two) is that class figure is created in engineering project in a kind of realization mother tongue programmed method proposed by the present invention;
Figure 16 is a kind of finally formed effect picture of realization mother tongue programmed method proposed by the present invention.
Specific embodiment
Embodiments of the present invention are illustrated by particular specific embodiment below, those skilled in the art can be by this explanation Content disclosed by book is understood other advantages and efficacy of the present invention easily, it is clear that described embodiment is the present invention one Section Example, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not doing Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
Referring to Fig.1, a method of realizing mother tongue programming, be useful in computer equipment and execute, comprising the following steps:
One, it chooses suitable eclipse version and downloads installation, and latest edition JDK is installed, then carry out corresponding ring Border variable configures (such as having a question, please seek advice from Baidu).
Two, using eclipse software as platform, language development environment is built, such as C language develops environment, java language is opened Hair ring border, go language development environment or Python exploitation environment etc., following three step can be divided by building language environment:
A. according to the eclipse software version installed, carrying out installing specific language development kit (should at least contain Editing machine).
B. it according to the eclipse software version installed, carries out that corresponding CompilerTools is installed.
C. relevant configuration is carried out in eclipse software, and programming language compiler and eclipse software platform are carried out Binding.
Three, based on eclipse software, eclipse plug-in unit is created on this platform, development functionality component is expanded Its function (its detailed process is realized to program).
(1) editing machine is created, structure framework is established, is chosen to be multipage editing machine, wherein one page is as mother tongue incoming page, and one Page is used as corresponding source code output page (as shown in Figure 2):
A, it is chosen to be StyledText control in mother tongue incoming page, be laid out as FillLayout, and established in control Hereafter menu, increase execute (function can be expanded according to demand) such as functions, such as stickup, shearing, duplication, preservation;
B, TextEditor control is chosen in source code output page, without layout, is defaulted as covering full page, and establish Its context menu executes function needed for increasing and is same as above.
(2) binding and preservation of content of pages resource:
A, the binding of source code output page: its function for be responsible for showing English source code and final compiling, operation or It generates, therefore the source code file of itself and eclipse engineering is bound, that is, in eclipse packet explorer view Source code file, make source code file content and source code output page content synchronization, as shown in Figure 3.
B, the binding of mother tongue incoming page: its function is responsible for the preservation of mother tongue input and mother tongue code, and with language work Whether journey creates, and has the following two kinds situation (as shown in Figure 4):
I) engineering is newly-built: in the moment for opening source code file with this editing machine, the life under the catalogue of source code file At one and source code file text of the same name, it is responsible for the storage of mother tongue code.
Ii) engineering has been established: opening the moment of source code file in this editing machine, uploads existing source code text of the same name On file content to mother tongue input page.
C, " content preservation " function i) realization of content of pages storage: need to only be increased in the context menu of mother tongue incoming page Can, its page need to be only clicked when saving every time, chooses " preservation " in the context menu of pop-up;Ii) due to constructing source The particularity of code output page control will pop up inquiry when exiting eclipse software or this editing machine (plug-in unit) or being compiled It asks, if save its content (only in the change of source code content);It certainly can also be " the content guarantor of increase in its context menu Deposit " function, actively carry out content preservation.
(3) transformation mechanism between mother tongue incoming page and source code incoming page is set, and is associated with to corresponding conversion module (one It is a or multiple), so that mother tongue incoming page and source code incoming page is bound joint, can be turned according to set conversion module It changes.
A, the binding between the page, the i.e. setting of binding mechanism: carry out with " based on being replaced one by one according to conversion module content, Supplemented by the various special replacements of programming language characteristic " policing rule, by mother tongue incoming page and source code output page binding it is inline, So that the content of mother tongue incoming page is converted to English source code according to set conversion module, and it is shown in source code output page On face, as shown in Figure 5.
I) according to based on conversion module content " one by one replace ": according to programming language characteristic, it is (each to choose corresponding separator Kind of programming language is similar, as java language is chosen for " space and t n r f!@#;,.!: " "? [] () $ $ u0024% ^&*/() -=+ `~[] { };: ' ",<>? | "), make in mother tongue incoming page mother tongue code division unit one by one, then root It replaces the unit of scribing one by one according to set conversion module, and exports on source code output page.
Ii) because supplemented by the various special replacements of programming language characteristic: different programming languages often have respective characteristic (language In terms of characteristic), such as explain part, code line indicates that uniline is explained with * beginning in some language, and some with // start and indicate Uniline explains that there are no the multirow explanations that need to say that various form indicates;This part is just needed individually to handle, is carried out Unique replacement processing.
Iii it) is consistent in general orientation, but there are difference in terms of small details, therefore the interpreter of different programming languages System is also not quite similar;In order to be compatible with multi language programme, different transformation mechanisms will be corresponding to the conversion module of different language, different languages The conversion module of speech will be also bound in different transformation mechanisms, and the two is closely coupled to be operated together.
B, the production of related conversion module (when being not to say that progress mother tongue programming every time, will carry out template construct, only need The template generally acknowledged by people, accepted extensively directly is taken, the production method of various programming language conversion modules is similar, under Side is by taking java conversion module as an example):
I) java language syntax, construction and correlation properties are understood and mastered, java language are classified one by one, as shown in Figure 6;
Ii java language term (can help to take passages on handbook from official)) is extracted, the classification before compareing (removes group identifier Outside, because identifier is to be set in nonsystematic by user from setting), it is grouped one by one, then translates and be made bilingual dictionary, such as Shown in Fig. 7;
Iii) due to the binding mechanism of mother tongue incoming page and source code output page, i.e., turn between mother tongue code and source code It changes planes and is made as " replacing one by one ", conversion module mother tongue part will keep otherness thus, different;For this purpose, need to only keep class It is different between other group, and classification language is added to the mother tongue part of dictionary, that is, final conversion module is completed, as shown in Figure 8.
C, the setting and relevant configuration of conversion module: building configurable system in editing machine, pulls out a configuration text Part (xml document), and conversion module is set in configuration file, so that the content of mother tongue incoming page is according to set modulus of conversion Plate is converted, and is exported on the source code output page:
I) configuration file and editing machine is inline: the main setting i.e. in editing machine is placed in configuration file (xml document) Configuration, when editing machine is loaded into, to specified path, (self establishment, can be relative path, be also possible to absolute road in plug-in unit Diameter) it is loaded into configuration file, that is, parsing xml document, and correspondingly generate;
Ii) the setting and progress relevant configuration of configuration file:
1. the substantially setting of configuration file, as shown in Figure 9;
2. the relevant configuration that configuration file carries out:
1. the setting (as shown in Figure 10) of template path:
Wherein,<java-path>...</java-path>label: setting java language conversion template path;<C- Path>...</C-path>label: setting C language conversion module path;<cpp-path>...</Cpp-path>label: setting C Plus Plus conversion module path;<go-path>...</go-path>label: setting Go language conversion template path;<perl- Path>...</perl-path>label: setting perl language conversion template path;<python-path>...</python- Path > label: setting python language conversion template path;<ruby-path>...</ruby-path>label: setting ruby Language conversion template path;<web-path>...</web-path>label: setting web language conversion template path;<css- Path>...</Css-path>label: setting Css language conversion template path;<js-path>...</js-path>label: it sets Set javascript language conversion template path;<command-path>...</command-path>label: setting command row Language conversion template path;<php-path>...</php-path>label: setting php language conversion template path.
Note: coding has to setting correctly, otherwise will not support Chinese.
2. the setting (shown in such as Figure 11 (one or two)) of template packet class word:
Wherein,<java-word>...</java-word>label: setting java language is grouped word;<C-word>... </C-word>label: setting C language is grouped word;<cpp-word>...</Cpp-word>label: setting C Plus Plus is grouped word; <go-word>...</go-word>label: setting go language is grouped word;<perl-word>...</perl-word>label: it sets Set perl language grouping word;<ruby-word>...</ruby-word>label: setting ruby language is grouped word;<php-word >...</php-word>label: setting PHP language is grouped word;<python-word>...</python-word>label: setting Python is grouped word;<web-word>...</web-word>label: setting web language is grouped word;<css-word>... </css-word>label: setting CSS language is grouped word;<js-word>...</js-word>label: setting javascript language Speech grouping word;<r-word>...</R-word>label: setting R language is grouped word;<command-word>...</command- Word > label: setting command row language is grouped word.
D, the setting of template selection mechanism: various programming language source code file formats (file suffixes) are different, occupy It is inputted according to it, identification judges and switch to phase in this when editing machine is opened different programming language files and write The binding mechanism and corresponding conversion module answered, thus compatible more programming languages, and then realize multi language programme.
Four, the plug-in unit established in conjunction with previous step, and by the programming language environment established before, on eclipse platform New language engineering project is created, so that the content of source code output page and corresponding compiler, interpreter and connector etc. are tied up It is fixed, generation is explained to be compiled, to realize programming.
(1) installation of plug-in unit: namely the preliminary combination of plug-in unit and eclipse software, and corresponding expansion is added in plug-in unit, To prove that plug-in unit is successfully installed, such as can add a menu, and Pop-up message is set in a menu in main menu, with prompt It installs successfully, as shown in Figure 12 (one two three).
(2) configuration of entire method system: i) eclipse software platform configuration, as shown in Figure 13 (one~eight), wherein " editing machine-file association " is by taking .java as an example;Ii) the configuration of plug-in card configuration file: i.e. about the configuration of configuration file, Main configuration content had been introduced when introducing configuration file above, and details are not described herein again skips with regard to this.
(3) plug-in unit and the last binding of eclipse software platform combine (by taking java language as an example):
I) new construction, click " file -- > newly-built -- > project ", in items selection guide panel, click " java-- > Java project ", as shown in Figure 14 (one two three);
Ii java class file) is established, built engineering is unfolded, scr then mouse right click is chosen, at the menu midpoint of pop-up Hit " it is newly-built -- > class ", then it is simply provided in the panel of appearance, as shown in Figure 15 (one or two);
(in the constituent instruments of created project file, such as the class file that top creates, in creation, eclipse software Plateform system can automatically generate some codes and be shown on source code output page, have following two processing sides for this partial code Formula:
(1) no matter ignoring, deletion.
(2) when creating editing machine plug-in unit, allow it only when file creates, by this part of original code according to the conversion of setting Template is converted into corresponding mother tongue code, and is shown on mother tongue code incoming page.)
Iii compiler) can be completed, next the binding of linker etc. can be carried out according to set conversion module Mother tongue programming, as shown in figure 16.
The foregoing is only a preferred embodiment of the present invention, but scope of protection of the present invention is not limited thereto, Anyone skilled in the art in the technical scope disclosed by the present invention, according to the technique and scheme of the present invention and its Inventive concept is subject to equivalent substitution or change, should be covered by the protection scope of the present invention.

Claims (6)

1. it is a kind of realize mother tongue programming systems approach, executed suitable for associated computer device, which is characterized in that including with Lower step:
One, it chooses suitable eclipse version and downloads installation, and JDK is installed, then carry out corresponding environmental variance configuration;
Two, using eclipse software as platform, programming language exploitation environment is built, the language environment of building can be divided into following three Step:
A. according to the eclipse software installed, the language development kit that installation has editing machine is carried out;
B. according to the eclipse software version installed, the compiler of corresponding programming language is installed;
C. the CompilerTools installed and eclipse software platform are bound in eclipse software;
Three, based on eclipse software, eclipse plug-in unit is created on this platform, specific:
(1) editing machine is created, structure framework is established, is chosen to be multipage editing machine, the multipage editing machine includes mother tongue incoming page With corresponding source code output page:
A, it is chosen to be StyledText control in the mother tongue incoming page, be laid out as FillLayout, and established in control Hereafter menu increases related execution function;
B, TextEditor control is chosen in the source code output page, and establishes its context menu, increases related execution function Energy;
(2) binding and preservation of content of pages resource:
A, the binding of the source code output page: it is responsible for showing English source code and final compiling, operation or generation;
B, the binding of the mother tongue incoming page: being responsible for the preservation of mother tongue input and mother tongue code, and as whether language engineering new It builds, there is the following two kinds situation:
I) engineering is newly-built: in the moment for opening source code file with this editing machine, generating one under the catalogue of source code file A and source code file text of the same name is responsible for the storage of mother tongue code;
Ii) engineering has been established: opening the moment of source code file in this editing machine, uploads existing source code text file of the same name In content to mother tongue input page;
C, content of pages stores;
(3) transformation mechanism between mother tongue incoming page and source code incoming page is set, and transformation mechanism association is converted to corresponding The mother tongue incoming page and the source code incoming page are bound, can be converted according to set conversion module by template;
Four, new language engineering is created on eclipse platform, to make the content and corresponding compiling of source code output page Device, interpreter and connector binding, explain generation to be compiled, to realize that mother tongue programs.
2. a kind of method for realizing mother tongue programming according to claim 1, which is characterized in that add phase in the plug-in unit It should expand, to prove that eclipse plug-in unit is successfully installed.
3. a kind of method for realizing mother tongue programming according to claim 1, which is characterized in that when more conversion modules are set, Judge mechanism is set in system, is allowed to independently switch conversion method and conversion module in different inputs.
4. a kind of method for realizing mother tongue programming according to claim 1, which is characterized in that according to the programming language of exploitation Program is downloaded corresponding language development kit and compiler, and is configured accordingly.
5. a kind of method for realizing mother tongue programming according to claim 1, which is characterized in that the function of mother tongue incoming page is It is responsible for mother tongue input and the preservation of mother tongue code have the following two kinds situation as whether language engineering creates:
A, engineering is newly-built: in the moment for opening source code file with this editing machine, generating one under the catalogue of source code file A and source code file text of the same name is responsible for the storage of mother tongue code;
B, engineering has been established: opening the moment of source code file in this editing machine, uploads existing source code text file of the same name In content to mother tongue input page.
6. a kind of method for realizing mother tongue programming according to claim 1, which is characterized in that the binding of the page and modulus of conversion The setting steps of plate are as follows:
A, transformation mechanism is established, and is associated with to conversion module, mother tongue incoming page and the binding of source code output page is inline, so that female The content of language incoming page is converted to English source code according to set conversion module, and is shown on the source code output page;
B, configurable system is built in editing machine, and pull out a configuration file, and conversion module is set in configuration file, So that the content of mother tongue incoming page is converted according to set conversion module, and export on the source code output page.
CN201910142906.XA 2019-02-26 2019-02-26 Method for realizing native language programming Active CN109976734B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910142906.XA CN109976734B (en) 2019-02-26 2019-02-26 Method for realizing native language programming

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910142906.XA CN109976734B (en) 2019-02-26 2019-02-26 Method for realizing native language programming

Publications (2)

Publication Number Publication Date
CN109976734A true CN109976734A (en) 2019-07-05
CN109976734B CN109976734B (en) 2022-07-12

Family

ID=67077418

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910142906.XA Active CN109976734B (en) 2019-02-26 2019-02-26 Method for realizing native language programming

Country Status (1)

Country Link
CN (1) CN109976734B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113312057A (en) * 2021-06-17 2021-08-27 上海小熊星教育科技有限公司 Code processing method, programming assisting method, medium and electronic equipment
CN113312881A (en) * 2021-05-06 2021-08-27 上海移远通信技术股份有限公司 Frequency band information conversion method and device, electronic equipment and computer storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060271920A1 (en) * 2005-05-24 2006-11-30 Wael Abouelsaadat Multilingual compiler system and method
CN102637168A (en) * 2012-03-19 2012-08-15 深圳市共进电子股份有限公司 Method for realizing automatic language translation in graphical user interface
CN104899010A (en) * 2014-03-04 2015-09-09 北京金山云网络技术有限公司 Multilingualization method and system of source code
CN108351764A (en) * 2015-10-28 2018-07-31 苹果公司 The graphical representation of data in program code editing machine

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060271920A1 (en) * 2005-05-24 2006-11-30 Wael Abouelsaadat Multilingual compiler system and method
CN102637168A (en) * 2012-03-19 2012-08-15 深圳市共进电子股份有限公司 Method for realizing automatic language translation in graphical user interface
CN104899010A (en) * 2014-03-04 2015-09-09 北京金山云网络技术有限公司 Multilingualization method and system of source code
CN108351764A (en) * 2015-10-28 2018-07-31 苹果公司 The graphical representation of data in program code editing machine

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
FOX_WAYEN: "eclipse安装图形界面插件", 《CSDN》 *
想念_呐殇: "Eclipse C/C++/JAVA编译环境配置", 《CSDN》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113312881A (en) * 2021-05-06 2021-08-27 上海移远通信技术股份有限公司 Frequency band information conversion method and device, electronic equipment and computer storage medium
CN113312881B (en) * 2021-05-06 2024-04-05 上海移远通信技术股份有限公司 Frequency band information conversion method and device, electronic equipment and computer storage medium
CN113312057A (en) * 2021-06-17 2021-08-27 上海小熊星教育科技有限公司 Code processing method, programming assisting method, medium and electronic equipment
CN113312057B (en) * 2021-06-17 2023-10-03 上海小熊星教育科技有限公司 Code processing method, programming auxiliary method, medium and electronic equipment

Also Published As

Publication number Publication date
CN109976734B (en) 2022-07-12

Similar Documents

Publication Publication Date Title
Vaupel et al. Model-driven development of mobile applications for Android and iOS supporting role-based app variability
US8429525B2 (en) Method and system for reversible design tree transformations
CN109976734A (en) A method of realizing mother tongue programming
CN110286885A (en) Automate initial development method, system, computer equipment and storage medium
Nichols et al. Creating a lightweight user interface description language: An overview and analysis of the personal universal controller project
CN109155129B (en) Language program control system
CN108446117A (en) The method and system of UI are configured in the product of voice dialogue platform
Dubois et al. An MDE-based framework to support the development of Mixed Interactive Systems
CN110362317A (en) A kind of code conversion method, device and storage medium
Blumendorf Multimodal interaction in smart environments: a model-based runtime system for ubiquitous user interfaces.
Engelen From napkin sketches to reliable software
CN114527979A (en) Method and system for generating multi-end form interactive page
CN106156110B (en) Text semantic understanding method and system
JPH10187461A (en) Language processing system
Barkati et al. Two recent extensions to the Faust compiler
Abedmouleh et al. Operationalization of Learning Scenarios on Open and Distance Learning platforms: the case of the Moodle Platform
Almeida-Martínez et al. Syntax trees visualization in language processing courses
CN114051161B (en) Webpage video playing method and device
Pnueli Embedded Systems: Challenges in Specification and Verification: An
Mamane et al. A document-oriented Coq plugin for TeXmacs
Ponder Component-based methodology and development framework for virtual and augmented reality systems
Letz et al. What's new in the faust ecosystem and community?
CN115080007A (en) Voice development method, system, electronic device, and medium
Štaka et al. Markup language model transformation with ATL
Passerone et al. Generation of minimal size code for schedule graphs

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
GR01 Patent grant
GR01 Patent grant