-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…nting it from processing some commands (e.g. safeZoneY)
- Loading branch information
Showing
92 changed files
with
2,629 additions
and
577 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+149 Bytes
(110%)
plugin/Raven.SQDev.Editors/bin/raven/sqdev/editors/BasicErrorListener.class
Binary file not shown.
Binary file added
BIN
+201 Bytes
plugin/Raven.SQDev.Editors/bin/raven/sqdev/editors/IMacroSupport.class
Binary file not shown.
Binary file not shown.
23 changes: 23 additions & 0 deletions
23
plugin/Raven.SQDev.Editors/bin/raven/sqdev/editors/parser/preprocessor/Preprocessor.tokens
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
IF=1 | ||
IFN=2 | ||
ELSE=3 | ||
ENDIF=4 | ||
DEFINE=5 | ||
UNDEFINE=6 | ||
INCLUDE=7 | ||
UNKNOWN=8 | ||
NUMBER=9 | ||
STRING=10 | ||
ID=11 | ||
ESC_LINEBREAK=12 | ||
LINEBREAK=13 | ||
WS=14 | ||
COMMENT=15 | ||
ANY=16 | ||
'#ifdef'=1 | ||
'#ifndef'=2 | ||
'#else'=3 | ||
'#endif'=4 | ||
'#define'=5 | ||
'#undef'=6 | ||
'#include'=7 |
Binary file added
BIN
+4.04 KB
....SQDev.Editors/bin/raven/sqdev/editors/parser/preprocessor/PreprocessorBaseListener.class
Binary file not shown.
Binary file added
BIN
+4.18 KB
...n.SQDev.Editors/bin/raven/sqdev/editors/parser/preprocessor/PreprocessorBaseVisitor.class
Binary file not shown.
Binary file added
BIN
+6.17 KB
...n/Raven.SQDev.Editors/bin/raven/sqdev/editors/parser/preprocessor/PreprocessorLexer.class
Binary file not shown.
23 changes: 23 additions & 0 deletions
23
.../Raven.SQDev.Editors/bin/raven/sqdev/editors/parser/preprocessor/PreprocessorLexer.tokens
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
IF=1 | ||
IFN=2 | ||
ELSE=3 | ||
ENDIF=4 | ||
DEFINE=5 | ||
UNDEFINE=6 | ||
INCLUDE=7 | ||
UNKNOWN=8 | ||
NUMBER=9 | ||
STRING=10 | ||
ID=11 | ||
ESC_LINEBREAK=12 | ||
LINEBREAK=13 | ||
WS=14 | ||
COMMENT=15 | ||
ANY=16 | ||
'#ifdef'=1 | ||
'#ifndef'=2 | ||
'#else'=3 | ||
'#endif'=4 | ||
'#define'=5 | ||
'#undef'=6 | ||
'#include'=7 |
Binary file added
BIN
+1.87 KB
...aven.SQDev.Editors/bin/raven/sqdev/editors/parser/preprocessor/PreprocessorListener.class
Binary file not shown.
Binary file added
BIN
+2.1 KB
...Dev.Editors/bin/raven/sqdev/editors/parser/preprocessor/PreprocessorParseListener$1.class
Binary file not shown.
Binary file added
BIN
+2.04 KB
...Dev.Editors/bin/raven/sqdev/editors/parser/preprocessor/PreprocessorParseListener$2.class
Binary file not shown.
Binary file added
BIN
+7.65 KB
...SQDev.Editors/bin/raven/sqdev/editors/parser/preprocessor/PreprocessorParseListener.class
Binary file not shown.
Binary file added
BIN
+1.02 KB
...itors/bin/raven/sqdev/editors/parser/preprocessor/PreprocessorParser$CommandContext.class
Binary file not shown.
Binary file added
BIN
+2.71 KB
...ditors/bin/raven/sqdev/editors/parser/preprocessor/PreprocessorParser$DefineContext.class
Binary file not shown.
Binary file added
BIN
+2.59 KB
...Editors/bin/raven/sqdev/editors/parser/preprocessor/PreprocessorParser$ErrorContext.class
Binary file not shown.
Binary file added
BIN
+3.41 KB
...itors/bin/raven/sqdev/editors/parser/preprocessor/PreprocessorParser$IfBlockContext.class
Binary file not shown.
Binary file added
BIN
+2.47 KB
...itors/bin/raven/sqdev/editors/parser/preprocessor/PreprocessorParser$IncludeContext.class
Binary file not shown.
Binary file added
BIN
+2.63 KB
...bin/raven/sqdev/editors/parser/preprocessor/PreprocessorParser$PreprocessingContext.class
Binary file not shown.
Binary file added
BIN
+3.69 KB
...Editors/bin/raven/sqdev/editors/parser/preprocessor/PreprocessorParser$StartContext.class
Binary file not shown.
Binary file added
BIN
+2.47 KB
...tors/bin/raven/sqdev/editors/parser/preprocessor/PreprocessorParser$UndefineContext.class
Binary file not shown.
Binary file added
BIN
+11.1 KB
.../Raven.SQDev.Editors/bin/raven/sqdev/editors/parser/preprocessor/PreprocessorParser.class
Binary file not shown.
Binary file added
BIN
+2.57 KB
...Raven.SQDev.Editors/bin/raven/sqdev/editors/parser/preprocessor/PreprocessorVisitor.class
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
plugin/Raven.SQDev.Editors/src/raven/sqdev/editors/IMacroSupport.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package raven.sqdev.editors; | ||
|
||
/** | ||
* An interface describing a class that provides macro-support | ||
* | ||
* @author Raven | ||
* | ||
*/ | ||
public interface IMacroSupport { | ||
|
||
/** | ||
* Adds a macro to this <code>IMacroSupport</code> | ||
* | ||
* @param macro | ||
* The <code>Macro</code> to add | ||
*/ | ||
public void addMacro(Macro macro); | ||
|
||
/** | ||
* Removes the given macro | ||
* | ||
* @param macro | ||
* The <code>Macro</code> to remove | ||
*/ | ||
public void removeMacro(Macro macro); | ||
} |
54 changes: 54 additions & 0 deletions
54
plugin/Raven.SQDev.Editors/src/raven/sqdev/editors/Macro.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package raven.sqdev.editors; | ||
|
||
import raven.sqdev.infoCollection.base.Keyword; | ||
|
||
/** | ||
* A class representing a defined macro expression | ||
* | ||
* @author Raven | ||
* | ||
*/ | ||
public class Macro extends Keyword { | ||
|
||
protected int arguments; | ||
|
||
/** | ||
* Creates a new macro that has no arguments | ||
* | ||
* @param name | ||
* The name of the macro | ||
*/ | ||
public Macro(String name) { | ||
super(name); | ||
arguments = 0; | ||
} | ||
|
||
/** | ||
* Creates a new macro | ||
* | ||
* @param name | ||
* The name of the macro | ||
* @param arguments | ||
* The number of arguments this macro can take | ||
*/ | ||
public Macro(String name, int arguments) { | ||
super(name); | ||
|
||
this.arguments = arguments; | ||
} | ||
|
||
/** | ||
* Gets the number of arguments this macro takes | ||
*/ | ||
public int getArgumentCount() { | ||
return arguments; | ||
} | ||
|
||
/** | ||
* Checks whether this macro uses any arguments | ||
*/ | ||
public boolean hasArguments() { | ||
return getArgumentCount() != 0; | ||
} | ||
|
||
} |
23 changes: 23 additions & 0 deletions
23
plugin/Raven.SQDev.Editors/src/raven/sqdev/editors/parser/preprocessor/Preprocessor.tokens
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
IF=1 | ||
IFN=2 | ||
ELSE=3 | ||
ENDIF=4 | ||
DEFINE=5 | ||
UNDEFINE=6 | ||
INCLUDE=7 | ||
UNKNOWN=8 | ||
NUMBER=9 | ||
STRING=10 | ||
ID=11 | ||
ESC_LINEBREAK=12 | ||
LINEBREAK=13 | ||
WS=14 | ||
COMMENT=15 | ||
ANY=16 | ||
'#ifdef'=1 | ||
'#ifndef'=2 | ||
'#else'=3 | ||
'#endif'=4 | ||
'#define'=5 | ||
'#undef'=6 | ||
'#include'=7 |
123 changes: 123 additions & 0 deletions
123
...n.SQDev.Editors/src/raven/sqdev/editors/parser/preprocessor/PreprocessorBaseListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
// Generated from Preprocessor.g4 by ANTLR 4.5.3 | ||
package raven.sqdev.editors.parser.preprocessor; | ||
|
||
import org.antlr.v4.runtime.ParserRuleContext; | ||
import org.antlr.v4.runtime.tree.ErrorNode; | ||
import org.antlr.v4.runtime.tree.TerminalNode; | ||
|
||
/** | ||
* This class provides an empty implementation of {@link PreprocessorListener}, | ||
* which can be extended to create a listener which only needs to handle a subset | ||
* of the available methods. | ||
*/ | ||
public class PreprocessorBaseListener implements PreprocessorListener { | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation does nothing.</p> | ||
*/ | ||
@Override public void enterStart(PreprocessorParser.StartContext ctx) { } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation does nothing.</p> | ||
*/ | ||
@Override public void exitStart(PreprocessorParser.StartContext ctx) { } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation does nothing.</p> | ||
*/ | ||
@Override public void enterPreprocessing(PreprocessorParser.PreprocessingContext ctx) { } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation does nothing.</p> | ||
*/ | ||
@Override public void exitPreprocessing(PreprocessorParser.PreprocessingContext ctx) { } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation does nothing.</p> | ||
*/ | ||
@Override public void enterIfBlock(PreprocessorParser.IfBlockContext ctx) { } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation does nothing.</p> | ||
*/ | ||
@Override public void exitIfBlock(PreprocessorParser.IfBlockContext ctx) { } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation does nothing.</p> | ||
*/ | ||
@Override public void enterDefine(PreprocessorParser.DefineContext ctx) { } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation does nothing.</p> | ||
*/ | ||
@Override public void exitDefine(PreprocessorParser.DefineContext ctx) { } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation does nothing.</p> | ||
*/ | ||
@Override public void enterUndefine(PreprocessorParser.UndefineContext ctx) { } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation does nothing.</p> | ||
*/ | ||
@Override public void exitUndefine(PreprocessorParser.UndefineContext ctx) { } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation does nothing.</p> | ||
*/ | ||
@Override public void enterInclude(PreprocessorParser.IncludeContext ctx) { } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation does nothing.</p> | ||
*/ | ||
@Override public void exitInclude(PreprocessorParser.IncludeContext ctx) { } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation does nothing.</p> | ||
*/ | ||
@Override public void enterError(PreprocessorParser.ErrorContext ctx) { } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation does nothing.</p> | ||
*/ | ||
@Override public void exitError(PreprocessorParser.ErrorContext ctx) { } | ||
|
||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation does nothing.</p> | ||
*/ | ||
@Override public void enterEveryRule(ParserRuleContext ctx) { } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation does nothing.</p> | ||
*/ | ||
@Override public void exitEveryRule(ParserRuleContext ctx) { } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation does nothing.</p> | ||
*/ | ||
@Override public void visitTerminal(TerminalNode node) { } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation does nothing.</p> | ||
*/ | ||
@Override public void visitErrorNode(ErrorNode node) { } | ||
} |
63 changes: 63 additions & 0 deletions
63
...en.SQDev.Editors/src/raven/sqdev/editors/parser/preprocessor/PreprocessorBaseVisitor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
// Generated from Preprocessor.g4 by ANTLR 4.5.3 | ||
package raven.sqdev.editors.parser.preprocessor; | ||
import org.antlr.v4.runtime.tree.AbstractParseTreeVisitor; | ||
|
||
/** | ||
* This class provides an empty implementation of {@link PreprocessorVisitor}, | ||
* which can be extended to create a visitor which only needs to handle a subset | ||
* of the available methods. | ||
* | ||
* @param <T> The return type of the visit operation. Use {@link Void} for | ||
* operations with no return type. | ||
*/ | ||
public class PreprocessorBaseVisitor<T> extends AbstractParseTreeVisitor<T> implements PreprocessorVisitor<T> { | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation returns the result of calling | ||
* {@link #visitChildren} on {@code ctx}.</p> | ||
*/ | ||
@Override public T visitStart(PreprocessorParser.StartContext ctx) { return visitChildren(ctx); } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation returns the result of calling | ||
* {@link #visitChildren} on {@code ctx}.</p> | ||
*/ | ||
@Override public T visitPreprocessing(PreprocessorParser.PreprocessingContext ctx) { return visitChildren(ctx); } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation returns the result of calling | ||
* {@link #visitChildren} on {@code ctx}.</p> | ||
*/ | ||
@Override public T visitIfBlock(PreprocessorParser.IfBlockContext ctx) { return visitChildren(ctx); } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation returns the result of calling | ||
* {@link #visitChildren} on {@code ctx}.</p> | ||
*/ | ||
@Override public T visitDefine(PreprocessorParser.DefineContext ctx) { return visitChildren(ctx); } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation returns the result of calling | ||
* {@link #visitChildren} on {@code ctx}.</p> | ||
*/ | ||
@Override public T visitUndefine(PreprocessorParser.UndefineContext ctx) { return visitChildren(ctx); } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation returns the result of calling | ||
* {@link #visitChildren} on {@code ctx}.</p> | ||
*/ | ||
@Override public T visitInclude(PreprocessorParser.IncludeContext ctx) { return visitChildren(ctx); } | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>The default implementation returns the result of calling | ||
* {@link #visitChildren} on {@code ctx}.</p> | ||
*/ | ||
@Override public T visitError(PreprocessorParser.ErrorContext ctx) { return visitChildren(ctx); } | ||
} |
Oops, something went wrong.