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. how can i define a new language in VC++ ??

how can i define a new language in VC++ ??

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestionc++help
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 everybody, my project module is to develop a graphical language in vc++. we have to declare a few keywords,graphical routines,looping statements etc. Using the syntax that we declared earlier, telling the user to follow that syntax to code it. My problem is, how can i define these langauage primitives and compile it to produce the output. FOr example, the user code in editor, # start text "Mahe" 123 232 Bold cirlce 232 232 21 line 232 232 232 121 # stop our compiler(VC++) has to read all this code and produce a graphical output.please guide me for , how to analyze this project. first i have to spec it out the language keywords etc and all...please suggest me to workout this project Mahesh Kumar,b'lore

    T 1 Reply Last reply
    0
    • C cyberiafreak

      hello everybody, my project module is to develop a graphical language in vc++. we have to declare a few keywords,graphical routines,looping statements etc. Using the syntax that we declared earlier, telling the user to follow that syntax to code it. My problem is, how can i define these langauage primitives and compile it to produce the output. FOr example, the user code in editor, # start text "Mahe" 123 232 Bold cirlce 232 232 21 line 232 232 232 121 # stop our compiler(VC++) has to read all this code and produce a graphical output.please guide me for , how to analyze this project. first i have to spec it out the language keywords etc and all...please suggest me to workout this project Mahesh Kumar,b'lore

      T Offline
      T Offline
      TrueKaine
      wrote on last edited by
      #2

      Hello! If grammar in your language is simple You must learn about(as minimal) regular expression: http://www.codeproject.com/cpp/OwnRegExpressionsParser.asp if grammar in your language is difficult(above 50 grammar rules), you must learn compiler design theory and use compiler-of-compiler for example yacc.

      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