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 lexer for our own language

writing lexer for our own language

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
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.
  • M Offline
    M Offline
    mirraa
    wrote on last edited by
    #1

    hi, i have created a syntax colorising editor by usung "Scintillawnd" class and "Scilexer.dll" from the procrdure you have given . But i want to use it for some other language(ATLAS) ,for that which procedure i have to fallow? can i modify one of existing lexer (corresponding "*.c" file) to work according to my language synatax ? after modifying the one of existing lexer (corresponding "*.c" file) how i can include it to my project.? or i have to create a new lexer? if have to create which procedure i have to fallow? please give me the solution ....i am unable to understand the procedure given in the scintilla documents . thats why i am placing my doubt here...please help me..please...

    R 1 Reply Last reply
    0
    • M mirraa

      hi, i have created a syntax colorising editor by usung "Scintillawnd" class and "Scilexer.dll" from the procrdure you have given . But i want to use it for some other language(ATLAS) ,for that which procedure i have to fallow? can i modify one of existing lexer (corresponding "*.c" file) to work according to my language synatax ? after modifying the one of existing lexer (corresponding "*.c" file) how i can include it to my project.? or i have to create a new lexer? if have to create which procedure i have to fallow? please give me the solution ....i am unable to understand the procedure given in the scintilla documents . thats why i am placing my doubt here...please help me..please...

      R Offline
      R Offline
      Rage
      wrote on last edited by
      #2

      mirraa wrote:

      i have to create a new lexer? if have to create which procedure i have to fallow?

      This is all well explained in the documentation that comes with the source code of Scintilla. Basically, it is better to duplicate one existing language lexer, at best the one that best matches your new language, rename-it and include it in the project.

      http://www.readytogiveup.com/[^] - Do something special today. http://www.totalcoaching.ca/[^] - Give me some feedback about this site !

      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