| /***************************************************************************** |
| * Copyright (c) 2016 CEA LIST and others. |
| * |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * CEA LIST - Initial API and implementation |
| * |
| *****************************************************************************/ |
| package org.eclipse.papyrus.interoperability.rpy.parser.parser.antlr; |
| |
| import java.io.InputStream; |
| import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider; |
| |
| public class RpySyntaxAntlrTokenFileProvider implements IAntlrTokenFileProvider { |
| |
| @Override |
| public InputStream getAntlrTokenFile() { |
| ClassLoader classLoader = getClass().getClassLoader(); |
| return classLoader.getResourceAsStream("org/eclipse/papyrus/interoperability/rpy/parser/parser/antlr/internal/InternalRpySyntax.tokens"); |
| } |
| } |