Skip to content
Snippets Groups Projects
Commit cb3aabcc authored by Sven Gundlach's avatar Sven Gundlach
Browse files

Merge branch 'merge-requests/14' into 'main'

merge fxca_util

See merge request !15
parents e052d275 81d5bbcc
No related branches found
No related tags found
2 merge requests!18Added documentation for arrays and code generation for CP-DSL.,!15merge fxca_util
Pipeline #12462 passed
Showing
with 64 additions and 3224 deletions
.DS_Store
**/.DS_Store
# src https://www.toptal.com/developers/gitignore/api/intellij
# src https://www.toptal.com/developers/gitignore/api/python
# src https://www.toptal.com/developers/gitignore/api/java,macos,maven,eclipse
# Project-specific generated files
docs/build/
bench/results/
bench/env/
bench/trio/
.idea/codeStyles/
# Byte-compiled / optimized / DLL files / editor temp files
__pycache__/
*.py[cod]
......@@ -167,6 +156,7 @@ fabric.properties
.idea/caches/build_file_checksums.ser
### macOS ###
.DS_Store
**/.DS_Store
**/.AppleDouble
**/.LSOverride
......@@ -176,3 +166,14 @@ fabric.properties
.project
# JDT-specific (Eclipse Java Development Tools)
.classpath
# Project-specific generated files
docs/build/
bench/results/
bench/env/
bench/trio/
.idea/codeStyles/
tdd-dsl/input/tdd_dev/UVic_example_opem/tmp/
tdd-dsl/input/tdd_dev/UVic_example_opem_manual/build/
\ No newline at end of file
# enable ANTLR support
antlr4 := java -jar /usr/local/lib/antlr-4.12.0-complete.jar
antlr4 := java -jar /usr/local/lib/antlr-4.13.0-complete.jar
#########################################################
# example DSL
......
......
......@@ -4,7 +4,6 @@
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/bgcLSPServer" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/tests" isTestSource="true" />
</content>
<orderEntry type="jdk" jdkName="Python 3.10 (python-oceandsls)" jdkType="Python SDK" />
......
......
......@@ -3,7 +3,6 @@
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/tests" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/dclLSPServer" isTestSource="false" />
</content>
......
......
source.sh 100644 → 100755
# enable ANTLR support
# example
if [ -f /usr/local/lib/antlr-4.12.0-complete.jar ] && [ -f /usr/local/lib/antlrworks-1.5.2-complete.jar ]; then
export CLASSPATH=".:/usr/local/lib/antlr-4.12.0-complete.jar:/usr/local/lib/antlrworks-1.5.2-complete.jar:$CLASSPATH"
alias antlr4='java -jar /usr/local/lib/antlr-4.12.0-complete.jar'
if [ -f /usr/local/lib/antlr-4.13.0-complete.jar ] && [ -f /usr/local/lib/antlrworks-1.5.2-complete.jar ]; then
export CLASSPATH=".:/usr/local/lib/antlr-4.13.0-complete.jar:/usr/local/lib/antlrworks-1.5.2-complete.jar:$CLASSPATH"
alias antlr4='java -jar /usr/local/lib/antlr-4.13.0-complete.jar'
alias antlrworks='java -jar /usr/local/lib/antlrworks-1.5.2-complete.jar'
alias grun='java org.antlr.v4.gui.TestRig'
#export GRUN_CMD='java -cp ../:$CLASSPATH org.antlr.v4.gui.TestRig'
export GRUN_CMD='java -cp .:../:/usr/local/lib/antlr-4.12.0-complete.jar:/usr/local/lib/antlrworks-1.5.2-complete.jar: org.antlr.v4.gui.TestRig'
export GRUN_CMD='java -cp .:../:/usr/local/lib/antlr-4.13.0-complete.jar:/usr/local/lib/antlrworks-1.5.2-complete.jar: org.antlr.v4.gui.TestRig'
#Shows diagnostic output from lexer and parser if any
#>diagrun TestExprCore expression data/test_CompletionCore
#>diagrun exampleDsl example-dsl/exampleLSPServer prog example-dsl/input/test_Expr.expr
diagrun() {
pushd . > /dev/null
grammarName="${1}" # e.g. exampleDsl
pkgName="${2}" # e.g. example-dsl/exampleLSPServer
srcDir="${2}" # e.g. example-dsl/exampleLSPServer
pkgName="${grammarName}"
startRuleName="${3}" # e.g. prog
testDataFile=`readlink -f $4` # e.g. example-dsl/input/test.odsl
cd "${pkgName}/gen/java/${grammarName}"/ && ${GRUN_CMD} "${pkgName}"."${grammarName}" "${startRuleName}" -diagnostics < "${testDataFile}"
cd "${srcDir}/gen/java/${grammarName}"/ && ${GRUN_CMD} "${pkgName}"."${grammarName}" "${startRuleName}" -diagnostics < "${testDataFile}"
popd > /dev/null
}
#Shows GUI parse tree browser
#>guirun TestExprCore expression data/test_CompletionCore
#>guirun exampleDsl example-dsl/exampleLSPServer prog example-dsl/input/test_Expr.expr
guirun() {
pushd . > /dev/null
grammarName="${1}"
srcDir="${2}"
pkgName="${grammarName}"
startRuleName="${3}"
testDataFile=`readlink -f $4`
cd "${pkgName}/gen/java/${grammarName}"/ && ${GRUN_CMD} "${pkgName}"."${grammarName}" "${startRuleName}" -gui < "${testDataFile}"
cd "${srcDir}/gen/java/${grammarName}"/ && ${GRUN_CMD} "${pkgName}"."${grammarName}" "${startRuleName}" -gui < "${testDataFile}"
popd > /dev/null
}
#Generates a PS of the parsetree
#>psrun TestExprCore expression data/test_CompletionCore
#>psrun exampleDsl example-dsl/exampleLSPServer prog example-dsl/input/test_Expr.expr
psrun() {
pushd . > /dev/null
grammarName="${1}"
pkgName="${grammarName}"
startRuleName="${3}"
testDataFile=`readlink -f $4`
cd "${pkgName}/gen/java/${grammarName}"/ && ${GRUN_CMD} "${pkgName}"."${grammarName}" "${startRuleName}" -ps "${testDataFile}".ps < "${testDataFile}"
cd "${srcDir}/gen/java/${grammarName}"/ && ${GRUN_CMD} "${pkgName}"."${grammarName}" "${startRuleName}" -ps "${testDataFile}".ps < "${testDataFile}"
popd > /dev/null
}
#Shows tokens detected by lexer
#>tokenrun TestExprCore expression data/test_CompletionCore
#>tokenrun exampleDsl example-dsl/exampleLSPServer prog example-dsl/input/test_Expr.expr
tokenrun() {
pushd . > /dev/null
grammarName="${1}"
pkgName="${grammarName}"
startRuleName="${3}"
testDataFile=`readlink -f $4`
cd "${pkgName}/gen/java/${grammarName}"/ && ${GRUN_CMD} "${pkgName}"."${grammarName}" "${startRuleName}" -tokens < "${testDataFile}"
cd "${srcDir}/gen/java/${grammarName}"/ && ${GRUN_CMD} "${pkgName}"."${grammarName}" "${startRuleName}" -tokens < "${testDataFile}"
popd > /dev/null
}
#Prints text tree output of parse tree
#>treerun TestExprCore expression data/test_CompletionCore
#>treerun exampleDsl example-dsl/exampleLSPServer prog example-dsl/input/test_Expr.expr
treerun() {
pushd . > /dev/null
grammarName="${1}"
pkgName="${grammarName}"
startRuleName="${3}"
testDataFile=`readlink -f $4`
cd "${pkgName}/gen/java/${grammarName}"/ && ${GRUN_CMD} "${pkgName}"."${grammarName}" "${startRuleName}" -tree < "${testDataFile}"
cd "${srcDir}/gen/java/${grammarName}"/ && ${GRUN_CMD} "${pkgName}"."${grammarName}" "${startRuleName}" -tree < "${testDataFile}"
popd > /dev/null
}
#Shows trace information when parsing input file
#>tracerun TestExprCore expression data/test_CompletionCore
#>tracerun exampleDsl example-dsl/exampleLSPServer prog example-dsl/input/test_Expr.expr
tracerun() {
pushd . > /dev/null
grammarName="${1}"
pkgName="${grammarName}"
startRuleName="${3}"
testDataFile=`readlink -f $4`
cd "${pkgName}/gen/java/${grammarName}"/ && ${GRUN_CMD} "${pkgName}"."${grammarName}" "${startRuleName}" -trace < "${testDataFile}"
cd "${srcDir}/gen/java/${grammarName}"/ && ${GRUN_CMD} "${pkgName}"."${grammarName}" "${startRuleName}" -trace < "${testDataFile}"
popd > /dev/null
}
fi
\ No newline at end of file
# exampleDSL for reference
## Install ANTlR4 for development
- https://www.antlr.org/download.html
- https://www.antlr3.org/works/
- move to /usr/local/lib
- update CLASSPATH (source.sh)
- require java versions up to 55.0 (JDK Version Java 11 Bytecode Version 55.0)
- sudo apt-get install openjdk-11-jre openjdk-11-jdk openjdk-11-demo openjdk-11-doc openjdk-11-jre-headless openjdk-11-source
- sudo update-alternatives --config javac
## Add pFUnit4
- sudo apt-get install cmake
- sudo apt install gfortran
- sudo apt install m4
# Example installation of pFUnit and pFUnit_demos — Software testing documentation
- https://coderefinery.github.io/testing/code/fortran/build_pFUnit/#on-own-computer
- export FC=/usr/bin/gfortran
- export PFUNIT_DIR=/usr/local/PFUNIT-4.7
## Optional: check python packages
- update package manager tools
- `python -m pip install --upgrade pip setuptools wheel`
- check if python package `virtualenv` is installed if Python < 3.3 is used else a subset of it has been integrated into
the standard library under `venv`
- check if python package `virtualenv` is installed if Python < 3.3 is used else a subset of it has been integrated into the standard library under `venv`
- `python -m pip show virtualenv`
- if not install package `virtualenv` into global system environment
- `python -m pip install virtualenv`
......@@ -17,18 +34,21 @@
- alternative use `virtualenv`, see optional python packages
- activate virtual environment `.venv`
- `source .venv/bin/activate`
- install `antlr4-python3-runtime`, `graphviz`, `Jinja2`, `mock`, `pygls`, `pygraphviz` and `pytest` package into
virtual environment `.venv`
- `python -m pip install antlr4-python3-runtime graphviz Jinja2 mock pygls pygraphviz pytest`
- install `antlr4-python3-runtime`, `Jinja2`, `mock`, `pygls` and `pytest` package into virtual environment `.venv`
- `python -m pip install antlr4-python3-runtime Jinja2 mock pygls pytest`
## Optional: update npm and node
- check `npm` version
- `npm --version`
- install latest `npm` version globally (`-g` or `--global`)
- `sudo npm install -g npm@latest`
- install `npm` and `node` if necessary
- `sudo apt-get install npm nodejs`
- install the Node manager via `npm`
`sudo npm install -g n`
- install latest `node` version
- `sudo n latest`
- install latest `npm` version globally (`-g` or `--global`)
- `sudo npm install -g npm@latest`
- Install the dependencies to the global mode (`-g` or `--global`)
- `sudo npm update -g`
......@@ -51,14 +71,12 @@
## Troubleshooting
- If VS Code doesn`t automatically locate the interpreter of the virtual
environment. [Set it manually](https://code.visualstudio.com/docs/python/environments#_manually-specify-an-interpreter)
- If VS Code doesn`t automatically locate the interpreter of the virtual environment. [Set it manually](https://code.visualstudio.com/docs/python/environments#_manually-specify-an-interpreter)
- Open Command prompt
`Ctrl/Cmd+Shift+P`
- Run select interpreter command
`Python: Select Interpreter`
- Alternative create `.vscode/settings.json` file in `python-oceandsls/tdd-dsl` directory and
set `python.defaultInterpreterPath` to point to the virtual environment
- Alternative create `.vscode/settings.json` file in `python-oceandsls/tdd-dsl` directory and set `python.defaultInterpreterPath` to point to the virtual environment
- settings.json
{
......
......
token literal names:
null
'('
','
')'
'='
'['
']'
':'
'*'
'/'
'+'
'-'
null
null
null
null
null
null
null
null
null
token symbolic names:
null
null
null
null
null
null
null
null
null
null
null
null
ID
STRING
COMMENT
INT
NUM
DP
TDD_COMMENT
NEWLINE
WS
rule names:
paramType
typeRef
enumType
enum
arrayType
dim
sizeDim
rangeDim
expr
reference
atn:
[4, 1, 20, 112, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 1, 0, 1, 0, 1, 0, 3, 0, 24, 8, 0, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 5, 2, 32, 8, 2, 10, 2, 12, 2, 35, 9, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 3, 3, 42, 8, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 5, 4, 49, 8, 4, 10, 4, 12, 4, 52, 9, 4, 1, 4, 1, 4, 1, 5, 1, 5, 3, 5, 58, 8, 5, 1, 6, 3, 6, 61, 8, 6, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 3, 7, 70, 8, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 3, 8, 83, 8, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 5, 8, 91, 8, 8, 10, 8, 12, 8, 94, 9, 8, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 5, 9, 101, 8, 9, 10, 9, 12, 9, 104, 9, 9, 3, 9, 106, 8, 9, 1, 9, 1, 9, 3, 9, 110, 8, 9, 1, 9, 0, 1, 16, 10, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 0, 3, 1, 0, 10, 11, 1, 0, 16, 17, 1, 0, 8, 9, 120, 0, 23, 1, 0, 0, 0, 2, 25, 1, 0, 0, 0, 4, 27, 1, 0, 0, 0, 6, 38, 1, 0, 0, 0, 8, 43, 1, 0, 0, 0, 10, 57, 1, 0, 0, 0, 12, 60, 1, 0, 0, 0, 14, 69, 1, 0, 0, 0, 16, 82, 1, 0, 0, 0, 18, 109, 1, 0, 0, 0, 20, 24, 3, 2, 1, 0, 21, 24, 3, 4, 2, 0, 22, 24, 3, 8, 4, 0, 23, 20, 1, 0, 0, 0, 23, 21, 1, 0, 0, 0, 23, 22, 1, 0, 0, 0, 24, 1, 1, 0, 0, 0, 25, 26, 3, 18, 9, 0, 26, 3, 1, 0, 0, 0, 27, 28, 5, 1, 0, 0, 28, 33, 3, 6, 3, 0, 29, 30, 5, 2, 0, 0, 30, 32, 3, 6, 3, 0, 31, 29, 1, 0, 0, 0, 32, 35, 1, 0, 0, 0, 33, 31, 1, 0, 0, 0, 33, 34, 1, 0, 0, 0, 34, 36, 1, 0, 0, 0, 35, 33, 1, 0, 0, 0, 36, 37, 5, 3, 0, 0, 37, 5, 1, 0, 0, 0, 38, 41, 3, 18, 9, 0, 39, 40, 5, 4, 0, 0, 40, 42, 5, 15, 0, 0, 41, 39, 1, 0, 0, 0, 41, 42, 1, 0, 0, 0, 42, 7, 1, 0, 0, 0, 43, 44, 3, 18, 9, 0, 44, 45, 5, 5, 0, 0, 45, 50, 3, 10, 5, 0, 46, 47, 5, 2, 0, 0, 47, 49, 3, 10, 5, 0, 48, 46, 1, 0, 0, 0, 49, 52, 1, 0, 0, 0, 50, 48, 1, 0, 0, 0, 50, 51, 1, 0, 0, 0, 51, 53, 1, 0, 0, 0, 52, 50, 1, 0, 0, 0, 53, 54, 5, 6, 0, 0, 54, 9, 1, 0, 0, 0, 55, 58, 3, 12, 6, 0, 56, 58, 3, 14, 7, 0, 57, 55, 1, 0, 0, 0, 57, 56, 1, 0, 0, 0, 58, 11, 1, 0, 0, 0, 59, 61, 5, 15, 0, 0, 60, 59, 1, 0, 0, 0, 60, 61, 1, 0, 0, 0, 61, 13, 1, 0, 0, 0, 62, 63, 5, 15, 0, 0, 63, 70, 5, 7, 0, 0, 64, 65, 5, 7, 0, 0, 65, 70, 5, 15, 0, 0, 66, 67, 5, 15, 0, 0, 67, 68, 5, 7, 0, 0, 68, 70, 5, 15, 0, 0, 69, 62, 1, 0, 0, 0, 69, 64, 1, 0, 0, 0, 69, 66, 1, 0, 0, 0, 70, 15, 1, 0, 0, 0, 71, 72, 6, 8, -1, 0, 72, 73, 5, 1, 0, 0, 73, 74, 3, 16, 8, 0, 74, 75, 5, 3, 0, 0, 75, 83, 1, 0, 0, 0, 76, 77, 7, 0, 0, 0, 77, 83, 3, 16, 8, 5, 78, 83, 7, 1, 0, 0, 79, 83, 5, 13, 0, 0, 80, 83, 5, 15, 0, 0, 81, 83, 3, 18, 9, 0, 82, 71, 1, 0, 0, 0, 82, 76, 1, 0, 0, 0, 82, 78, 1, 0, 0, 0, 82, 79, 1, 0, 0, 0, 82, 80, 1, 0, 0, 0, 82, 81, 1, 0, 0, 0, 83, 92, 1, 0, 0, 0, 84, 85, 10, 7, 0, 0, 85, 86, 7, 2, 0, 0, 86, 91, 3, 16, 8, 8, 87, 88, 10, 6, 0, 0, 88, 89, 7, 0, 0, 0, 89, 91, 3, 16, 8, 7, 90, 84, 1, 0, 0, 0, 90, 87, 1, 0, 0, 0, 91, 94, 1, 0, 0, 0, 92, 90, 1, 0, 0, 0, 92, 93, 1, 0, 0, 0, 93, 17, 1, 0, 0, 0, 94, 92, 1, 0, 0, 0, 95, 96, 5, 12, 0, 0, 96, 105, 5, 1, 0, 0, 97, 102, 3, 16, 8, 0, 98, 99, 5, 2, 0, 0, 99, 101, 3, 16, 8, 0, 100, 98, 1, 0, 0, 0, 101, 104, 1, 0, 0, 0, 102, 100, 1, 0, 0, 0, 102, 103, 1, 0, 0, 0, 103, 106, 1, 0, 0, 0, 104, 102, 1, 0, 0, 0, 105, 97, 1, 0, 0, 0, 105, 106, 1, 0, 0, 0, 106, 107, 1, 0, 0, 0, 107, 110, 5, 3, 0, 0, 108, 110, 5, 12, 0, 0, 109, 95, 1, 0, 0, 0, 109, 108, 1, 0, 0, 0, 110, 19, 1, 0, 0, 0, 13, 23, 33, 41, 50, 57, 60, 69, 82, 90, 92, 102, 105, 109]
\ No newline at end of file
T__0=1
T__1=2
T__2=3
T__3=4
T__4=5
T__5=6
T__6=7
T__7=8
T__8=9
T__9=10
T__10=11
ID=12
STRING=13
COMMENT=14
INT=15
NUM=16
DP=17
TDD_COMMENT=18
NEWLINE=19
WS=20
'('=1
','=2
')'=3
'='=4
'['=5
']'=6
':'=7
'*'=8
'/'=9
'+'=10
'-'=11
// Generated from /home/sgu/IdeaProjects/python-oceandsls/tdd-dsl/tddLSPServer/grammars/Typing.g4 by ANTLR 4.12.0
package grammars;
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 TypingListener},
* which can be extended to create a listener which only needs to handle a subset
* of the available methods.
*/
@SuppressWarnings("CheckReturnValue")
public class TypingBaseListener implements TypingListener {
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void enterRef(TypingParser.RefContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void exitRef(TypingParser.RefContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void enterEnm(TypingParser.EnmContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void exitEnm(TypingParser.EnmContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void enterArray(TypingParser.ArrayContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void exitArray(TypingParser.ArrayContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void enterTypeRef(TypingParser.TypeRefContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void exitTypeRef(TypingParser.TypeRefContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void enterEnumType(TypingParser.EnumTypeContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void exitEnumType(TypingParser.EnumTypeContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void enterEnum(TypingParser.EnumContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void exitEnum(TypingParser.EnumContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void enterArrayType(TypingParser.ArrayTypeContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void exitArrayType(TypingParser.ArrayTypeContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void enterSize(TypingParser.SizeContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void exitSize(TypingParser.SizeContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void enterRange(TypingParser.RangeContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void exitRange(TypingParser.RangeContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void enterSizeDim(TypingParser.SizeDimContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void exitSizeDim(TypingParser.SizeDimContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void enterRangeDim(TypingParser.RangeDimContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void exitRangeDim(TypingParser.RangeDimContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void enterStrExpr(TypingParser.StrExprContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void exitStrExpr(TypingParser.StrExprContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void enterIntExpr(TypingParser.IntExprContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void exitIntExpr(TypingParser.IntExprContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void enterAddSubExpr(TypingParser.AddSubExprContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void exitAddSubExpr(TypingParser.AddSubExprContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void enterSignExpr(TypingParser.SignExprContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void exitSignExpr(TypingParser.SignExprContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void enterRefExpr(TypingParser.RefExprContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void exitRefExpr(TypingParser.RefExprContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void enterNumberExpr(TypingParser.NumberExprContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void exitNumberExpr(TypingParser.NumberExprContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void enterParensExpr(TypingParser.ParensExprContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void exitParensExpr(TypingParser.ParensExprContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void enterMulDivExpr(TypingParser.MulDivExprContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void exitMulDivExpr(TypingParser.MulDivExprContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void enterFunRef(TypingParser.FunRefContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void exitFunRef(TypingParser.FunRefContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void enterVarRef(TypingParser.VarRefContext ctx) {
}
/**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void exitVarRef(TypingParser.VarRefContext 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) {
}
}
\ No newline at end of file
// Generated from /home/sgu/IdeaProjects/python-oceandsls/tdd-dsl/tddLSPServer/grammars/Typing.g4 by ANTLR 4.12.0
package grammars;
import org.antlr.v4.runtime.tree.AbstractParseTreeVisitor;
/**
* This class provides an empty implementation of {@link TypingVisitor},
* 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.
*/
@SuppressWarnings("CheckReturnValue")
public class TypingBaseVisitor<T> extends AbstractParseTreeVisitor<T> implements TypingVisitor<T> {
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override
public T visitRef(TypingParser.RefContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override
public T visitEnm(TypingParser.EnmContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override
public T visitArray(TypingParser.ArrayContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override
public T visitTypeRef(TypingParser.TypeRefContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override
public T visitEnumType(TypingParser.EnumTypeContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override
public T visitEnum(TypingParser.EnumContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override
public T visitArrayType(TypingParser.ArrayTypeContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override
public T visitSize(TypingParser.SizeContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override
public T visitRange(TypingParser.RangeContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override
public T visitSizeDim(TypingParser.SizeDimContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override
public T visitRangeDim(TypingParser.RangeDimContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override
public T visitStrExpr(TypingParser.StrExprContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override
public T visitIntExpr(TypingParser.IntExprContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override
public T visitAddSubExpr(TypingParser.AddSubExprContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override
public T visitSignExpr(TypingParser.SignExprContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override
public T visitRefExpr(TypingParser.RefExprContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override
public T visitNumberExpr(TypingParser.NumberExprContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override
public T visitParensExpr(TypingParser.ParensExprContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override
public T visitMulDivExpr(TypingParser.MulDivExprContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override
public T visitFunRef(TypingParser.FunRefContext ctx) {
return visitChildren(ctx);
}
/**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override
public T visitVarRef(TypingParser.VarRefContext ctx) {
return visitChildren(ctx);
}
}
\ No newline at end of file
token literal names:
null
'('
','
')'
'='
'['
']'
':'
'*'
'/'
'+'
'-'
null
null
null
null
null
null
null
null
null
token symbolic names:
null
null
null
null
null
null
null
null
null
null
null
null
ID
STRING
COMMENT
INT
NUM
DP
TDD_COMMENT
NEWLINE
WS
rule names:
T__0
T__1
T__2
T__3
T__4
T__5
T__6
T__7
T__8
T__9
T__10
ID
STRING
COMMENT
ESC
INT
NUM
DP
EXP
DEXP
DIG
TDD_COMMENT
NEWLINE
WS
channel names:
DEFAULT_TOKEN_CHANNEL
HIDDEN
mode names:
DEFAULT_MODE
atn:
[4, 0, 20, 212, 6, -1, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2, 11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7, 16, 2, 17, 7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20, 7, 20, 2, 21, 7, 21, 2, 22, 7, 22, 2, 23, 7, 23, 1, 0, 1, 0, 1, 1, 1, 1, 1, 2, 1, 2, 1, 3, 1, 3, 1, 4, 1, 4, 1, 5, 1, 5, 1, 6, 1, 6, 1, 7, 1, 7, 1, 8, 1, 8, 1, 9, 1, 9, 1, 10, 1, 10, 1, 11, 1, 11, 5, 11, 74, 8, 11, 10, 11, 12, 11, 77, 9, 11, 1, 12, 1, 12, 1, 12, 5, 12, 82, 8, 12, 10, 12, 12, 12, 85, 9, 12, 1, 12, 1, 12, 1, 13, 1, 13, 1, 13, 5, 13, 92, 8, 13, 10, 13, 12, 13, 95, 9, 13, 1, 13, 1, 13, 1, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 5, 15, 105, 8, 15, 10, 15, 12, 15, 108, 9, 15, 3, 15, 110, 8, 15, 1, 16, 3, 16, 113, 8, 16, 1, 16, 1, 16, 4, 16, 117, 8, 16, 11, 16, 12, 16, 118, 1, 16, 4, 16, 122, 8, 16, 11, 16, 12, 16, 123, 1, 16, 1, 16, 5, 16, 128, 8, 16, 10, 16, 12, 16, 131, 9, 16, 3, 16, 133, 8, 16, 1, 16, 3, 16, 136, 8, 16, 3, 16, 138, 8, 16, 1, 17, 3, 17, 141, 8, 17, 1, 17, 1, 17, 4, 17, 145, 8, 17, 11, 17, 12, 17, 146, 1, 17, 4, 17, 150, 8, 17, 11, 17, 12, 17, 151, 1, 17, 1, 17, 5, 17, 156, 8, 17, 10, 17, 12, 17, 159, 9, 17, 3, 17, 161, 8, 17, 1, 17, 3, 17, 164, 8, 17, 3, 17, 166, 8, 17, 1, 18, 1, 18, 3, 18, 170, 8, 18, 1, 18, 4, 18, 173, 8, 18, 11, 18, 12, 18, 174, 1, 19, 1, 19, 3, 19, 179, 8, 19, 1, 19, 4, 19, 182, 8, 19, 11, 19, 12, 19, 183, 1, 20, 1, 20, 1, 21, 1, 21, 1, 21, 1, 21, 5, 21, 192, 8, 21, 10, 21, 12, 21, 195, 9, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 22, 3, 22, 202, 8, 22, 1, 22, 1, 22, 1, 23, 4, 23, 207, 8, 23, 11, 23, 12, 23, 208, 1, 23, 1, 23, 3, 83, 93, 193, 0, 24, 1, 1, 3, 2, 5, 3, 7, 4, 9, 5, 11, 6, 13, 7, 15, 8, 17, 9, 19, 10, 21, 11, 23, 12, 25, 13, 27, 14, 29, 0, 31, 15, 33, 16, 35, 17, 37, 0, 39, 0, 41, 0, 43, 18, 45, 19, 47, 20, 1, 0, 8, 2, 0, 65, 90, 97, 122, 4, 0, 48, 57, 65, 90, 95, 95, 97, 122, 7, 0, 34, 34, 39, 39, 92, 92, 98, 98, 110, 110, 114, 114, 116, 116, 1, 0, 49, 57, 2, 0, 69, 69, 101, 101, 2, 0, 43, 43, 45, 45, 1, 0, 48, 57, 2, 0, 9, 9, 32, 32, 235, 0, 1, 1, 0, 0, 0, 0, 3, 1, 0, 0, 0, 0, 5, 1, 0, 0, 0, 0, 7, 1, 0, 0, 0, 0, 9, 1, 0, 0, 0, 0, 11, 1, 0, 0, 0, 0, 13, 1, 0, 0, 0, 0, 15, 1, 0, 0, 0, 0, 17, 1, 0, 0, 0, 0, 19, 1, 0, 0, 0, 0, 21, 1, 0, 0, 0, 0, 23, 1, 0, 0, 0, 0, 25, 1, 0, 0, 0, 0, 27, 1, 0, 0, 0, 0, 31, 1, 0, 0, 0, 0, 33, 1, 0, 0, 0, 0, 35, 1, 0, 0, 0, 0, 43, 1, 0, 0, 0, 0, 45, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 1, 49, 1, 0, 0, 0, 3, 51, 1, 0, 0, 0, 5, 53, 1, 0, 0, 0, 7, 55, 1, 0, 0, 0, 9, 57, 1, 0, 0, 0, 11, 59, 1, 0, 0, 0, 13, 61, 1, 0, 0, 0, 15, 63, 1, 0, 0, 0, 17, 65, 1, 0, 0, 0, 19, 67, 1, 0, 0, 0, 21, 69, 1, 0, 0, 0, 23, 71, 1, 0, 0, 0, 25, 78, 1, 0, 0, 0, 27, 88, 1, 0, 0, 0, 29, 98, 1, 0, 0, 0, 31, 109, 1, 0, 0, 0, 33, 112, 1, 0, 0, 0, 35, 140, 1, 0, 0, 0, 37, 167, 1, 0, 0, 0, 39, 176, 1, 0, 0, 0, 41, 185, 1, 0, 0, 0, 43, 187, 1, 0, 0, 0, 45, 201, 1, 0, 0, 0, 47, 206, 1, 0, 0, 0, 49, 50, 5, 40, 0, 0, 50, 2, 1, 0, 0, 0, 51, 52, 5, 44, 0, 0, 52, 4, 1, 0, 0, 0, 53, 54, 5, 41, 0, 0, 54, 6, 1, 0, 0, 0, 55, 56, 5, 61, 0, 0, 56, 8, 1, 0, 0, 0, 57, 58, 5, 91, 0, 0, 58, 10, 1, 0, 0, 0, 59, 60, 5, 93, 0, 0, 60, 12, 1, 0, 0, 0, 61, 62, 5, 58, 0, 0, 62, 14, 1, 0, 0, 0, 63, 64, 5, 42, 0, 0, 64, 16, 1, 0, 0, 0, 65, 66, 5, 47, 0, 0, 66, 18, 1, 0, 0, 0, 67, 68, 5, 43, 0, 0, 68, 20, 1, 0, 0, 0, 69, 70, 5, 45, 0, 0, 70, 22, 1, 0, 0, 0, 71, 75, 7, 0, 0, 0, 72, 74, 7, 1, 0, 0, 73, 72, 1, 0, 0, 0, 74, 77, 1, 0, 0, 0, 75, 73, 1, 0, 0, 0, 75, 76, 1, 0, 0, 0, 76, 24, 1, 0, 0, 0, 77, 75, 1, 0, 0, 0, 78, 83, 5, 39, 0, 0, 79, 82, 3, 29, 14, 0, 80, 82, 9, 0, 0, 0, 81, 79, 1, 0, 0, 0, 81, 80, 1, 0, 0, 0, 82, 85, 1, 0, 0, 0, 83, 84, 1, 0, 0, 0, 83, 81, 1, 0, 0, 0, 84, 86, 1, 0, 0, 0, 85, 83, 1, 0, 0, 0, 86, 87, 5, 39, 0, 0, 87, 26, 1, 0, 0, 0, 88, 93, 5, 35, 0, 0, 89, 92, 3, 29, 14, 0, 90, 92, 9, 0, 0, 0, 91, 89, 1, 0, 0, 0, 91, 90, 1, 0, 0, 0, 92, 95, 1, 0, 0, 0, 93, 94, 1, 0, 0, 0, 93, 91, 1, 0, 0, 0, 94, 96, 1, 0, 0, 0, 95, 93, 1, 0, 0, 0, 96, 97, 3, 45, 22, 0, 97, 28, 1, 0, 0, 0, 98, 99, 5, 92, 0, 0, 99, 100, 7, 2, 0, 0, 100, 30, 1, 0, 0, 0, 101, 110, 5, 48, 0, 0, 102, 106, 7, 3, 0, 0, 103, 105, 3, 41, 20, 0, 104, 103, 1, 0, 0, 0, 105, 108, 1, 0, 0, 0, 106, 104, 1, 0, 0, 0, 106, 107, 1, 0, 0, 0, 107, 110, 1, 0, 0, 0, 108, 106, 1, 0, 0, 0, 109, 101, 1, 0, 0, 0, 109, 102, 1, 0, 0, 0, 110, 32, 1, 0, 0, 0, 111, 113, 5, 45, 0, 0, 112, 111, 1, 0, 0, 0, 112, 113, 1, 0, 0, 0, 113, 137, 1, 0, 0, 0, 114, 116, 5, 46, 0, 0, 115, 117, 3, 41, 20, 0, 116, 115, 1, 0, 0, 0, 117, 118, 1, 0, 0, 0, 118, 116, 1, 0, 0, 0, 118, 119, 1, 0, 0, 0, 119, 138, 1, 0, 0, 0, 120, 122, 3, 41, 20, 0, 121, 120, 1, 0, 0, 0, 122, 123, 1, 0, 0, 0, 123, 121, 1, 0, 0, 0, 123, 124, 1, 0, 0, 0, 124, 132, 1, 0, 0, 0, 125, 129, 5, 46, 0, 0, 126, 128, 3, 41, 20, 0, 127, 126, 1, 0, 0, 0, 128, 131, 1, 0, 0, 0, 129, 127, 1, 0, 0, 0, 129, 130, 1, 0, 0, 0, 130, 133, 1, 0, 0, 0, 131, 129, 1, 0, 0, 0, 132, 125, 1, 0, 0, 0, 132, 133, 1, 0, 0, 0, 133, 135, 1, 0, 0, 0, 134, 136, 3, 37, 18, 0, 135, 134, 1, 0, 0, 0, 135, 136, 1, 0, 0, 0, 136, 138, 1, 0, 0, 0, 137, 114, 1, 0, 0, 0, 137, 121, 1, 0, 0, 0, 138, 34, 1, 0, 0, 0, 139, 141, 5, 45, 0, 0, 140, 139, 1, 0, 0, 0, 140, 141, 1, 0, 0, 0, 141, 165, 1, 0, 0, 0, 142, 144, 5, 46, 0, 0, 143, 145, 3, 41, 20, 0, 144, 143, 1, 0, 0, 0, 145, 146, 1, 0, 0, 0, 146, 144, 1, 0, 0, 0, 146, 147, 1, 0, 0, 0, 147, 166, 1, 0, 0, 0, 148, 150, 3, 41, 20, 0, 149, 148, 1, 0, 0, 0, 150, 151, 1, 0, 0, 0, 151, 149, 1, 0, 0, 0, 151, 152, 1, 0, 0, 0, 152, 160, 1, 0, 0, 0, 153, 157, 5, 46, 0, 0, 154, 156, 3, 41, 20, 0, 155, 154, 1, 0, 0, 0, 156, 159, 1, 0, 0, 0, 157, 155, 1, 0, 0, 0, 157, 158, 1, 0, 0, 0, 158, 161, 1, 0, 0, 0, 159, 157, 1, 0, 0, 0, 160, 153, 1, 0, 0, 0, 160, 161, 1, 0, 0, 0, 161, 163, 1, 0, 0, 0, 162, 164, 3, 39, 19, 0, 163, 162, 1, 0, 0, 0, 163, 164, 1, 0, 0, 0, 164, 166, 1, 0, 0, 0, 165, 142, 1, 0, 0, 0, 165, 149, 1, 0, 0, 0, 166, 36, 1, 0, 0, 0, 167, 169, 7, 4, 0, 0, 168, 170, 7, 5, 0, 0, 169, 168, 1, 0, 0, 0, 169, 170, 1, 0, 0, 0, 170, 172, 1, 0, 0, 0, 171, 173, 3, 41, 20, 0, 172, 171, 1, 0, 0, 0, 173, 174, 1, 0, 0, 0, 174, 172, 1, 0, 0, 0, 174, 175, 1, 0, 0, 0, 175, 38, 1, 0, 0, 0, 176, 178, 5, 68, 0, 0, 177, 179, 7, 5, 0, 0, 178, 177, 1, 0, 0, 0, 178, 179, 1, 0, 0, 0, 179, 181, 1, 0, 0, 0, 180, 182, 3, 41, 20, 0, 181, 180, 1, 0, 0, 0, 182, 183, 1, 0, 0, 0, 183, 181, 1, 0, 0, 0, 183, 184, 1, 0, 0, 0, 184, 40, 1, 0, 0, 0, 185, 186, 7, 6, 0, 0, 186, 42, 1, 0, 0, 0, 187, 188, 5, 47, 0, 0, 188, 189, 5, 47, 0, 0, 189, 193, 1, 0, 0, 0, 190, 192, 9, 0, 0, 0, 191, 190, 1, 0, 0, 0, 192, 195, 1, 0, 0, 0, 193, 194, 1, 0, 0, 0, 193, 191, 1, 0, 0, 0, 194, 196, 1, 0, 0, 0, 195, 193, 1, 0, 0, 0, 196, 197, 3, 45, 22, 0, 197, 198, 1, 0, 0, 0, 198, 199, 6, 21, 0, 0, 199, 44, 1, 0, 0, 0, 200, 202, 5, 13, 0, 0, 201, 200, 1, 0, 0, 0, 201, 202, 1, 0, 0, 0, 202, 203, 1, 0, 0, 0, 203, 204, 5, 10, 0, 0, 204, 46, 1, 0, 0, 0, 205, 207, 7, 7, 0, 0, 206, 205, 1, 0, 0, 0, 207, 208, 1, 0, 0, 0, 208, 206, 1, 0, 0, 0, 208, 209, 1, 0, 0, 0, 209, 210, 1, 0, 0, 0, 210, 211, 6, 23, 0, 0, 211, 48, 1, 0, 0, 0, 29, 0, 75, 81, 83, 91, 93, 106, 109, 112, 118, 123, 129, 132, 135, 137, 140, 146, 151, 157, 160, 163, 165, 169, 174, 178, 183, 193, 201, 208, 1, 0, 1, 0]
\ No newline at end of file
// Generated from /home/sgu/IdeaProjects/python-oceandsls/tdd-dsl/tddLSPServer/grammars/Typing.g4 by ANTLR 4.12.0
package grammars;
import org.antlr.v4.runtime.Lexer;
import org.antlr.v4.runtime.CharStream;
import org.antlr.v4.runtime.Token;
import org.antlr.v4.runtime.TokenStream;
import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.atn.*;
import org.antlr.v4.runtime.dfa.DFA;
import org.antlr.v4.runtime.misc.*;
@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast", "CheckReturnValue"})
public class TypingLexer extends Lexer {
public static final int
T__0 = 1, T__1 = 2, T__2 = 3, T__3 = 4, T__4 = 5, T__5 = 6, T__6 = 7, T__7 = 8, T__8 = 9,
T__9 = 10, T__10 = 11, ID = 12, STRING = 13, COMMENT = 14, INT = 15, NUM = 16, DP = 17,
TDD_COMMENT = 18, NEWLINE = 19, WS = 20;
public static final String[] ruleNames = makeRuleNames();
/**
* @deprecated Use {@link #VOCABULARY} instead.
*/
@Deprecated
public static final String[] tokenNames;
public static final String _serializedATN =
"\u0004\u0000\u0014\u00d4\u0006\uffff\uffff\u0002\u0000\u0007\u0000\u0002" +
"\u0001\u0007\u0001\u0002\u0002\u0007\u0002\u0002\u0003\u0007\u0003\u0002" +
"\u0004\u0007\u0004\u0002\u0005\u0007\u0005\u0002\u0006\u0007\u0006\u0002" +
"\u0007\u0007\u0007\u0002\b\u0007\b\u0002\t\u0007\t\u0002\n\u0007\n\u0002" +
"\u000b\u0007\u000b\u0002\f\u0007\f\u0002\r\u0007\r\u0002\u000e\u0007\u000e" +
"\u0002\u000f\u0007\u000f\u0002\u0010\u0007\u0010\u0002\u0011\u0007\u0011" +
"\u0002\u0012\u0007\u0012\u0002\u0013\u0007\u0013\u0002\u0014\u0007\u0014" +
"\u0002\u0015\u0007\u0015\u0002\u0016\u0007\u0016\u0002\u0017\u0007\u0017" +
"\u0001\u0000\u0001\u0000\u0001\u0001\u0001\u0001\u0001\u0002\u0001\u0002" +
"\u0001\u0003\u0001\u0003\u0001\u0004\u0001\u0004\u0001\u0005\u0001\u0005" +
"\u0001\u0006\u0001\u0006\u0001\u0007\u0001\u0007\u0001\b\u0001\b\u0001" +
"\t\u0001\t\u0001\n\u0001\n\u0001\u000b\u0001\u000b\u0005\u000bJ\b\u000b" +
"\n\u000b\f\u000bM\t\u000b\u0001\f\u0001\f\u0001\f\u0005\fR\b\f\n\f\f\f" +
"U\t\f\u0001\f\u0001\f\u0001\r\u0001\r\u0001\r\u0005\r\\\b\r\n\r\f\r_\t" +
"\r\u0001\r\u0001\r\u0001\u000e\u0001\u000e\u0001\u000e\u0001\u000f\u0001" +
"\u000f\u0001\u000f\u0005\u000fi\b\u000f\n\u000f\f\u000fl\t\u000f\u0003" +
"\u000fn\b\u000f\u0001\u0010\u0003\u0010q\b\u0010\u0001\u0010\u0001\u0010" +
"\u0004\u0010u\b\u0010\u000b\u0010\f\u0010v\u0001\u0010\u0004\u0010z\b" +
"\u0010\u000b\u0010\f\u0010{\u0001\u0010\u0001\u0010\u0005\u0010\u0080" +
"\b\u0010\n\u0010\f\u0010\u0083\t\u0010\u0003\u0010\u0085\b\u0010\u0001" +
"\u0010\u0003\u0010\u0088\b\u0010\u0003\u0010\u008a\b\u0010\u0001\u0011" +
"\u0003\u0011\u008d\b\u0011\u0001\u0011\u0001\u0011\u0004\u0011\u0091\b" +
"\u0011\u000b\u0011\f\u0011\u0092\u0001\u0011\u0004\u0011\u0096\b\u0011" +
"\u000b\u0011\f\u0011\u0097\u0001\u0011\u0001\u0011\u0005\u0011\u009c\b" +
"\u0011\n\u0011\f\u0011\u009f\t\u0011\u0003\u0011\u00a1\b\u0011\u0001\u0011" +
"\u0003\u0011\u00a4\b\u0011\u0003\u0011\u00a6\b\u0011\u0001\u0012\u0001" +
"\u0012\u0003\u0012\u00aa\b\u0012\u0001\u0012\u0004\u0012\u00ad\b\u0012" +
"\u000b\u0012\f\u0012\u00ae\u0001\u0013\u0001\u0013\u0003\u0013\u00b3\b" +
"\u0013\u0001\u0013\u0004\u0013\u00b6\b\u0013\u000b\u0013\f\u0013\u00b7" +
"\u0001\u0014\u0001\u0014\u0001\u0015\u0001\u0015\u0001\u0015\u0001\u0015" +
"\u0005\u0015\u00c0\b\u0015\n\u0015\f\u0015\u00c3\t\u0015\u0001\u0015\u0001" +
"\u0015\u0001\u0015\u0001\u0015\u0001\u0016\u0003\u0016\u00ca\b\u0016\u0001" +
"\u0016\u0001\u0016\u0001\u0017\u0004\u0017\u00cf\b\u0017\u000b\u0017\f" +
"\u0017\u00d0\u0001\u0017\u0001\u0017\u0003S]\u00c1\u0000\u0018\u0001\u0001" +
"\u0003\u0002\u0005\u0003\u0007\u0004\t\u0005\u000b\u0006\r\u0007\u000f" +
"\b\u0011\t\u0013\n\u0015\u000b\u0017\f\u0019\r\u001b\u000e\u001d\u0000" +
"\u001f\u000f!\u0010#\u0011%\u0000\'\u0000)\u0000+\u0012-\u0013/\u0014" +
"\u0001\u0000\b\u0002\u0000AZaz\u0004\u000009AZ__az\u0007\u0000\"\"\'\'" +
"\\\\bbnnrrtt\u0001\u000019\u0002\u0000EEee\u0002\u0000++--\u0001\u0000" +
"09\u0002\u0000\t\t \u00eb\u0000\u0001\u0001\u0000\u0000\u0000\u0000\u0003" +
"\u0001\u0000\u0000\u0000\u0000\u0005\u0001\u0000\u0000\u0000\u0000\u0007" +
"\u0001\u0000\u0000\u0000\u0000\t\u0001\u0000\u0000\u0000\u0000\u000b\u0001" +
"\u0000\u0000\u0000\u0000\r\u0001\u0000\u0000\u0000\u0000\u000f\u0001\u0000" +
"\u0000\u0000\u0000\u0011\u0001\u0000\u0000\u0000\u0000\u0013\u0001\u0000" +
"\u0000\u0000\u0000\u0015\u0001\u0000\u0000\u0000\u0000\u0017\u0001\u0000" +
"\u0000\u0000\u0000\u0019\u0001\u0000\u0000\u0000\u0000\u001b\u0001\u0000" +
"\u0000\u0000\u0000\u001f\u0001\u0000\u0000\u0000\u0000!\u0001\u0000\u0000" +
"\u0000\u0000#\u0001\u0000\u0000\u0000\u0000+\u0001\u0000\u0000\u0000\u0000" +
"-\u0001\u0000\u0000\u0000\u0000/\u0001\u0000\u0000\u0000\u00011\u0001" +
"\u0000\u0000\u0000\u00033\u0001\u0000\u0000\u0000\u00055\u0001\u0000\u0000" +
"\u0000\u00077\u0001\u0000\u0000\u0000\t9\u0001\u0000\u0000\u0000\u000b" +
";\u0001\u0000\u0000\u0000\r=\u0001\u0000\u0000\u0000\u000f?\u0001\u0000" +
"\u0000\u0000\u0011A\u0001\u0000\u0000\u0000\u0013C\u0001\u0000\u0000\u0000" +
"\u0015E\u0001\u0000\u0000\u0000\u0017G\u0001\u0000\u0000\u0000\u0019N" +
"\u0001\u0000\u0000\u0000\u001bX\u0001\u0000\u0000\u0000\u001db\u0001\u0000" +
"\u0000\u0000\u001fm\u0001\u0000\u0000\u0000!p\u0001\u0000\u0000\u0000" +
"#\u008c\u0001\u0000\u0000\u0000%\u00a7\u0001\u0000\u0000\u0000\'\u00b0" +
"\u0001\u0000\u0000\u0000)\u00b9\u0001\u0000\u0000\u0000+\u00bb\u0001\u0000" +
"\u0000\u0000-\u00c9\u0001\u0000\u0000\u0000/\u00ce\u0001\u0000\u0000\u0000" +
"12\u0005(\u0000\u00002\u0002\u0001\u0000\u0000\u000034\u0005,\u0000\u0000" +
"4\u0004\u0001\u0000\u0000\u000056\u0005)\u0000\u00006\u0006\u0001\u0000" +
"\u0000\u000078\u0005=\u0000\u00008\b\u0001\u0000\u0000\u00009:\u0005[" +
"\u0000\u0000:\n\u0001\u0000\u0000\u0000;<\u0005]\u0000\u0000<\f\u0001" +
"\u0000\u0000\u0000=>\u0005:\u0000\u0000>\u000e\u0001\u0000\u0000\u0000" +
"?@\u0005*\u0000\u0000@\u0010\u0001\u0000\u0000\u0000AB\u0005/\u0000\u0000" +
"B\u0012\u0001\u0000\u0000\u0000CD\u0005+\u0000\u0000D\u0014\u0001\u0000" +
"\u0000\u0000EF\u0005-\u0000\u0000F\u0016\u0001\u0000\u0000\u0000GK\u0007" +
"\u0000\u0000\u0000HJ\u0007\u0001\u0000\u0000IH\u0001\u0000\u0000\u0000" +
"JM\u0001\u0000\u0000\u0000KI\u0001\u0000\u0000\u0000KL\u0001\u0000\u0000" +
"\u0000L\u0018\u0001\u0000\u0000\u0000MK\u0001\u0000\u0000\u0000NS\u0005" +
"\'\u0000\u0000OR\u0003\u001d\u000e\u0000PR\t\u0000\u0000\u0000QO\u0001" +
"\u0000\u0000\u0000QP\u0001\u0000\u0000\u0000RU\u0001\u0000\u0000\u0000" +
"ST\u0001\u0000\u0000\u0000SQ\u0001\u0000\u0000\u0000TV\u0001\u0000\u0000" +
"\u0000US\u0001\u0000\u0000\u0000VW\u0005\'\u0000\u0000W\u001a\u0001\u0000" +
"\u0000\u0000X]\u0005#\u0000\u0000Y\\\u0003\u001d\u000e\u0000Z\\\t\u0000" +
"\u0000\u0000[Y\u0001\u0000\u0000\u0000[Z\u0001\u0000\u0000\u0000\\_\u0001" +
"\u0000\u0000\u0000]^\u0001\u0000\u0000\u0000][\u0001\u0000\u0000\u0000" +
"^`\u0001\u0000\u0000\u0000_]\u0001\u0000\u0000\u0000`a\u0003-\u0016\u0000" +
"a\u001c\u0001\u0000\u0000\u0000bc\u0005\\\u0000\u0000cd\u0007\u0002\u0000" +
"\u0000d\u001e\u0001\u0000\u0000\u0000en\u00050\u0000\u0000fj\u0007\u0003" +
"\u0000\u0000gi\u0003)\u0014\u0000hg\u0001\u0000\u0000\u0000il\u0001\u0000" +
"\u0000\u0000jh\u0001\u0000\u0000\u0000jk\u0001\u0000\u0000\u0000kn\u0001" +
"\u0000\u0000\u0000lj\u0001\u0000\u0000\u0000me\u0001\u0000\u0000\u0000" +
"mf\u0001\u0000\u0000\u0000n \u0001\u0000\u0000\u0000oq\u0005-\u0000\u0000" +
"po\u0001\u0000\u0000\u0000pq\u0001\u0000\u0000\u0000q\u0089\u0001\u0000" +
"\u0000\u0000rt\u0005.\u0000\u0000su\u0003)\u0014\u0000ts\u0001\u0000\u0000" +
"\u0000uv\u0001\u0000\u0000\u0000vt\u0001\u0000\u0000\u0000vw\u0001\u0000" +
"\u0000\u0000w\u008a\u0001\u0000\u0000\u0000xz\u0003)\u0014\u0000yx\u0001" +
"\u0000\u0000\u0000z{\u0001\u0000\u0000\u0000{y\u0001\u0000\u0000\u0000" +
"{|\u0001\u0000\u0000\u0000|\u0084\u0001\u0000\u0000\u0000}\u0081\u0005" +
".\u0000\u0000~\u0080\u0003)\u0014\u0000\u007f~\u0001\u0000\u0000\u0000" +
"\u0080\u0083\u0001\u0000\u0000\u0000\u0081\u007f\u0001\u0000\u0000\u0000" +
"\u0081\u0082\u0001\u0000\u0000\u0000\u0082\u0085\u0001\u0000\u0000\u0000" +
"\u0083\u0081\u0001\u0000\u0000\u0000\u0084}\u0001\u0000\u0000\u0000\u0084" +
"\u0085\u0001\u0000\u0000\u0000\u0085\u0087\u0001\u0000\u0000\u0000\u0086" +
"\u0088\u0003%\u0012\u0000\u0087\u0086\u0001\u0000\u0000\u0000\u0087\u0088" +
"\u0001\u0000\u0000\u0000\u0088\u008a\u0001\u0000\u0000\u0000\u0089r\u0001" +
"\u0000\u0000\u0000\u0089y\u0001\u0000\u0000\u0000\u008a\"\u0001\u0000" +
"\u0000\u0000\u008b\u008d\u0005-\u0000\u0000\u008c\u008b\u0001\u0000\u0000" +
"\u0000\u008c\u008d\u0001\u0000\u0000\u0000\u008d\u00a5\u0001\u0000\u0000" +
"\u0000\u008e\u0090\u0005.\u0000\u0000\u008f\u0091\u0003)\u0014\u0000\u0090" +
"\u008f\u0001\u0000\u0000\u0000\u0091\u0092\u0001\u0000\u0000\u0000\u0092" +
"\u0090\u0001\u0000\u0000\u0000\u0092\u0093\u0001\u0000\u0000\u0000\u0093" +
"\u00a6\u0001\u0000\u0000\u0000\u0094\u0096\u0003)\u0014\u0000\u0095\u0094" +
"\u0001\u0000\u0000\u0000\u0096\u0097\u0001\u0000\u0000\u0000\u0097\u0095" +
"\u0001\u0000\u0000\u0000\u0097\u0098\u0001\u0000\u0000\u0000\u0098\u00a0" +
"\u0001\u0000\u0000\u0000\u0099\u009d\u0005.\u0000\u0000\u009a\u009c\u0003" +
")\u0014\u0000\u009b\u009a\u0001\u0000\u0000\u0000\u009c\u009f\u0001\u0000" +
"\u0000\u0000\u009d\u009b\u0001\u0000\u0000\u0000\u009d\u009e\u0001\u0000" +
"\u0000\u0000\u009e\u00a1\u0001\u0000\u0000\u0000\u009f\u009d\u0001\u0000" +
"\u0000\u0000\u00a0\u0099\u0001\u0000\u0000\u0000\u00a0\u00a1\u0001\u0000" +
"\u0000\u0000\u00a1\u00a3\u0001\u0000\u0000\u0000\u00a2\u00a4\u0003\'\u0013" +
"\u0000\u00a3\u00a2\u0001\u0000\u0000\u0000\u00a3\u00a4\u0001\u0000\u0000" +
"\u0000\u00a4\u00a6\u0001\u0000\u0000\u0000\u00a5\u008e\u0001\u0000\u0000" +
"\u0000\u00a5\u0095\u0001\u0000\u0000\u0000\u00a6$\u0001\u0000\u0000\u0000" +
"\u00a7\u00a9\u0007\u0004\u0000\u0000\u00a8\u00aa\u0007\u0005\u0000\u0000" +
"\u00a9\u00a8\u0001\u0000\u0000\u0000\u00a9\u00aa\u0001\u0000\u0000\u0000" +
"\u00aa\u00ac\u0001\u0000\u0000\u0000\u00ab\u00ad\u0003)\u0014\u0000\u00ac" +
"\u00ab\u0001\u0000\u0000\u0000\u00ad\u00ae\u0001\u0000\u0000\u0000\u00ae" +
"\u00ac\u0001\u0000\u0000\u0000\u00ae\u00af\u0001\u0000\u0000\u0000\u00af" +
"&\u0001\u0000\u0000\u0000\u00b0\u00b2\u0005D\u0000\u0000\u00b1\u00b3\u0007" +
"\u0005\u0000\u0000\u00b2\u00b1\u0001\u0000\u0000\u0000\u00b2\u00b3\u0001" +
"\u0000\u0000\u0000\u00b3\u00b5\u0001\u0000\u0000\u0000\u00b4\u00b6\u0003" +
")\u0014\u0000\u00b5\u00b4\u0001\u0000\u0000\u0000\u00b6\u00b7\u0001\u0000" +
"\u0000\u0000\u00b7\u00b5\u0001\u0000\u0000\u0000\u00b7\u00b8\u0001\u0000" +
"\u0000\u0000\u00b8(\u0001\u0000\u0000\u0000\u00b9\u00ba\u0007\u0006\u0000" +
"\u0000\u00ba*\u0001\u0000\u0000\u0000\u00bb\u00bc\u0005/\u0000\u0000\u00bc" +
"\u00bd\u0005/\u0000\u0000\u00bd\u00c1\u0001\u0000\u0000\u0000\u00be\u00c0" +
"\t\u0000\u0000\u0000\u00bf\u00be\u0001\u0000\u0000\u0000\u00c0\u00c3\u0001" +
"\u0000\u0000\u0000\u00c1\u00c2\u0001\u0000\u0000\u0000\u00c1\u00bf\u0001" +
"\u0000\u0000\u0000\u00c2\u00c4\u0001\u0000\u0000\u0000\u00c3\u00c1\u0001" +
"\u0000\u0000\u0000\u00c4\u00c5\u0003-\u0016\u0000\u00c5\u00c6\u0001\u0000" +
"\u0000\u0000\u00c6\u00c7\u0006\u0015\u0000\u0000\u00c7,\u0001\u0000\u0000" +
"\u0000\u00c8\u00ca\u0005\r\u0000\u0000\u00c9\u00c8\u0001\u0000\u0000\u0000" +
"\u00c9\u00ca\u0001\u0000\u0000\u0000\u00ca\u00cb\u0001\u0000\u0000\u0000" +
"\u00cb\u00cc\u0005\n\u0000\u0000\u00cc.\u0001\u0000\u0000\u0000\u00cd" +
"\u00cf\u0007\u0007\u0000\u0000\u00ce\u00cd\u0001\u0000\u0000\u0000\u00cf" +
"\u00d0\u0001\u0000\u0000\u0000\u00d0\u00ce\u0001\u0000\u0000\u0000\u00d0" +
"\u00d1\u0001\u0000\u0000\u0000\u00d1\u00d2\u0001\u0000\u0000\u0000\u00d2" +
"\u00d3\u0006\u0017\u0000\u0000\u00d30\u0001\u0000\u0000\u0000\u001d\u0000" +
"KQS[]jmpv{\u0081\u0084\u0087\u0089\u008c\u0092\u0097\u009d\u00a0\u00a3" +
"\u00a5\u00a9\u00ae\u00b2\u00b7\u00c1\u00c9\u00d0\u0001\u0000\u0001\u0000";
public static final ATN _ATN =
new ATNDeserializer().deserialize(_serializedATN.toCharArray());
protected static final DFA[] _decisionToDFA;
protected static final PredictionContextCache _sharedContextCache =
new PredictionContextCache();
private static final String[] _LITERAL_NAMES = makeLiteralNames();
private static final String[] _SYMBOLIC_NAMES = makeSymbolicNames();
public static final Vocabulary VOCABULARY = new VocabularyImpl(_LITERAL_NAMES, _SYMBOLIC_NAMES);
public static String[] channelNames = {
"DEFAULT_TOKEN_CHANNEL", "HIDDEN"
};
public static String[] modeNames = {
"DEFAULT_MODE"
};
static {
RuntimeMetaData.checkVersion("4.12.0", RuntimeMetaData.VERSION);
}
static {
tokenNames = new String[_SYMBOLIC_NAMES.length];
for (int i = 0; i < tokenNames.length; i++) {
tokenNames[i] = VOCABULARY.getLiteralName(i);
if (tokenNames[i] == null) {
tokenNames[i] = VOCABULARY.getSymbolicName(i);
}
if (tokenNames[i] == null) {
tokenNames[i] = "<INVALID>";
}
}
}
static {
_decisionToDFA = new DFA[_ATN.getNumberOfDecisions()];
for (int i = 0; i < _ATN.getNumberOfDecisions(); i++) {
_decisionToDFA[i] = new DFA(_ATN.getDecisionState(i), i);
}
}
public TypingLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
}
private static String[] makeRuleNames() {
return new String[]{
"T__0", "T__1", "T__2", "T__3", "T__4", "T__5", "T__6", "T__7", "T__8",
"T__9", "T__10", "ID", "STRING", "COMMENT", "ESC", "INT", "NUM", "DP",
"EXP", "DEXP", "DIG", "TDD_COMMENT", "NEWLINE", "WS"
};
}
private static String[] makeLiteralNames() {
return new String[]{
null, "'('", "','", "')'", "'='", "'['", "']'", "':'", "'*'", "'/'",
"'+'", "'-'"
};
}
private static String[] makeSymbolicNames() {
return new String[]{
null, null, null, null, null, null, null, null, null, null, null, null,
"ID", "STRING", "COMMENT", "INT", "NUM", "DP", "TDD_COMMENT", "NEWLINE",
"WS"
};
}
@Override
@Deprecated
public String[] getTokenNames() {
return tokenNames;
}
@Override
public Vocabulary getVocabulary() {
return VOCABULARY;
}
@Override
public String getGrammarFileName() {
return "Typing.g4";
}
@Override
public String[] getRuleNames() {
return ruleNames;
}
@Override
public String getSerializedATN() {
return _serializedATN;
}
@Override
public String[] getChannelNames() {
return channelNames;
}
@Override
public String[] getModeNames() {
return modeNames;
}
@Override
public ATN getATN() {
return _ATN;
}
}
\ No newline at end of file
T__0=1
T__1=2
T__2=3
T__3=4
T__4=5
T__5=6
T__6=7
T__7=8
T__8=9
T__9=10
T__10=11
ID=12
STRING=13
COMMENT=14
INT=15
NUM=16
DP=17
TDD_COMMENT=18
NEWLINE=19
WS=20
'('=1
','=2
')'=3
'='=4
'['=5
']'=6
':'=7
'*'=8
'/'=9
'+'=10
'-'=11
// Generated from /home/sgu/IdeaProjects/python-oceandsls/tdd-dsl/tddLSPServer/grammars/Typing.g4 by ANTLR 4.12.0
package grammars;
import org.antlr.v4.runtime.tree.ParseTreeListener;
/**
* This interface defines a complete listener for a parse tree produced by
* {@link TypingParser}.
*/
public interface TypingListener extends ParseTreeListener {
/**
* Enter a parse tree produced by the {@code ref}
* labeled alternative in {@link TypingParser#paramType}.
*
* @param ctx the parse tree
*/
void enterRef(TypingParser.RefContext ctx);
/**
* Exit a parse tree produced by the {@code ref}
* labeled alternative in {@link TypingParser#paramType}.
*
* @param ctx the parse tree
*/
void exitRef(TypingParser.RefContext ctx);
/**
* Enter a parse tree produced by the {@code enm}
* labeled alternative in {@link TypingParser#paramType}.
*
* @param ctx the parse tree
*/
void enterEnm(TypingParser.EnmContext ctx);
/**
* Exit a parse tree produced by the {@code enm}
* labeled alternative in {@link TypingParser#paramType}.
*
* @param ctx the parse tree
*/
void exitEnm(TypingParser.EnmContext ctx);
/**
* Enter a parse tree produced by the {@code array}
* labeled alternative in {@link TypingParser#paramType}.
*
* @param ctx the parse tree
*/
void enterArray(TypingParser.ArrayContext ctx);
/**
* Exit a parse tree produced by the {@code array}
* labeled alternative in {@link TypingParser#paramType}.
*
* @param ctx the parse tree
*/
void exitArray(TypingParser.ArrayContext ctx);
/**
* Enter a parse tree produced by {@link TypingParser#typeRef}.
*
* @param ctx the parse tree
*/
void enterTypeRef(TypingParser.TypeRefContext ctx);
/**
* Exit a parse tree produced by {@link TypingParser#typeRef}.
*
* @param ctx the parse tree
*/
void exitTypeRef(TypingParser.TypeRefContext ctx);
/**
* Enter a parse tree produced by {@link TypingParser#enumType}.
*
* @param ctx the parse tree
*/
void enterEnumType(TypingParser.EnumTypeContext ctx);
/**
* Exit a parse tree produced by {@link TypingParser#enumType}.
*
* @param ctx the parse tree
*/
void exitEnumType(TypingParser.EnumTypeContext ctx);
/**
* Enter a parse tree produced by {@link TypingParser#enum}.
*
* @param ctx the parse tree
*/
void enterEnum(TypingParser.EnumContext ctx);
/**
* Exit a parse tree produced by {@link TypingParser#enum}.
*
* @param ctx the parse tree
*/
void exitEnum(TypingParser.EnumContext ctx);
/**
* Enter a parse tree produced by {@link TypingParser#arrayType}.
*
* @param ctx the parse tree
*/
void enterArrayType(TypingParser.ArrayTypeContext ctx);
/**
* Exit a parse tree produced by {@link TypingParser#arrayType}.
*
* @param ctx the parse tree
*/
void exitArrayType(TypingParser.ArrayTypeContext ctx);
/**
* Enter a parse tree produced by the {@code size}
* labeled alternative in {@link TypingParser#dim}.
*
* @param ctx the parse tree
*/
void enterSize(TypingParser.SizeContext ctx);
/**
* Exit a parse tree produced by the {@code size}
* labeled alternative in {@link TypingParser#dim}.
*
* @param ctx the parse tree
*/
void exitSize(TypingParser.SizeContext ctx);
/**
* Enter a parse tree produced by the {@code range}
* labeled alternative in {@link TypingParser#dim}.
*
* @param ctx the parse tree
*/
void enterRange(TypingParser.RangeContext ctx);
/**
* Exit a parse tree produced by the {@code range}
* labeled alternative in {@link TypingParser#dim}.
*
* @param ctx the parse tree
*/
void exitRange(TypingParser.RangeContext ctx);
/**
* Enter a parse tree produced by {@link TypingParser#sizeDim}.
*
* @param ctx the parse tree
*/
void enterSizeDim(TypingParser.SizeDimContext ctx);
/**
* Exit a parse tree produced by {@link TypingParser#sizeDim}.
*
* @param ctx the parse tree
*/
void exitSizeDim(TypingParser.SizeDimContext ctx);
/**
* Enter a parse tree produced by {@link TypingParser#rangeDim}.
*
* @param ctx the parse tree
*/
void enterRangeDim(TypingParser.RangeDimContext ctx);
/**
* Exit a parse tree produced by {@link TypingParser#rangeDim}.
*
* @param ctx the parse tree
*/
void exitRangeDim(TypingParser.RangeDimContext ctx);
/**
* Enter a parse tree produced by the {@code strExpr}
* labeled alternative in {@link TypingParser#expr}.
*
* @param ctx the parse tree
*/
void enterStrExpr(TypingParser.StrExprContext ctx);
/**
* Exit a parse tree produced by the {@code strExpr}
* labeled alternative in {@link TypingParser#expr}.
*
* @param ctx the parse tree
*/
void exitStrExpr(TypingParser.StrExprContext ctx);
/**
* Enter a parse tree produced by the {@code intExpr}
* labeled alternative in {@link TypingParser#expr}.
*
* @param ctx the parse tree
*/
void enterIntExpr(TypingParser.IntExprContext ctx);
/**
* Exit a parse tree produced by the {@code intExpr}
* labeled alternative in {@link TypingParser#expr}.
*
* @param ctx the parse tree
*/
void exitIntExpr(TypingParser.IntExprContext ctx);
/**
* Enter a parse tree produced by the {@code addSubExpr}
* labeled alternative in {@link TypingParser#expr}.
*
* @param ctx the parse tree
*/
void enterAddSubExpr(TypingParser.AddSubExprContext ctx);
/**
* Exit a parse tree produced by the {@code addSubExpr}
* labeled alternative in {@link TypingParser#expr}.
*
* @param ctx the parse tree
*/
void exitAddSubExpr(TypingParser.AddSubExprContext ctx);
/**
* Enter a parse tree produced by the {@code signExpr}
* labeled alternative in {@link TypingParser#expr}.
*
* @param ctx the parse tree
*/
void enterSignExpr(TypingParser.SignExprContext ctx);
/**
* Exit a parse tree produced by the {@code signExpr}
* labeled alternative in {@link TypingParser#expr}.
*
* @param ctx the parse tree
*/
void exitSignExpr(TypingParser.SignExprContext ctx);
/**
* Enter a parse tree produced by the {@code refExpr}
* labeled alternative in {@link TypingParser#expr}.
*
* @param ctx the parse tree
*/
void enterRefExpr(TypingParser.RefExprContext ctx);
/**
* Exit a parse tree produced by the {@code refExpr}
* labeled alternative in {@link TypingParser#expr}.
*
* @param ctx the parse tree
*/
void exitRefExpr(TypingParser.RefExprContext ctx);
/**
* Enter a parse tree produced by the {@code numberExpr}
* labeled alternative in {@link TypingParser#expr}.
*
* @param ctx the parse tree
*/
void enterNumberExpr(TypingParser.NumberExprContext ctx);
/**
* Exit a parse tree produced by the {@code numberExpr}
* labeled alternative in {@link TypingParser#expr}.
*
* @param ctx the parse tree
*/
void exitNumberExpr(TypingParser.NumberExprContext ctx);
/**
* Enter a parse tree produced by the {@code parensExpr}
* labeled alternative in {@link TypingParser#expr}.
*
* @param ctx the parse tree
*/
void enterParensExpr(TypingParser.ParensExprContext ctx);
/**
* Exit a parse tree produced by the {@code parensExpr}
* labeled alternative in {@link TypingParser#expr}.
*
* @param ctx the parse tree
*/
void exitParensExpr(TypingParser.ParensExprContext ctx);
/**
* Enter a parse tree produced by the {@code mulDivExpr}
* labeled alternative in {@link TypingParser#expr}.
*
* @param ctx the parse tree
*/
void enterMulDivExpr(TypingParser.MulDivExprContext ctx);
/**
* Exit a parse tree produced by the {@code mulDivExpr}
* labeled alternative in {@link TypingParser#expr}.
*
* @param ctx the parse tree
*/
void exitMulDivExpr(TypingParser.MulDivExprContext ctx);
/**
* Enter a parse tree produced by the {@code funRef}
* labeled alternative in {@link TypingParser#reference}.
*
* @param ctx the parse tree
*/
void enterFunRef(TypingParser.FunRefContext ctx);
/**
* Exit a parse tree produced by the {@code funRef}
* labeled alternative in {@link TypingParser#reference}.
*
* @param ctx the parse tree
*/
void exitFunRef(TypingParser.FunRefContext ctx);
/**
* Enter a parse tree produced by the {@code varRef}
* labeled alternative in {@link TypingParser#reference}.
*
* @param ctx the parse tree
*/
void enterVarRef(TypingParser.VarRefContext ctx);
/**
* Exit a parse tree produced by the {@code varRef}
* labeled alternative in {@link TypingParser#reference}.
*
* @param ctx the parse tree
*/
void exitVarRef(TypingParser.VarRefContext ctx);
}
\ No newline at end of file
This diff is collapsed.
// Generated from /home/sgu/IdeaProjects/python-oceandsls/tdd-dsl/tddLSPServer/grammars/Typing.g4 by ANTLR 4.12.0
package grammars;
import org.antlr.v4.runtime.tree.ParseTreeVisitor;
/**
* This interface defines a complete generic visitor for a parse tree produced
* by {@link TypingParser}.
*
* @param <T> The return type of the visit operation. Use {@link Void} for
* operations with no return type.
*/
public interface TypingVisitor<T> extends ParseTreeVisitor<T> {
/**
* Visit a parse tree produced by the {@code ref}
* labeled alternative in {@link TypingParser#paramType}.
*
* @param ctx the parse tree
* @return the visitor result
*/
T visitRef(TypingParser.RefContext ctx);
/**
* Visit a parse tree produced by the {@code enm}
* labeled alternative in {@link TypingParser#paramType}.
*
* @param ctx the parse tree
* @return the visitor result
*/
T visitEnm(TypingParser.EnmContext ctx);
/**
* Visit a parse tree produced by the {@code array}
* labeled alternative in {@link TypingParser#paramType}.
*
* @param ctx the parse tree
* @return the visitor result
*/
T visitArray(TypingParser.ArrayContext ctx);
/**
* Visit a parse tree produced by {@link TypingParser#typeRef}.
*
* @param ctx the parse tree
* @return the visitor result
*/
T visitTypeRef(TypingParser.TypeRefContext ctx);
/**
* Visit a parse tree produced by {@link TypingParser#enumType}.
*
* @param ctx the parse tree
* @return the visitor result
*/
T visitEnumType(TypingParser.EnumTypeContext ctx);
/**
* Visit a parse tree produced by {@link TypingParser#enum}.
*
* @param ctx the parse tree
* @return the visitor result
*/
T visitEnum(TypingParser.EnumContext ctx);
/**
* Visit a parse tree produced by {@link TypingParser#arrayType}.
*
* @param ctx the parse tree
* @return the visitor result
*/
T visitArrayType(TypingParser.ArrayTypeContext ctx);
/**
* Visit a parse tree produced by the {@code size}
* labeled alternative in {@link TypingParser#dim}.
*
* @param ctx the parse tree
* @return the visitor result
*/
T visitSize(TypingParser.SizeContext ctx);
/**
* Visit a parse tree produced by the {@code range}
* labeled alternative in {@link TypingParser#dim}.
*
* @param ctx the parse tree
* @return the visitor result
*/
T visitRange(TypingParser.RangeContext ctx);
/**
* Visit a parse tree produced by {@link TypingParser#sizeDim}.
*
* @param ctx the parse tree
* @return the visitor result
*/
T visitSizeDim(TypingParser.SizeDimContext ctx);
/**
* Visit a parse tree produced by {@link TypingParser#rangeDim}.
*
* @param ctx the parse tree
* @return the visitor result
*/
T visitRangeDim(TypingParser.RangeDimContext ctx);
/**
* Visit a parse tree produced by the {@code strExpr}
* labeled alternative in {@link TypingParser#expr}.
*
* @param ctx the parse tree
* @return the visitor result
*/
T visitStrExpr(TypingParser.StrExprContext ctx);
/**
* Visit a parse tree produced by the {@code intExpr}
* labeled alternative in {@link TypingParser#expr}.
*
* @param ctx the parse tree
* @return the visitor result
*/
T visitIntExpr(TypingParser.IntExprContext ctx);
/**
* Visit a parse tree produced by the {@code addSubExpr}
* labeled alternative in {@link TypingParser#expr}.
*
* @param ctx the parse tree
* @return the visitor result
*/
T visitAddSubExpr(TypingParser.AddSubExprContext ctx);
/**
* Visit a parse tree produced by the {@code signExpr}
* labeled alternative in {@link TypingParser#expr}.
*
* @param ctx the parse tree
* @return the visitor result
*/
T visitSignExpr(TypingParser.SignExprContext ctx);
/**
* Visit a parse tree produced by the {@code refExpr}
* labeled alternative in {@link TypingParser#expr}.
*
* @param ctx the parse tree
* @return the visitor result
*/
T visitRefExpr(TypingParser.RefExprContext ctx);
/**
* Visit a parse tree produced by the {@code numberExpr}
* labeled alternative in {@link TypingParser#expr}.
*
* @param ctx the parse tree
* @return the visitor result
*/
T visitNumberExpr(TypingParser.NumberExprContext ctx);
/**
* Visit a parse tree produced by the {@code parensExpr}
* labeled alternative in {@link TypingParser#expr}.
*
* @param ctx the parse tree
* @return the visitor result
*/
T visitParensExpr(TypingParser.ParensExprContext ctx);
/**
* Visit a parse tree produced by the {@code mulDivExpr}
* labeled alternative in {@link TypingParser#expr}.
*
* @param ctx the parse tree
* @return the visitor result
*/
T visitMulDivExpr(TypingParser.MulDivExprContext ctx);
/**
* Visit a parse tree produced by the {@code funRef}
* labeled alternative in {@link TypingParser#reference}.
*
* @param ctx the parse tree
* @return the visitor result
*/
T visitFunRef(TypingParser.FunRefContext ctx);
/**
* Visit a parse tree produced by the {@code varRef}
* labeled alternative in {@link TypingParser#reference}.
*
* @param ctx the parse tree
* @return the visitor result
*/
T visitVarRef(TypingParser.VarRefContext ctx);
}
\ No newline at end of file
<?xml version="1.0"?><object xmlns="http://fxtran.net/#syntax" source-form="FREE" source-width="132" openmp="0" openacc="0"><file name="/home/sgu/IdeaProjects/python-oceandsls/tdd-dsl/input/fxtran/standalone/SHAPE_MOD.F90">
<?xml version="1.0"?><object xmlns="http://fxtran.net/#syntax" source-form="FREE" source-width="132" openmp="0" openacc="0"><file name="SHAPE_MOD.F90">
<module-stmt>module <module-N><N n="SHAPE_MOD"><n>shape_mod</n></N></module-N></module-stmt>
<implicit-none-stmt>implicit none</implicit-none-stmt>
......
......
<?xml version="1.0"?><object xmlns="http://fxtran.net/#syntax" source-form="FREE" source-width="132" openmp="0" openacc="0"><file name="/home/sgu/IdeaProjects/python-oceandsls/tdd-dsl/input/fxtran/standalone/example.f90"><subroutine-stmt>subroutine <subroutine-N><N n="FOO"><n>foo</n></N></subroutine-N>(<dummy-arg-LT></dummy-arg-LT>)</subroutine-stmt>
<?xml version="1.0"?><object xmlns="http://fxtran.net/#syntax" source-form="FREE" source-width="132" openmp="0" openacc="0"><file name="example.f90"><subroutine-stmt>subroutine <subroutine-N><N n="FOO"><n>foo</n></N></subroutine-N>(<dummy-arg-LT></dummy-arg-LT>)</subroutine-stmt>
<implicit-none-stmt>implicit none</implicit-none-stmt>
<T-decl-stmt><_T-spec_><intrinsic-T-spec><T-N>integer</T-N></intrinsic-T-spec></_T-spec_> :: <EN-decl-LT><EN-decl><EN-N><N n="I"><n>i</n></N></EN-N></EN-decl>, <EN-decl><EN-N><N n="J"><n>j</n></N></EN-N></EN-decl>, <EN-decl><EN-N><N n="K"><n>k</n></N></EN-N></EN-decl></EN-decl-LT></T-decl-stmt>
<do-stmt>do <do-V><named-E><N n="I"><n>i</n></N></named-E></do-V> = <lower-bound><literal-E><l>1</l></literal-E></lower-bound>, <upper-bound><literal-E><l>10</l></literal-E></upper-bound></do-stmt>
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment