Skip to content

Commit

Permalink
eclipse-archived#190 Fixed extension for the TqCL file
Browse files Browse the repository at this point in the history
  • Loading branch information
rtotaro committed Dec 23, 2016
1 parent 9b4e4ff commit ea7b7ad
Show file tree
Hide file tree
Showing 62 changed files with 1,973 additions and 1,981 deletions.
2 changes: 0 additions & 2 deletions org.eclipse.triquetrum.commands.xtext.ide/.classpath
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src/main/java-gen"/>
<classpathentry kind="src" path="src/main/xtend-gen"/>
<classpathentry kind="src" path="src/main/java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="output" path="target/classes"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* generated by Xtext 2.10.0
*
* Contributors:
* Rodolfo Totaro - initial API and implementation and/or initial documentation
*******************************************************************************/
/*
* generated by Xtext 2.10.0
*/
package org.eclipse.triquetrum.commands.ide.contentassist.antlr;

import java.util.Collection;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* generated by Xtext 2.10.0
*
* Contributors:
* Rodolfo Totaro - initial API and implementation and/or initial documentation
*******************************************************************************/
/*
* generated by Xtext 2.10.0
*/
package org.eclipse.triquetrum.commands.ide.contentassist.antlr;

import com.google.inject.Inject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
/*
* generated by Xtext 2.10.0
*/
/*******************************************************************************
* Copyright (c) 2016 Totaro Rodolfo
* 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
*
* generated by Xtext 2.10.0
*
* Contributors:
* Rodolfo Totaro - initial API and implementation and/or initial documentation
*******************************************************************************/
grammar InternalTqcl;

options {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
/*******************************************************************************
* Copyright (c) 2016 Totaro Rodolfo
* 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:
* Rodolfo Totaro - initial API and implementation and/or initial documentation
*******************************************************************************/
package org.eclipse.triquetrum.commands.ide.contentassist.antlr.internal;

// Hack: Use our own Lexer superclass by means of import.
Expand Down Expand Up @@ -563,10 +553,10 @@ public final void mRULE_ID() throws RecognitionException {
try {
int _type = RULE_ID;
int _channel = DEFAULT_TOKEN_CHANNEL;
// InternalTqcl.g:3679:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' | '0' .. '9' )* )
// InternalTqcl.g:3679:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' | '0' .. '9' )*
// InternalTqcl.g:3688:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' | '0' .. '9' )* )
// InternalTqcl.g:3688:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' | '0' .. '9' )*
{
// InternalTqcl.g:3679:11: ( '^' )?
// InternalTqcl.g:3688:11: ( '^' )?
int alt1=2;
int LA1_0 = input.LA(1);

Expand All @@ -575,7 +565,7 @@ public final void mRULE_ID() throws RecognitionException {
}
switch (alt1) {
case 1 :
// InternalTqcl.g:3679:11: '^'
// InternalTqcl.g:3688:11: '^'
{
match('^');

Expand All @@ -593,7 +583,7 @@ public final void mRULE_ID() throws RecognitionException {
recover(mse);
throw mse;}

// InternalTqcl.g:3679:44: ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' | '0' .. '9' )*
// InternalTqcl.g:3688:44: ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' | '0' .. '9' )*
loop2:
do {
int alt2=2;
Expand Down Expand Up @@ -642,10 +632,10 @@ public final void mRULE_STRING() throws RecognitionException {
try {
int _type = RULE_STRING;
int _channel = DEFAULT_TOKEN_CHANNEL;
// InternalTqcl.g:3681:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* ( '\"' )? | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* ( '\\'' )? ) )
// InternalTqcl.g:3681:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* ( '\"' )? | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* ( '\\'' )? )
// InternalTqcl.g:3690:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* ( '\"' )? | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* ( '\\'' )? ) )
// InternalTqcl.g:3690:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* ( '\"' )? | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* ( '\\'' )? )
{
// InternalTqcl.g:3681:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* ( '\"' )? | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* ( '\\'' )? )
// InternalTqcl.g:3690:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* ( '\"' )? | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* ( '\\'' )? )
int alt7=2;
int LA7_0 = input.LA(1);

Expand All @@ -663,10 +653,10 @@ else if ( (LA7_0=='\'') ) {
}
switch (alt7) {
case 1 :
// InternalTqcl.g:3681:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* ( '\"' )?
// InternalTqcl.g:3690:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* ( '\"' )?
{
match('\"');
// InternalTqcl.g:3681:20: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )*
// InternalTqcl.g:3690:20: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )*
loop3:
do {
int alt3=3;
Expand All @@ -682,15 +672,15 @@ else if ( ((LA3_0>='\u0000' && LA3_0<='!')||(LA3_0>='#' && LA3_0<='[')||(LA3_0>=

switch (alt3) {
case 1 :
// InternalTqcl.g:3681:21: '\\\\' .
// InternalTqcl.g:3690:21: '\\\\' .
{
match('\\');
matchAny();

}
break;
case 2 :
// InternalTqcl.g:3681:28: ~ ( ( '\\\\' | '\"' ) )
// InternalTqcl.g:3690:28: ~ ( ( '\\\\' | '\"' ) )
{
if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
input.consume();
Expand All @@ -710,7 +700,7 @@ else if ( ((LA3_0>='\u0000' && LA3_0<='!')||(LA3_0>='#' && LA3_0<='[')||(LA3_0>=
}
} while (true);

// InternalTqcl.g:3681:44: ( '\"' )?
// InternalTqcl.g:3690:44: ( '\"' )?
int alt4=2;
int LA4_0 = input.LA(1);

Expand All @@ -719,7 +709,7 @@ else if ( ((LA3_0>='\u0000' && LA3_0<='!')||(LA3_0>='#' && LA3_0<='[')||(LA3_0>=
}
switch (alt4) {
case 1 :
// InternalTqcl.g:3681:44: '\"'
// InternalTqcl.g:3690:44: '\"'
{
match('\"');

Expand All @@ -732,10 +722,10 @@ else if ( ((LA3_0>='\u0000' && LA3_0<='!')||(LA3_0>='#' && LA3_0<='[')||(LA3_0>=
}
break;
case 2 :
// InternalTqcl.g:3681:49: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* ( '\\'' )?
// InternalTqcl.g:3690:49: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* ( '\\'' )?
{
match('\'');
// InternalTqcl.g:3681:54: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )*
// InternalTqcl.g:3690:54: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )*
loop5:
do {
int alt5=3;
Expand All @@ -751,15 +741,15 @@ else if ( ((LA5_0>='\u0000' && LA5_0<='&')||(LA5_0>='(' && LA5_0<='[')||(LA5_0>=

switch (alt5) {
case 1 :
// InternalTqcl.g:3681:55: '\\\\' .
// InternalTqcl.g:3690:55: '\\\\' .
{
match('\\');
matchAny();

}
break;
case 2 :
// InternalTqcl.g:3681:62: ~ ( ( '\\\\' | '\\'' ) )
// InternalTqcl.g:3690:62: ~ ( ( '\\\\' | '\\'' ) )
{
if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
input.consume();
Expand All @@ -779,7 +769,7 @@ else if ( ((LA5_0>='\u0000' && LA5_0<='&')||(LA5_0>='(' && LA5_0<='[')||(LA5_0>=
}
} while (true);

// InternalTqcl.g:3681:79: ( '\\'' )?
// InternalTqcl.g:3690:79: ( '\\'' )?
int alt6=2;
int LA6_0 = input.LA(1);

Expand All @@ -788,7 +778,7 @@ else if ( ((LA5_0>='\u0000' && LA5_0<='&')||(LA5_0>='(' && LA5_0<='[')||(LA5_0>=
}
switch (alt6) {
case 1 :
// InternalTqcl.g:3681:79: '\\''
// InternalTqcl.g:3690:79: '\\''
{
match('\'');

Expand Down Expand Up @@ -819,12 +809,12 @@ public final void mRULE_ML_COMMENT() throws RecognitionException {
try {
int _type = RULE_ML_COMMENT;
int _channel = DEFAULT_TOKEN_CHANNEL;
// InternalTqcl.g:3683:17: ( '/*' ( options {greedy=false; } : . )* '*/' )
// InternalTqcl.g:3683:19: '/*' ( options {greedy=false; } : . )* '*/'
// InternalTqcl.g:3692:17: ( '/*' ( options {greedy=false; } : . )* '*/' )
// InternalTqcl.g:3692:19: '/*' ( options {greedy=false; } : . )* '*/'
{
match("/*");

// InternalTqcl.g:3683:24: ( options {greedy=false; } : . )*
// InternalTqcl.g:3692:24: ( options {greedy=false; } : . )*
loop8:
do {
int alt8=2;
Expand All @@ -849,7 +839,7 @@ else if ( ((LA8_0>='\u0000' && LA8_0<=')')||(LA8_0>='+' && LA8_0<='\uFFFF')) ) {

switch (alt8) {
case 1 :
// InternalTqcl.g:3683:52: .
// InternalTqcl.g:3692:52: .
{
matchAny();

Expand Down Expand Up @@ -879,12 +869,12 @@ public final void mRULE_SL_COMMENT() throws RecognitionException {
try {
int _type = RULE_SL_COMMENT;
int _channel = DEFAULT_TOKEN_CHANNEL;
// InternalTqcl.g:3685:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
// InternalTqcl.g:3685:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
// InternalTqcl.g:3694:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
// InternalTqcl.g:3694:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
{
match("//");

// InternalTqcl.g:3685:24: (~ ( ( '\\n' | '\\r' ) ) )*
// InternalTqcl.g:3694:24: (~ ( ( '\\n' | '\\r' ) ) )*
loop9:
do {
int alt9=2;
Expand All @@ -897,7 +887,7 @@ public final void mRULE_SL_COMMENT() throws RecognitionException {

switch (alt9) {
case 1 :
// InternalTqcl.g:3685:24: ~ ( ( '\\n' | '\\r' ) )
// InternalTqcl.g:3694:24: ~ ( ( '\\n' | '\\r' ) )
{
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
input.consume();
Expand All @@ -917,7 +907,7 @@ public final void mRULE_SL_COMMENT() throws RecognitionException {
}
} while (true);

// InternalTqcl.g:3685:40: ( ( '\\r' )? '\\n' )?
// InternalTqcl.g:3694:40: ( ( '\\r' )? '\\n' )?
int alt11=2;
int LA11_0 = input.LA(1);

Expand All @@ -926,9 +916,9 @@ public final void mRULE_SL_COMMENT() throws RecognitionException {
}
switch (alt11) {
case 1 :
// InternalTqcl.g:3685:41: ( '\\r' )? '\\n'
// InternalTqcl.g:3694:41: ( '\\r' )? '\\n'
{
// InternalTqcl.g:3685:41: ( '\\r' )?
// InternalTqcl.g:3694:41: ( '\\r' )?
int alt10=2;
int LA10_0 = input.LA(1);

Expand All @@ -937,7 +927,7 @@ public final void mRULE_SL_COMMENT() throws RecognitionException {
}
switch (alt10) {
case 1 :
// InternalTqcl.g:3685:41: '\\r'
// InternalTqcl.g:3694:41: '\\r'
{
match('\r');

Expand Down Expand Up @@ -969,10 +959,10 @@ public final void mRULE_WS() throws RecognitionException {
try {
int _type = RULE_WS;
int _channel = DEFAULT_TOKEN_CHANNEL;
// InternalTqcl.g:3687:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
// InternalTqcl.g:3687:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
// InternalTqcl.g:3696:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
// InternalTqcl.g:3696:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
{
// InternalTqcl.g:3687:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
// InternalTqcl.g:3696:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
int cnt12=0;
loop12:
do {
Expand Down Expand Up @@ -1026,8 +1016,8 @@ public final void mRULE_ANY_OTHER() throws RecognitionException {
try {
int _type = RULE_ANY_OTHER;
int _channel = DEFAULT_TOKEN_CHANNEL;
// InternalTqcl.g:3689:16: ( . )
// InternalTqcl.g:3689:18: .
// InternalTqcl.g:3698:16: ( . )
// InternalTqcl.g:3698:18: .
{
matchAny();

Expand Down
Loading

0 comments on commit ea7b7ad

Please sign in to comment.