CN112835569A - Method and system for realizing code-to-building block conversion based on virtual reality technology - Google Patents
Method and system for realizing code-to-building block conversion based on virtual reality technology Download PDFInfo
- Publication number
- CN112835569A CN112835569A CN202110045164.6A CN202110045164A CN112835569A CN 112835569 A CN112835569 A CN 112835569A CN 202110045164 A CN202110045164 A CN 202110045164A CN 112835569 A CN112835569 A CN 112835569A
- Authority
- CN
- China
- Prior art keywords
- grammar
- building
- building block
- building blocks
- code
- 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 28
- 238000005516 engineering process Methods 0.000 title claims abstract description 26
- 238000006243 chemical reaction Methods 0.000 title claims abstract description 23
- 238000000605 extraction Methods 0.000 claims abstract description 18
- 230000009466 transformation Effects 0.000 claims abstract description 7
- 238000012800 visualization Methods 0.000 abstract description 4
- 230000000007 visual effect Effects 0.000 abstract description 3
- 230000006399 behavior Effects 0.000 description 25
- 239000004973 liquid crystal related substance Substances 0.000 description 4
- 239000000463 material Substances 0.000 description 4
- 238000010586 diagram Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/34—Graphical or visual programming
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
- G06F8/42—Syntactic analysis
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention provides a method and a system for realizing code-to-building block conversion based on a virtual reality technology, belonging to the technical field of programming learning of children, and comprising the steps of 1) building a building block library; 2) grammar extraction; 3) and (4) transformation. By the method for realizing the code-to-building block based on the virtual reality technology, teachers can call building blocks in soft connection with programming grammars at any time when explaining programming contents, the programming contents and the building blocks are combined for explanation, the programming contents are more visual, the visualization of the programming contents is realized, children can understand the programming contents more easily, and the course contents are more interesting.
Description
Technical Field
The invention belongs to the technical field of programming learning of children, relates to a technology for converting a code into a visual building block, and particularly relates to a method and a system for converting the code into the building block based on a virtual reality technology.
Background
Learning programming for children can exercise the abstract thinking ability of children and train the programming thinking mode of children, but learning programming requires children to abstract concrete objects into codes which can be recognized by a computer, and needs to remember grammars and complex instructions in programming languages, which is difficult for children to understand and remember, especially for children who have not been well mastered with characters, and is difficult for listeners to understand and remember, and simultaneously because the programming content is not intuitive and cannot be visualized, the programming is difficult for listeners to understand, and the teaching of teachers is also laborious.
Disclosure of Invention
Aiming at the problems that the content of the existing child programming course is not intuitive, the visualization can not be realized and the listener can not easily understand the existing child programming course, the invention provides a method and a system for realizing code-to-building block conversion based on a virtual reality technology, and the specific technical scheme is as follows:
a method for realizing code-to-building block conversion based on virtual reality technology comprises the following steps:
1) building a building block warehouse: the building block library comprises a plurality of building blocks with attribute labels;
2) grammar extraction: extracting all grammar information in a code written by a user;
3) and (3) transformation: and flexibly connecting the grammar information with the building blocks through the building block attribute labels, and converting the codes into the building blocks.
In a further definition of the method,
the step 2) further comprises the following steps: classifying the extracted grammar information, wherein the classified category corresponds to the attribute label of the building block;
the step 3) is specifically as follows: and carrying out soft connection on the classified grammar information and the building blocks through the building block attribute labels, and converting the codes into the building blocks.
In a further definition of the method,
the attribute labels of the building blocks in the step 1) comprise basic grammar attributes, logic operation attributes, 3D behavior attributes and animation sound attributes;
and the grammar information in the step 2) is divided into basic grammar, logic operation grammar, 3D behavior grammar and animation sound grammar.
Further defined, the code is written in a python language.
Further limiting, the grammar information is one or more; one or more building blocks for soft connection; the code is converted into a building block or a combination of a plurality of building blocks.
The system for realizing code-to-building block conversion based on the virtual reality technology comprises a building block library building module, a grammar extracting module and a converting module;
the building block warehouse building module comprises: a building block for storing a plurality of building blocks with attribute tags;
the grammar extraction module: the method comprises the steps of extracting grammar information in code written by a user;
the conversion module is used for: and flexibly connecting the grammar information with the building blocks through the building block attribute labels, and converting the codes into the building blocks.
In a further definition of the method,
the grammar extraction module further includes: classifying the extracted grammar information, wherein the classified category corresponds to the attribute label of the building block;
the conversion module is used for: and the system is used for carrying out soft connection on the classified grammar information and the building blocks through the building block attribute labels and converting the codes into the building blocks.
In a further definition of the method,
the attribute labels of the building blocks in the building block library building module comprise basic grammar attributes, logical operation attributes, 3D behavior attributes and animation sound attributes;
the grammar information in the grammar extraction module is divided into basic grammar, logic operation grammar, 3D behavior grammar and animation sound grammar.
Further defined, the code is written in a python language.
Further limiting, the grammar information is one or more; one or more building blocks for soft connection; the code is converted into a building block or a combination of a plurality of building blocks.
Compared with the prior art, the invention has the beneficial effects that:
1. the invention relates to a method for realizing code-to-building block based on virtual reality technology, which comprises the steps of 1) building a building block library; 2) grammar extraction; 3) and (4) transformation. Building blocks with attribute labels are included in the building block library building process; the grammar extraction process can extract all grammar information in a code written by a user; in the conversion process, grammar information is in soft connection with the building blocks through the building block attribute tags, and codes are converted into the building blocks. When a teacher explains the programming content, the building blocks flexibly connected with the programming grammar can be called at any time, the programming content and the building blocks are combined to explain, the programming content is more visual, the visualization of the programming content is realized, the teaching method is also easier for children to understand, and the course content is more interesting.
2. The attribute labels of the building blocks comprise basic grammar attributes, logic operation attributes, 3D behavior attributes and animation sound attributes; the grammar in the extracted code comprises basic grammar, logical operation grammar, 3D behavior grammar and animation sound grammar; so that the grammar in the extracted code can be more accurately matched with the attribute labels of the building blocks.
Drawings
FIG. 1 is a schematic process diagram of a method for implementing a code-to-building block based on a virtual reality technology according to the present invention;
FIG. 2 is a schematic diagram of a system for implementing a code-to-building block based on a virtual reality technology according to the present invention.
Detailed Description
The technical solutions of the present invention will be further explained below with reference to the drawings and examples, but the present invention is not limited to the embodiments explained below.
The invention discloses a method for realizing code-to-building block conversion based on virtual reality technology, which comprises the following steps:
1) building a building block warehouse: the building block library comprises a plurality of building blocks with attribute labels;
2) grammar extraction: extracting all grammar information in a code written by a user;
3) and (3) transformation: and flexibly connecting the grammar information with the building blocks through the building block attribute labels, and converting the codes into the building blocks.
Preferably, the first and second liquid crystal materials are,
step 2) also includes: classifying the extracted grammar information, wherein the classified category corresponds to the attribute label of the building block;
the step 3) is specifically as follows: and carrying out soft connection on the classified grammar information and the building blocks through the building block attribute labels, and converting the codes into the building blocks.
Preferably, the first and second liquid crystal materials are,
the attribute labels of the building blocks in the step 1) comprise basic grammar attributes, logic operation attributes, 3D behavior attributes and animation sound attributes;
and in the step 2), the grammar information is divided into basic grammar, logic operation grammar, 3D behavior grammar and animation sound grammar.
Preferably, the code is written in the python language.
Preferably, the grammar information is one or more; one or more building blocks for soft connection; the code is converted into a building block or a combination of a plurality of building blocks.
The invention relates to a system for realizing code-to-building block conversion based on a virtual reality technology, which comprises a building block library building module, a grammar extracting module and a converting module;
building a building block warehouse: a building block for storing a plurality of building blocks with attribute tags;
a grammar extraction module: the method comprises the steps of extracting grammar information in code written by a user;
a conversion module: and flexibly connecting the grammar information with the building blocks through the building block attribute labels, and converting the codes into the building blocks.
Preferably, the first and second liquid crystal materials are,
the grammar extraction module further includes: classifying the extracted grammar information, wherein the classified category corresponds to the attribute label of the building block;
a conversion module: and the system is used for carrying out soft connection on the classified grammar information and the building blocks through the building block attribute labels and converting the codes into the building blocks.
Preferably, the first and second liquid crystal materials are,
the attribute labels of the building blocks in the building block library building module comprise basic grammar attributes, logical operation attributes, 3D behavior attributes and animation sound attributes;
the grammar information in the grammar extraction module is divided into basic grammar, logic operation grammar, 3D behavior grammar and animation sound grammar.
Preferably, the code is written in the python language.
Preferably, the grammar information is one or more; one or more building blocks for soft connection; the code is converted into a building block or a combination of a plurality of building blocks.
Example 1
Referring to fig. 1, the method for implementing a code-to-building block based on a virtual reality technology in the present embodiment includes the following steps:
1) building a building block warehouse: the building blocks comprise 4 building blocks with attribute tags, and the 4 building blocks with the attribute tags are respectively basic grammar attributes, logic operation attributes, 3D behavior attributes and animation sound attributes;
2) grammar extraction: extracting all grammar information in a code written by a user by using a python language, and dividing the extracted grammar information into four types of basic grammar, logic operation grammar, 3D behavior grammar and animation sound grammar;
3) and (3) transformation: and carrying out soft connection on the extracted basic grammar, the logic operation grammar, the 3D behavior grammar and the animation sound grammar and the basic grammar attribute, the logic operation attribute, the 3D behavior attribute and the animation sound attribute of the corresponding building block, and converting the code into the building block.
Through turning into the code building block, make the mr when explaining programming content, can combine programming content and building block and talk back, make programming content more directly perceived, realized programming content's visualization, also understand more easily to children, make course content richen interesting more.
The method for realizing the code-to-building block based on the virtual reality technology is specifically explained by taking the example that a teacher needs to explain a room about realizing one walk by using python language, and the steps are as follows:
1) building a building block warehouse: the building block library comprises 4 building blocks with attribute labels, which are respectively a basic grammar attribute, a logical operation attribute, a 3D behavior attribute and an animation sound attribute, wherein the basic grammar attribute is all basic grammars required for constructing a model of a person, the logical operation attribute is logical judgment when the person walks and comprises the steps of firstly taking a left leg or a right leg, turning in a plurality of steps, stopping in a plurality of steps and the like, the 3D behavior attribute is a walking action of the person, comprises a leg-taking action and an arm-throwing action, and the animation sound attribute is a sound effect when the person walks;
2) grammar extraction: extracting all grammar information in a code written by a user by using a python language, and dividing the extracted grammar information into four types of basic grammar, logic operation grammar, 3D behavior grammar and animation sound grammar; the basic grammar is all grammars required for constructing a model of one person, the logical operation grammar is all logical judgment grammars when one person walks, the 3D behavior grammar is all action grammars when one person walks, and the animation sound grammar is all sound grammars when one person walks;
3) and (3) transformation: and carrying out soft connection on the extracted basic grammar, the logic operation grammar, the 3D behavior grammar and the animation sound grammar and the basic grammar attribute, the logic operation attribute, the 3D behavior attribute and the animation sound attribute of the corresponding building block, and converting the code into the building block.
When a teacher explains the programming content, the teacher can call out the building blocks with the attribute tags corresponding to the written code grammar to degrade, so that the code is visually explained, and the content is easier to understand and more intuitive.
Example 2
Referring to fig. 2, the system for implementing a code-to-building block based on a virtual reality technology in the embodiment includes a building block library building module, a grammar extracting module and a converting module;
building a building block warehouse: the system comprises a storage module, a logic operation module, a 3D (three-dimensional) behavior module and an animation sound module, wherein the storage module is used for storing 4 building blocks with attribute tags, and the 4 building blocks with the attribute tags are respectively a basic grammar attribute, a logic operation attribute, a 3D behavior attribute and an animation sound attribute;
a grammar extraction module: the system is used for extracting all grammar information in a code written by a user by using a python language, and dividing the extracted grammar information into four types of basic grammar, logic operation grammar, 3D behavior grammar and animation sound grammar;
a conversion module: and the system is used for carrying out soft connection on the extracted basic grammar, the logic operation grammar, the 3D behavior grammar and the animation sound grammar and the basic grammar attribute, the logic operation attribute, the 3D behavior attribute and the animation sound attribute of the corresponding building block, and converting the code into the building block.
Claims (10)
1. The method for realizing the code-to-building block based on the virtual reality technology is characterized by comprising the following steps of:
1) building a building block warehouse: the building block library comprises a plurality of building blocks with attribute labels;
2) grammar extraction: extracting all grammar information in a code written by a user;
3) and (3) transformation: and flexibly connecting the grammar information with the building blocks through the building block attribute labels, and converting the codes into the building blocks.
2. The method for implementing code conversion to building blocks based on virtual reality technology as claimed in claim 1,
the step 2) further comprises the following steps: classifying the extracted grammar information, wherein the classified category corresponds to the attribute label of the building block;
the step 3) is specifically as follows: and carrying out soft connection on the classified grammar information and the building blocks through the building block attribute labels, and converting the codes into the building blocks.
3. The method for implementing code conversion to building blocks based on virtual reality technology as claimed in claim 2,
the attribute labels of the building blocks in the step 1) comprise basic grammar attributes, logic operation attributes, 3D behavior attributes and animation sound attributes;
and the grammar information in the step 2) is divided into basic grammar, logic operation grammar, 3D behavior grammar and animation sound grammar.
4. A method for implementing code into building blocks based on virtual reality technology as claimed in any one of claims 1 to 3, wherein the code is written in python language.
5. The method of claim 4, wherein the grammar information is one or more; one or more building blocks for soft connection; the code is converted into a building block or a combination of a plurality of building blocks.
6. The system for realizing code-to-building block conversion based on the virtual reality technology is characterized by comprising a building block library building module, a grammar extracting module and a converting module;
the building block warehouse building module comprises: a building block for storing a plurality of building blocks with attribute tags;
the grammar extraction module: the method comprises the steps of extracting grammar information in code written by a user;
the conversion module is used for: and flexibly connecting the grammar information with the building blocks through the building block attribute labels, and converting the codes into the building blocks.
7. The system for implementing code conversion blocks based on virtual reality technology as claimed in claim 6,
the grammar extraction module further includes: classifying the extracted grammar information, wherein the classified category corresponds to the attribute label of the building block;
the conversion module is used for: and the system is used for carrying out soft connection on the classified grammar information and the building blocks through the building block attribute labels and converting the codes into the building blocks.
8. The system for implementing code conversion blocks based on virtual reality technology as claimed in claim 7,
the attribute labels of the building blocks in the building block library building module comprise basic grammar attributes, logical operation attributes, 3D behavior attributes and animation sound attributes;
the grammar information in the grammar extraction module is divided into basic grammar, logic operation grammar, 3D behavior grammar and animation sound grammar.
9. A system for realizing code conversion into building blocks based on virtual reality technology according to any claim 6 to 8, wherein the code is written by python language.
10. The system for implementing code conversion into building blocks based on virtual reality technology as claimed in claim 9, wherein the grammar information is one or more; one or more building blocks for soft connection; the code is converted into a building block or a combination of a plurality of building blocks.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110045164.6A CN112835569A (en) | 2021-01-13 | 2021-01-13 | Method and system for realizing code-to-building block conversion based on virtual reality technology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110045164.6A CN112835569A (en) | 2021-01-13 | 2021-01-13 | Method and system for realizing code-to-building block conversion based on virtual reality technology |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112835569A true CN112835569A (en) | 2021-05-25 |
Family
ID=75927990
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110045164.6A Pending CN112835569A (en) | 2021-01-13 | 2021-01-13 | Method and system for realizing code-to-building block conversion based on virtual reality technology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112835569A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112732247A (en) * | 2021-01-13 | 2021-04-30 | 王亚刚 | Event generation method and event generation system based on virtual reality technology |
CN114201163A (en) * | 2022-02-21 | 2022-03-18 | 北京布局未来教育科技有限公司 | Graphical programming module design method and device, electronic equipment and medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103197929A (en) * | 2013-03-25 | 2013-07-10 | 中国科学院软件研究所 | System and method for graphical programming facing children |
CN106406513A (en) * | 2016-06-29 | 2017-02-15 | 车广为 | Three-dimensional data building block |
CN108806405A (en) * | 2018-06-28 | 2018-11-13 | 山东师范大学 | A kind of material objectization children program building blocks and its application method |
CN109284100A (en) * | 2018-07-30 | 2019-01-29 | 深圳点猫科技有限公司 | The rendering method and system of graphical programming language for subject cognitive tool |
CN109634592A (en) * | 2018-12-29 | 2019-04-16 | 深圳点猫科技有限公司 | Graphical Python programming exchange method, system and electronic equipment |
CN109710242A (en) * | 2018-12-29 | 2019-05-03 | 深圳点猫科技有限公司 | Exchange method, system and the electronic equipment of web terminal graphic programming |
CN111640339A (en) * | 2020-05-29 | 2020-09-08 | 中国科学院自动化研究所 | Immersive virtual reality device, system and control method |
CN111897256A (en) * | 2020-07-16 | 2020-11-06 | 深圳市科科萌科技有限公司 | Children programming control system |
-
2021
- 2021-01-13 CN CN202110045164.6A patent/CN112835569A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103197929A (en) * | 2013-03-25 | 2013-07-10 | 中国科学院软件研究所 | System and method for graphical programming facing children |
CN106406513A (en) * | 2016-06-29 | 2017-02-15 | 车广为 | Three-dimensional data building block |
CN108806405A (en) * | 2018-06-28 | 2018-11-13 | 山东师范大学 | A kind of material objectization children program building blocks and its application method |
CN109284100A (en) * | 2018-07-30 | 2019-01-29 | 深圳点猫科技有限公司 | The rendering method and system of graphical programming language for subject cognitive tool |
CN109634592A (en) * | 2018-12-29 | 2019-04-16 | 深圳点猫科技有限公司 | Graphical Python programming exchange method, system and electronic equipment |
CN109710242A (en) * | 2018-12-29 | 2019-05-03 | 深圳点猫科技有限公司 | Exchange method, system and the electronic equipment of web terminal graphic programming |
CN111640339A (en) * | 2020-05-29 | 2020-09-08 | 中国科学院自动化研究所 | Immersive virtual reality device, system and control method |
CN111897256A (en) * | 2020-07-16 | 2020-11-06 | 深圳市科科萌科技有限公司 | Children programming control system |
Non-Patent Citations (1)
Title |
---|
王婷婷;王丹力;路璐;何亮;王宏安;戴国忠;: "面向儿童的图形化编程语言和工具", 计算机辅助设计与图形学学报, no. 04 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112732247A (en) * | 2021-01-13 | 2021-04-30 | 王亚刚 | Event generation method and event generation system based on virtual reality technology |
CN112732247B (en) * | 2021-01-13 | 2024-05-24 | 王亚刚 | Event occurrence method and event occurrence system based on virtual reality technology |
CN114201163A (en) * | 2022-02-21 | 2022-03-18 | 北京布局未来教育科技有限公司 | Graphical programming module design method and device, electronic equipment and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Scurati et al. | Converting maintenance actions into standard symbols for Augmented Reality applications in Industry 4.0 | |
Ward | Structured development for real-time systems: Vol. I: Introduction and tools | |
CN102609991B (en) | Volume-reduction optimization method for three-dimensional solid model | |
KR20210124938A (en) | Event extraction method, device, electronic equipment and storage medium | |
CN112835569A (en) | Method and system for realizing code-to-building block conversion based on virtual reality technology | |
CN109947915B (en) | Knowledge management system-based artificial intelligence expert system and construction method thereof | |
CN105047029A (en) | Courseware generating method used for automatically demonstrating geometry problem solving process | |
JP2021168139A (en) | Method, device, apparatus and medium for man-machine interactions | |
CN105574133A (en) | Multi-mode intelligent question answering system and method | |
CN112508750A (en) | Artificial intelligence teaching device, method, equipment and storage medium | |
CN106909686A (en) | A kind of man-machine interaction builds user's portrait cluster calculation method | |
CN110149265B (en) | Message display method and device and computer equipment | |
CN105844986B (en) | A kind of English teaching system based on intelligent terminal | |
CN103809694A (en) | Handwriting recognition child intelligent learning system based on intelligent terminal | |
KR20180124310A (en) | Modular Robot System for Coding Education Using Artificial Intelligence | |
Haug et al. | A layout technique for class diagrams to be used in product configuration projects | |
Lee et al. | Educational Virtual Reality implementation on English for Tourism Purpose using knowledge-based engineering | |
CN114969282B (en) | Intelligent interaction method based on rich media knowledge graph multi-modal emotion analysis model | |
CN102044176A (en) | Interactive instructional device and instructional method thereof | |
CN114461777A (en) | Intelligent question and answer method, device, equipment and storage medium | |
CN201946138U (en) | Interactive teaching device | |
CN113254814A (en) | Network course video labeling method and device, electronic equipment and medium | |
WO2023078197A1 (en) | Classroom activity courseware producing method and apparatus, and storage medium and electronic device | |
CN103325360A (en) | Field type LCD display method | |
CN102662497A (en) | Multifunctional point reading pen having screen and method for realizing reading guidance of the Koran |
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 |