Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    The first look of the interpretor

    Work In Progress
    9
    79
    15975
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • SteveZX81
      SteveZX81 F last edited by

      To be totally honest I've never used python and I don't know the first thing about it but I wish you well and hope you succeed!

      P 1 Reply Last reply Reply Quote 1
      • P
        petermeisenstein F @SteveZX81 last edited by

        @SteveZX81 I will and thanks in the name of FuPy

        1 Reply Last reply Reply Quote 0
        • P
          petermeisenstein F last edited by

          So in the moment it is pending

          1 Reply Last reply Reply Quote 0
          • P
            petermeisenstein F last edited by

            But here is my friendscode SW-8169-5640-6120

            1 Reply Last reply Reply Quote 0
            • P
              petermeisenstein F last edited by

              ITS Live now Code is NXE269QD9Q Have fun

              1 Reply Last reply Reply Quote 1
              • PB____
                PB____ last edited by

                Now I have the update :)
                I see it recognizes int and float if I type that in exactly.
                For the other things you can type in a=Nonepasstrprint(): ;-)

                P 1 Reply Last reply Reply Quote 1
                • P
                  petermeisenstein F @PB____ last edited by

                  @PB____ Modify if you want but I have to keep close to the Python Syntaxt

                  1 Reply Last reply Reply Quote 0
                  • P
                    petermeisenstein F last edited by petermeisenstein

                    New Stuff added:So guys i added some new datatypes for the parser.Keep in mind this version in the moment is not complet and i think i have to rewrite the hole stuff but at the moment this is the best what i can do with my skills hope you enjoy.PS its pending EQSLNtzUEAAAzP6.jpg EQSLJjXVUAAexis.jpg

                    1 Reply Last reply Reply Quote 0
                    • P
                      petermeisenstein F last edited by

                      New version is now live

                      1 Reply Last reply Reply Quote 0
                      • P
                        petermeisenstein F last edited by

                        If there are any problems please contact me

                        1 Reply Last reply Reply Quote 0
                        • P
                          petermeisenstein F last edited by

                          Later I will maybe implement raw_input so that you guys have an input available.I think this will be very easy and i think its possible with getkeyboardbuffer

                          1 Reply Last reply Reply Quote 0
                          • P
                            petermeisenstein F last edited by petermeisenstein

                            So guys today I added some Exceptions.
                            I didnt implemt raw_input but this is a feature what will come definitely.
                            I also recognized that in the moment we have more a python console.
                            What also will come very soon is if you type in 1+2 you will get 3.
                            Programm is shared but its on pending.
                            EQWWXnzUwAASu74.jpg

                            1 Reply Last reply Reply Quote 0
                            • P
                              petermeisenstein F last edited by

                              Code for Download is NXE269QD9Q

                              1 Reply Last reply Reply Quote 0
                              • P
                                petermeisenstein F last edited by

                                Now the new version is online enjoy it

                                1 Reply Last reply Reply Quote 0
                                • P
                                  petermeisenstein F last edited by petermeisenstein

                                  BREAKING NEWS: i implemented a very easy calculator but now you can calculate on one line it works but only for little numbers EQWvIMkU4AAMbSa.jpg EQWvEZQU4AAGkqQ.jpg

                                  1 Reply Last reply Reply Quote 0
                                  • P
                                    petermeisenstein F last edited by

                                    Programm is on pending now

                                    1 Reply Last reply Reply Quote 0
                                    • P
                                      petermeisenstein F last edited by

                                      Now the new version is Live Check it out with code NXE269QD9Q.
                                      Type for exampe in 1+1 and you will get 2.
                                      Its very primitive and not as good as the stuff we saw yesterday from mario bodemann

                                      1 Reply Last reply Reply Quote 0
                                      • P
                                        petermeisenstein F last edited by

                                        You maybe ask your self way there are no if statements currently available on the interpretor.The Problem is because of my skills in building lexers.
                                        at next there will be at first a print function.But maybe some other stuff.I cant promise anything but i try to make every day a new update for it

                                        1 Reply Last reply Reply Quote 0
                                        • Dave
                                          Dave Fuze Team last edited by Dave

                                          While this project is in no way my area of experience, from looking at your program it seems you could really use a function to handle the printing commands.

                                          print(things)
                                          update()
                                          sleep(5)
                                          clear()
                                          

                                          These four lines could be a user-defined function, which you could pass things to print:

                                          function consolePrint(value, delay)
                                              print(value)
                                              update()
                                              sleep(delay)
                                              clear()
                                          return void
                                          

                                          Then you could replace all of those 4 lines inside your if statements with the function. For example:

                                          if console == "NameError" then
                                              consolePrint("<type 'exceptions.NameError'>", 5)
                                          endif
                                          

                                          This might clean up your program somewhat, it would certainly shorten it a fair bit!

                                          P 1 Reply Last reply Reply Quote 1
                                          • P
                                            petermeisenstein F last edited by

                                            Thanks for the idea

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post