Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] New Parser Generation

It's been a while, so I don't remember 100% of the details, but there are language mappings you can set on your project to map content types to languages (and you can map your file extensions to content types already). I seem to recall there is an extension point for contributing the new languages as well.

Be forewarned that the CDT LR parser is deprecated right now, so in the future it's probably not going to work any more in the next major release.

===========================
Chris Recoskie
IBM Toronto


Inactive hide details for Amr El-Rouby ---07/19/2017 10:53:37 AM---Hi all, I have created an extension to C Language, I have maAmr El-Rouby ---07/19/2017 10:53:37 AM---Hi all, I have created an extension to C Language, I have made a new Grammar and

From: Amr El-Rouby <amrropy@xxxxxxxxx>
To: cdt-dev@xxxxxxxxxxx
Date: 07/19/2017 10:53 AM
Subject: [cdt-dev] New Parser Generation
Sent by: cdt-dev-bounces@xxxxxxxxxxx





Hi all,

I have created an extension to C Language, I have made a new Grammar and Parser .g files and I have generated Java code from this .g files using LPG and Ant Build and the output was this files:
XYZParser.java, XYZParserprs.java, XYZParsersym.java

Now I need to know how to link this new Parser with Eclipse to support parsing my language extension?
How to make Eclipse use this new parser to parse specific files extension like .xyz for example?

Thanks in advance,
Amr_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cdt-dev



Back to the top