Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support vs 2017 #57

Open
furesoft opened this issue May 22, 2017 · 5 comments
Open

support vs 2017 #57

furesoft opened this issue May 22, 2017 · 5 comments

Comments

@furesoft
Copy link

is there a installer for vs 2017?

@VladD2
Copy link
Member

VladD2 commented Aug 15, 2017

What do you mean? To build language projects, you need to build Nitra on a computer (https://github.com/rsdn/nitra/wiki/Nitra-Build-process).

@jianyunli
Copy link

ValdD2, thanks, I've followed the instructions and build the tools successfully. However, as a newbie, I don't know what to do next to get this integrated in the VS 2007? Is there any documentation or tutorial for beginners? thanks much.

@ionoy
Copy link
Contributor

ionoy commented Aug 18, 2017

Hello @jianyunli,

I would suggest you start with one of the samples and go from there.

Full Nitra parser has four major parts:

  1. Language definition: https://github.com/rsdn/Nitra-Mini-C/blob/master/Nitra-Mini-C/MiniC-Language.nitra
  2. Syntax parser: https://github.com/rsdn/Nitra-Mini-C/blob/master/Nitra-Mini-C/MiniC-syntax.nitra
  3. Language AST: https://github.com/rsdn/Nitra-Mini-C/blob/master/Nitra-Mini-C/MiniC-ast.nitra
  4. The mapping between syntax and AST: https://github.com/rsdn/Nitra-Mini-C/blob/master/Nitra-Mini-C/MiniC-Mapping.nitra

Also, you need to implement IProjectSupport interface on your top-most AST type: https://github.com/rsdn/Nitra-Mini-C/blob/master/Nitra-Mini-C/CompilationUnit.n

@jianyunli
Copy link

Hi @ionoy, thanks much, I'll get started. It says it can generate a parser for the IDE, actually that is what I need. Is it possible for my DSL, that I can put a squiggle for "incorrect" part , for example squiggle
var x = "123" - 1 // string minus integer does not make sense

@ionoy
Copy link
Contributor

ionoy commented Aug 18, 2017

Yes, of course. This is an example from Mini-C: https://github.com/rsdn/Nitra-Mini-C/blob/master/Nitra-Mini-C/MiniC-ast.nitra#L203

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants