Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/upc
diff options
context:
space:
mode:
authorMike Kucera2009-02-03 22:08:46 +0000
committerMike Kucera2009-02-03 22:08:46 +0000
commit897c5adf97a6c4c7ca020b1363564613cc1ad995 (patch)
treec9b95b4d120a3e5579b8b7ce594d4063fb1bb241 /upc
parent018af1b16ca786189bd9f097924684898544b9df (diff)
downloadorg.eclipse.cdt-897c5adf97a6c4c7ca020b1363564613cc1ad995.tar.gz
org.eclipse.cdt-897c5adf97a6c4c7ca020b1363564613cc1ad995.tar.xz
org.eclipse.cdt-897c5adf97a6c4c7ca020b1363564613cc1ad995.zip
added support for IBuiltinBindingsProvider to LR parsers
Diffstat (limited to 'upc')
-rw-r--r--upc/org.eclipse.cdt.core.parser.upc/src/org/eclipse/cdt/core/dom/upc/UPCLanguage.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/upc/org.eclipse.cdt.core.parser.upc/src/org/eclipse/cdt/core/dom/upc/UPCLanguage.java b/upc/org.eclipse.cdt.core.parser.upc/src/org/eclipse/cdt/core/dom/upc/UPCLanguage.java
index 605a50df3c7..0cfd67013c4 100644
--- a/upc/org.eclipse.cdt.core.parser.upc/src/org/eclipse/cdt/core/dom/upc/UPCLanguage.java
+++ b/upc/org.eclipse.cdt.core.parser.upc/src/org/eclipse/cdt/core/dom/upc/UPCLanguage.java
@@ -16,14 +16,15 @@ import org.eclipse.cdt.core.dom.lrparser.BaseExtensibleLanguage;
import org.eclipse.cdt.core.dom.lrparser.IDOMTokenMap;
import org.eclipse.cdt.core.dom.lrparser.IParser;
import org.eclipse.cdt.core.dom.lrparser.ScannerExtensionConfiguration;
+import org.eclipse.cdt.core.dom.parser.IBuiltinBindingsProvider;
import org.eclipse.cdt.core.dom.parser.IScannerExtensionConfiguration;
+import org.eclipse.cdt.core.dom.parser.c.ANSICParserExtensionConfiguration;
import org.eclipse.cdt.core.dom.parser.upc.DOMToUPCTokenMap;
import org.eclipse.cdt.core.dom.parser.upc.UPCLanguageKeywords;
import org.eclipse.cdt.core.model.ICLanguageKeywords;
import org.eclipse.cdt.core.model.IContributedModelBuilder;
import org.eclipse.cdt.core.model.ITranslationUnit;
import org.eclipse.cdt.core.parser.ParserLanguage;
-import org.eclipse.cdt.internal.core.dom.parser.c.CNodeFactory;
import org.eclipse.cdt.internal.core.dom.parser.upc.UPCParser;
@@ -32,7 +33,6 @@ import org.eclipse.cdt.internal.core.dom.parser.upc.UPCParser;
*
* @author Mike Kucera
*/
-@SuppressWarnings("restriction")
public class UPCLanguage extends BaseExtensibleLanguage {
public static final String ID = "org.eclipse.cdt.core.parser.upc.upc"; //$NON-NLS-1$
@@ -90,4 +90,8 @@ public class UPCLanguage extends BaseExtensibleLanguage {
return ScannerExtensionConfiguration.createC();
}
+ @Override
+ protected IBuiltinBindingsProvider getBuiltinBindingsProvider() {
+ return new ANSICParserExtensionConfiguration().getBuiltinBindingsProvider();
+ }
}

Back to the top