I'm in process of writing parser for ANSI C language for SyntaxEditor v4.0. I'm doing that modifying .NET Languages Add-on source code (per your recommendation in this thread).
I've played some time modifying grammar definition file (ActiproSoftware.CSharp.Grammar.xml) with relative success.
Now I've started including and parsing relative files in C project.
Can you, please, give me a quick suggestion (starting point) how to implement the next two items:
1. How to make the 'Using' token works as it should, but set the "#include" string for recognizing this token?
I've tried to move the token to the 'PreProcessorDirectiveKeywordStart/End' scope in Grammar file. Also I've make relative changes in "GetTokenString" and "IsPreProcessorDirectiveStateScopeStart". But this doesn’t work for me: LookAheadToken in "MatchCompilationUnit" skips ‘Using’ token and its parameter and returns to me the next available token.
2. How can I parse source files which are referred as ‘#include <filename>’ and ‘#include "filename" ‘. I need this to include the types from these files to IntelliPrompt member list.
Asking you for help because documentation is not sufficient to do this without digging in huge amount of code (I’ve spend much more time doing that than expected and now can miss the schedule).