VBParser samples



3 thoughts on “VBParser samples

  1. Steve D

    Hi Paul,

    I just took a quick peek at the source. It looks like your parse tree is made up of your own objects for statements, operators, etc. Would it have been possible (or better put — feasible) to parse into a CodeDom tree? Are there things in your vb parse tree which CodeDom wouldn’t have a concept for?



  2. paulvick

    Yeah, the CodeDOM is not expressive enough for all of VB because it was designed to insulate users, for the most part, from differences in languages. An interesting sample that could be written is a CodeDOM to parse tree translator (and vice versa)…

  3. alex

    Paul:(they call you Paul,I follow)

    Er,I’m a student ,now writing a compiler,and make parser parse codes with grammar files.And in V1.4, it makes a own parse tree, but in V2.0, I modified the grammar file’s structure and add some code like YACC, then the parse tree is to be a CodeDOM. If you can understood Chinese,here is my blog:


    And I have a problem on generate the code of a event, it need me to generate a delegate class to handle this event. I do it ,but it does not work. So I need you help.

    You can mail me(SophiaAJackson@msn.com).



Leave a Reply