Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Writing a scripting language

Writing a scripting language

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestionc++help
3 Posts 3 Posters 0 Views 1 Watching
  • 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.
  • D Offline
    D Offline
    Dev578
    wrote on last edited by
    #1

    I have run into some problems while trying to write a scripting language in VC++ 7. I want it to all be in an edit box. For example, if the user types this in the edit box: String MyString = "Hello"; if (MyString == "Hello") sendkeys(Hello); else MoveMouse(160,480); end; Quite a pointless program, but I am having a hard time handling it with C++. How do I handle the boolean logic, and how would I get both of the parameters of the MouseMove function. I would like the program to execute from the top to the bottom. Anyone have any idea how to do this? I just need the basic idea of how to do it. Any help would be appreciated:) -Dev578

    C M 2 Replies Last reply
    0
    • D Dev578

      I have run into some problems while trying to write a scripting language in VC++ 7. I want it to all be in an edit box. For example, if the user types this in the edit box: String MyString = "Hello"; if (MyString == "Hello") sendkeys(Hello); else MoveMouse(160,480); end; Quite a pointless program, but I am having a hard time handling it with C++. How do I handle the boolean logic, and how would I get both of the parameters of the MouseMove function. I would like the program to execute from the top to the bottom. Anyone have any idea how to do this? I just need the basic idea of how to do it. Any help would be appreciated:) -Dev578

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      writing an interpreter is a huge task. if you don't know where to begin, you're much better off using an interpreter that's already written. there are free interpreters for many languages out there, including things like VBScript, Tcl, Lua, Python, Ruby, etc.. try Google. Cleek | Losinger Designs | ClickPic | ThumbNailer

      1 Reply Last reply
      0
      • D Dev578

        I have run into some problems while trying to write a scripting language in VC++ 7. I want it to all be in an edit box. For example, if the user types this in the edit box: String MyString = "Hello"; if (MyString == "Hello") sendkeys(Hello); else MoveMouse(160,480); end; Quite a pointless program, but I am having a hard time handling it with C++. How do I handle the boolean logic, and how would I get both of the parameters of the MouseMove function. I would like the program to execute from the top to the bottom. Anyone have any idea how to do this? I just need the basic idea of how to do it. Any help would be appreciated:) -Dev578

        M Offline
        M Offline
        Maxwell Chen
        wrote on last edited by
        #3

        Chris is right. It's really a huge task. But if you insist, books like this kind would be very helpful to you : Writing compilers and interpreters[^]. After all, innovation drives the world to get better and better. :-D Maxwell Chen

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups