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. Other Discussions
  3. IT & Infrastructure
  4. Flex and Bison for .Net?

Flex and Bison for .Net?

Scheduled Pinned Locked Moved IT & Infrastructure
csharpdotnettoolsquestion
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.
  • G Offline
    G Offline
    gongchengshi
    wrote on last edited by
    #1

    GNU tools like Flex (Lex) and Bison (Yacc) produce C code that can be compiled into a application that needs the usage of a lexical analyzer and parser. Are there any such faculties or tools for the .Net framework for doing such tasks? I don't think that making a .net wrapper for the code produced by the GNU tools is an option. The amount of code they produce is huge. Perhaps creating a regular DLL out of the C code and exposing only the functions I need is a possible solution but I would prefer a managed code solution. Any ideas?

    D P 2 Replies Last reply
    0
    • G gongchengshi

      GNU tools like Flex (Lex) and Bison (Yacc) produce C code that can be compiled into a application that needs the usage of a lexical analyzer and parser. Are there any such faculties or tools for the .Net framework for doing such tasks? I don't think that making a .net wrapper for the code produced by the GNU tools is an option. The amount of code they produce is huge. Perhaps creating a regular DLL out of the C code and exposing only the functions I need is a possible solution but I would prefer a managed code solution. Any ideas?

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      http://bytes.com/forum/thread248670.html[^]

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008

      1 Reply Last reply
      0
      • G gongchengshi

        GNU tools like Flex (Lex) and Bison (Yacc) produce C code that can be compiled into a application that needs the usage of a lexical analyzer and parser. Are there any such faculties or tools for the .Net framework for doing such tasks? I don't think that making a .net wrapper for the code produced by the GNU tools is an option. The amount of code they produce is huge. Perhaps creating a regular DLL out of the C code and exposing only the functions I need is a possible solution but I would prefer a managed code solution. Any ideas?

        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #3

        I've had some success with Antlr[^]. The grammars you can get from the site are really quite good.

        Deja View - the feeling that you've seen this post before.

        My blog | My articles

        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