|
-
Mar 18th, 2022, 10:28 AM
#1
Thread Starter
Addicted Member
Do Simple programming language interpreter and editor for kids
Hello programmers have already made the basis of my programming language and the compiler however I am creating an editor coupled with the interpreter because my language will only be compiled if i have this editor that would be similar to visual studio the goal is to help children learn logic programming and create their executeableto play anything too advanced or too basic. I check the interpreter if it contains the word and cut it and picks up the next argument and interprets it and cuts it after cutting each line and idenfiticar each command it jumps to the method that does the function of each and assembles the compiled file with the instructions of the language. it's pretty simple however I'm having a problem that is my language it's like c# in direct command of single line is perfect to do this, but I do command with keys and it gets very bad to take inside the keys and assign that command, any idea how to do this ?
See:
integer i = 0;
Do{
Print("Any Text");
}(while i = 0);
if ( i < 1 ) {
Print ("True");
}
as shown the top he would totally ignore the keys by sequestest element by element the idea would be to say that the keys are part of the block of that if I have experience in assembling apps and creating advanced things and Understand the concept of compiler and interpreter but as it is well basic what I want and does not have an end of quick execution or functionality just for children to learn and like this world I would like a light, or book or example of someone who did something like that.
-
Mar 19th, 2022, 01:16 PM
#2
Re: Do Simple programming language interpreter and editor for kids
Are you trying to develop your own programming language for people to learn programming? It's hard to tell with that spelling. And why is this in the vb forum?
-
Mar 19th, 2022, 07:00 PM
#3
Re: Do Simple programming language interpreter and editor for kids
You're going to have to try to explain that better. Your OP reads like something from Google Translate which isn't bad for a conversation in a bar but terrible for describing programming problems because specific details are too important to have ambiguous meaning.
-
Mar 19th, 2022, 10:40 PM
#4
New Member
Re: Do Simple programming language interpreter and editor for kids
Are you saying you want to encode modular blocks of code into keys that kids could press to program.
I read your post many times but I’m still not sure sorry.
How old is your intended audience?
10 or less I would do bright colourful pics that are descriptive but simple with simple code displayed in a window next to it.
The child wants to add 10 + 1 so they select a pic of 10 pic of + and pic of 1.
The code appears and is simply Do 10 + 1 but the underlying code (which is not shown) might be more complex.
A loop might be a pic with the word Loop and a number control to adjust iterations and code Do x Times 10 + 1 etc
I’m not sure whether I’m answering the question you asked though, good luck 👍
-
Mar 20th, 2022, 01:46 AM
#5
Re: Do Simple programming language interpreter and editor for kids
Have a look at block based coding languages, such as swift. To create a running application from user-entered blocks, have a look at the CodeDomProvider class
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|