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. The Lounge
  3. so this is a cool thing - more gplex stuff

so this is a cool thing - more gplex stuff

Scheduled Pinned Locked Moved The Lounge
htmlcsharpperlregexxml
4 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.
  • H Offline
    H Offline
    honey the codewitch
    wrote on last edited by
    #1

    i got gplex working with Parsley and it's a joy because I don't have to use gplex's grotty input files directly - they're ugly but flexible - a bit like perl is. now I can generate them from my simple, elegant XBNF format. Not only that, my generated code extends gplex lexers to implement IEnumerable so you can for each over them just like you can with Rolex lexers. That also means they'll work with the backtracking enumerator I posted. And I added in Rolex's "block end" feature that makes it super easy to match things like C block comments, SGML/HTML/XML markup comments and CDATA sections, etc - anything with static multicharacter termination sequences. I really rocked today. I got this code off the ground, and in some ways what it does is more complicated than Rolex, so it was almost like making a whole new lexer/tokenizer generator. Not only that I got a new (unicode enabled!) Slang tokenizer up powered by Gplex and i intend to add backtracking to Parsley so it can parse C# (i hope!)

    When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

    P B 2 Replies Last reply
    0
    • H honey the codewitch

      i got gplex working with Parsley and it's a joy because I don't have to use gplex's grotty input files directly - they're ugly but flexible - a bit like perl is. now I can generate them from my simple, elegant XBNF format. Not only that, my generated code extends gplex lexers to implement IEnumerable so you can for each over them just like you can with Rolex lexers. That also means they'll work with the backtracking enumerator I posted. And I added in Rolex's "block end" feature that makes it super easy to match things like C block comments, SGML/HTML/XML markup comments and CDATA sections, etc - anything with static multicharacter termination sequences. I really rocked today. I got this code off the ground, and in some ways what it does is more complicated than Rolex, so it was almost like making a whole new lexer/tokenizer generator. Not only that I got a new (unicode enabled!) Slang tokenizer up powered by Gplex and i intend to add backtracking to Parsley so it can parse C# (i hope!)

      When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      When do you write Parsnip? :laugh:

      H 1 Reply Last reply
      0
      • P PIEBALDconsult

        When do you write Parsnip? :laugh:

        H Offline
        H Offline
        honey the codewitch
        wrote on last edited by
        #3

        Maybe my next one. I am given to coming up with silly names for my code.

        When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

        1 Reply Last reply
        0
        • H honey the codewitch

          i got gplex working with Parsley and it's a joy because I don't have to use gplex's grotty input files directly - they're ugly but flexible - a bit like perl is. now I can generate them from my simple, elegant XBNF format. Not only that, my generated code extends gplex lexers to implement IEnumerable so you can for each over them just like you can with Rolex lexers. That also means they'll work with the backtracking enumerator I posted. And I added in Rolex's "block end" feature that makes it super easy to match things like C block comments, SGML/HTML/XML markup comments and CDATA sections, etc - anything with static multicharacter termination sequences. I really rocked today. I got this code off the ground, and in some ways what it does is more complicated than Rolex, so it was almost like making a whole new lexer/tokenizer generator. Not only that I got a new (unicode enabled!) Slang tokenizer up powered by Gplex and i intend to add backtracking to Parsley so it can parse C# (i hope!)

          When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

          B Offline
          B Offline
          BillWoodruff
          wrote on last edited by
          #4

          Next, you need an Elvis Parsley :wtf:

          «One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali

          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