Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3315040
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T22:18:12+00:00 2026-05-17T22:18:12+00:00

I am researching ways, tools and techniques to parse code files in order to

  • 0

I am researching ways, tools and techniques to parse code files in order to support syntax highlighting and intellisence in an editor written in c#.

Does anyone have any ideas/patterns & practices/tools/techiques for that.

EDIT: A nice source of info for anyone interested:

Parsing beyond Context-free grammars
ISBN 978-3-642-14845-3

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T22:18:13+00:00Added an answer on May 17, 2026 at 10:18 pm

    There are two basic aproaches:
    1) Parse the entire solution and everything it references so you understand all the types involved in the code
    2) Parse locally and do your best to guess what types etc are.

    The trouble with (2) is that you have to guess, and in some circumstances you just can’t tell from a code snippet exactly what everything is. But if you’re happy with the sort oif syntax highlighting shown on (e.g.) Stack Overflow, then this approach is easy and quite effective.

    To do (1) then you need to do one of (in decreasing order of difficulty):

    • Parse all the source code. Not possible if you reference 3rd party assemblies.
    • Use reflection on the compiled code to garner type information you can use when parsing the source.
    • Use the host IDE’s (if avaiable – so not applicable in your case!) code element interfaces to provide the information you need
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are currently researching ways of enhancing image quality prior to submission to OCR.
I've been researching memory mapped files for a project and would appreciate any thoughts
I'm researching ways to create a web radio station of sorts. It will have
I'm currently researching ways to hook a process and take control of it using
I am currently researching ways of adding several UIImageView to a single UIScrollView .
I've been researching how different languages manage organization of source code. It appears most
I'm researching a project in which I want to integrate the Google Webmaster Tools
I'm researching how to build some tools in my website and as I'm looking
On researching another question I noted that the stat function in Perl can take
While researching the issue of JSON vs XML , I came across this question

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.