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. developing a small scripting langauge in VC++ ??

developing a small scripting langauge in VC++ ??

Scheduled Pinned Locked Moved C / C++ / MFC
c++graphicstoolshelptutorial
2 Posts 2 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.
  • C Offline
    C Offline
    cyberiafreak
    wrote on last edited by
    #1

    hello pals, i'm new guy to this forum. im doing project in VC++ and also new to VC++. interestingly i have to develop a small scripting language using vC++ for performing graphical functions. that is creating a small graphical package using VC++. consider the user doen't know anything about the syntax for performing graphics using VC++. we are defining a new set of our control with syntax and one looping statements to perform grp.o/p 1. suppose user writes a code for displaying a multicircle on the screen.but he doesn'nt know anything about the VC++ circle ...etc. but using our script he can perform his job. ex: # start drawcirle 123,233 . . . # end but our VC++ program should acts as an interpreter to convert our defined scrts to appr..vc++ graphical routines.that is developing a compiler using a VC++ compiler. pleassse help me to work out my module given by my guide.Atleast suggest me where i have to start and in which part of VC++ i have to concentrate. First he told me spec it out the project, but i do know what to spec it out. my module include, #1. defining a few datatypes,graphical scripts and anyone looping stmt. 2. using (module #1) the programmer writes his code. 3. We have to execute the code by interpreting to VC++ grahical function. i posted in many forums, but one of my friend gave this site.. with regards, Mahesh:zzz:

    A 1 Reply Last reply
    0
    • C cyberiafreak

      hello pals, i'm new guy to this forum. im doing project in VC++ and also new to VC++. interestingly i have to develop a small scripting language using vC++ for performing graphical functions. that is creating a small graphical package using VC++. consider the user doen't know anything about the syntax for performing graphics using VC++. we are defining a new set of our control with syntax and one looping statements to perform grp.o/p 1. suppose user writes a code for displaying a multicircle on the screen.but he doesn'nt know anything about the VC++ circle ...etc. but using our script he can perform his job. ex: # start drawcirle 123,233 . . . # end but our VC++ program should acts as an interpreter to convert our defined scrts to appr..vc++ graphical routines.that is developing a compiler using a VC++ compiler. pleassse help me to work out my module given by my guide.Atleast suggest me where i have to start and in which part of VC++ i have to concentrate. First he told me spec it out the project, but i do know what to spec it out. my module include, #1. defining a few datatypes,graphical scripts and anyone looping stmt. 2. using (module #1) the programmer writes his code. 3. We have to execute the code by interpreting to VC++ grahical function. i posted in many forums, but one of my friend gave this site.. with regards, Mahesh:zzz:

      A Offline
      A Offline
      Antti Keskinen
      wrote on last edited by
      #2

      If you are trying to build a complete scripting engine, you're in too deep. I'd suggest that you first attempt to create a simple program that reads text files and draws graphic according to those. When you succeed in this, just implement text-editing and row-manipulation routines to your program and you have precisely what you need. For a start, first create the specification. Decide what graphic routines you are planning to use: Win32, DirectX, OpenGL or what. Then decide what drawing routines your scripting language supports: can you draw a circle, a rectangle, a triangle or all of these ? If you resort to Win32, then your task becomes even simpler: just create a parsing function that is able to intepret the scripting language's commands. Then the intepreter calls the appropriate Win32 routine to draw the requested graphic. As the program itself will worry about creating the target window, pencils, brushes etc, then the parser should be quite simple. For more complex object support, just add a more logic to the parser and make it call several drawing routines if required. If you are new to Windows-programming, then I suggest purchasing a book by Charles Petzold called Programming Windows. This book is "The Bible" of Windows-programming: it explains every little detail deeply enough for anyone familiar with C/C++ to understand. If you're out of luck and can't get this book, there are several articles available here at CodeProject. Here is a good place to start looking http://www.codeproject.com/gdi/[^] -Antti Keskinen ---------------------------------------------- The definition of impossible is strictly dependant on what we think is possible.

      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