Results 1 to 5 of 5

Thread: Do Simple programming language interpreter and editor for kids

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2021
    Posts
    166

    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.

  2. #2
    Frenzied Member
    Join Date
    Feb 2003
    Posts
    1,945

    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?

  3. #3
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    9,017

    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.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  4. #4
    New Member
    Join Date
    Mar 2022
    Posts
    12

    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 👍

  5. #5
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,413

    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

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
  •  



Click Here to Expand Forum to Full Width