Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- py311/lib/python3.11/site-packages/certifi/__pycache__/__init__.cpython-311.pyc +0 -0
- py311/lib/python3.11/site-packages/certifi/__pycache__/core.cpython-311.pyc +0 -0
- py311/lib/python3.11/site-packages/omegaconf/__pycache__/_impl.cpython-311.pyc +0 -0
- py311/lib/python3.11/site-packages/omegaconf/__pycache__/_utils.cpython-311.pyc +0 -0
- py311/lib/python3.11/site-packages/omegaconf/__pycache__/base.cpython-311.pyc +0 -0
- py311/lib/python3.11/site-packages/omegaconf/__pycache__/basecontainer.cpython-311.pyc +0 -0
- py311/lib/python3.11/site-packages/omegaconf/__pycache__/dictconfig.cpython-311.pyc +0 -0
- py311/lib/python3.11/site-packages/omegaconf/__pycache__/errors.cpython-311.pyc +0 -0
- py311/lib/python3.11/site-packages/omegaconf/__pycache__/grammar_parser.cpython-311.pyc +0 -0
- py311/lib/python3.11/site-packages/omegaconf/__pycache__/grammar_visitor.cpython-311.pyc +0 -0
- py311/lib/python3.11/site-packages/omegaconf/__pycache__/listconfig.cpython-311.pyc +0 -0
- py311/lib/python3.11/site-packages/omegaconf/__pycache__/nodes.cpython-311.pyc +0 -0
- py311/lib/python3.11/site-packages/omegaconf/__pycache__/omegaconf.cpython-311.pyc +0 -0
- py311/lib/python3.11/site-packages/omegaconf/__pycache__/version.cpython-311.pyc +0 -0
- py311/lib/python3.11/site-packages/omegaconf/grammar/__pycache__/__init__.cpython-311.pyc +0 -0
- py311/lib/python3.11/site-packages/omegaconf/grammar/gen/OmegaConfGrammarLexer.py +337 -0
- py311/lib/python3.11/site-packages/omegaconf/grammar/gen/OmegaConfGrammarParser.py +1595 -0
- py311/lib/python3.11/site-packages/omegaconf/grammar/gen/OmegaConfGrammarParserListener.py +156 -0
- py311/lib/python3.11/site-packages/omegaconf/grammar/gen/OmegaConfGrammarParserVisitor.py +93 -0
- py311/lib/python3.11/site-packages/omegaconf/grammar/gen/__init__.py +0 -0
- py311/lib/python3.11/site-packages/omegaconf/grammar/gen/__pycache__/OmegaConfGrammarLexer.cpython-311.pyc +0 -0
- py311/lib/python3.11/site-packages/omegaconf/grammar/gen/__pycache__/OmegaConfGrammarParserVisitor.cpython-311.pyc +0 -0
- py311/lib/python3.11/site-packages/omegaconf/grammar/gen/__pycache__/__init__.cpython-311.pyc +0 -0
- py311/lib/python3.11/site-packages/omegaconf/resolvers/__pycache__/__init__.cpython-311.pyc +0 -0
- py311/lib/python3.11/site-packages/omegaconf/resolvers/oc/__init__.py +113 -0
- py311/lib/python3.11/site-packages/omegaconf/resolvers/oc/__pycache__/__init__.cpython-311.pyc +0 -0
- py311/lib/python3.11/site-packages/omegaconf/resolvers/oc/__pycache__/dict.cpython-311.pyc +0 -0
- py311/lib/python3.11/site-packages/omegaconf/resolvers/oc/dict.py +83 -0
- py311/lib/python3.11/site-packages/openai/__pycache__/__init__.cpython-311.pyc +0 -0
- py311/lib/python3.11/site-packages/openai/__pycache__/_base_client.cpython-311.pyc +0 -0
- py311/lib/python3.11/site-packages/openai/__pycache__/_client.cpython-311.pyc +0 -0
- py311/lib/python3.11/site-packages/openai/__pycache__/_compat.cpython-311.pyc +0 -0
- py311/lib/python3.11/site-packages/openai/__pycache__/_constants.cpython-311.pyc +0 -0
- py311/lib/python3.11/site-packages/openai/__pycache__/_exceptions.cpython-311.pyc +0 -0
- py311/lib/python3.11/site-packages/openai/__pycache__/_files.cpython-311.pyc +0 -0
- py311/lib/python3.11/site-packages/openai/__pycache__/_legacy_response.cpython-311.pyc +0 -0
- py311/lib/python3.11/site-packages/openai/__pycache__/_models.cpython-311.pyc +0 -0
- py311/lib/python3.11/site-packages/openai/__pycache__/_module_client.cpython-311.pyc +0 -0
- py311/lib/python3.11/site-packages/openai/__pycache__/_qs.cpython-311.pyc +0 -0
- py311/lib/python3.11/site-packages/openai/__pycache__/_resource.cpython-311.pyc +0 -0
- py311/lib/python3.11/site-packages/openai/__pycache__/_response.cpython-311.pyc +0 -0
- py311/lib/python3.11/site-packages/openai/__pycache__/_streaming.cpython-311.pyc +0 -0
- py311/lib/python3.11/site-packages/openai/__pycache__/_types.cpython-311.pyc +0 -0
- py311/lib/python3.11/site-packages/openai/__pycache__/_version.cpython-311.pyc +0 -0
- py311/lib/python3.11/site-packages/openai/__pycache__/pagination.cpython-311.pyc +0 -0
- py311/lib/python3.11/site-packages/openai/__pycache__/version.cpython-311.pyc +0 -0
- py311/lib/python3.11/site-packages/openai/_extras/__init__.py +3 -0
- py311/lib/python3.11/site-packages/openai/_extras/_common.py +21 -0
- py311/lib/python3.11/site-packages/openai/_extras/numpy_proxy.py +37 -0
- py311/lib/python3.11/site-packages/openai/_extras/pandas_proxy.py +28 -0
py311/lib/python3.11/site-packages/certifi/__pycache__/__init__.cpython-311.pyc
ADDED
|
Binary file (336 Bytes). View file
|
|
|
py311/lib/python3.11/site-packages/certifi/__pycache__/core.cpython-311.pyc
ADDED
|
Binary file (2.4 kB). View file
|
|
|
py311/lib/python3.11/site-packages/omegaconf/__pycache__/_impl.cpython-311.pyc
ADDED
|
Binary file (4.33 kB). View file
|
|
|
py311/lib/python3.11/site-packages/omegaconf/__pycache__/_utils.cpython-311.pyc
ADDED
|
Binary file (45.6 kB). View file
|
|
|
py311/lib/python3.11/site-packages/omegaconf/__pycache__/base.cpython-311.pyc
ADDED
|
Binary file (44.1 kB). View file
|
|
|
py311/lib/python3.11/site-packages/omegaconf/__pycache__/basecontainer.cpython-311.pyc
ADDED
|
Binary file (43 kB). View file
|
|
|
py311/lib/python3.11/site-packages/omegaconf/__pycache__/dictconfig.cpython-311.pyc
ADDED
|
Binary file (38.2 kB). View file
|
|
|
py311/lib/python3.11/site-packages/omegaconf/__pycache__/errors.cpython-311.pyc
ADDED
|
Binary file (7.14 kB). View file
|
|
|
py311/lib/python3.11/site-packages/omegaconf/__pycache__/grammar_parser.cpython-311.pyc
ADDED
|
Binary file (5.46 kB). View file
|
|
|
py311/lib/python3.11/site-packages/omegaconf/__pycache__/grammar_visitor.cpython-311.pyc
ADDED
|
Binary file (20.7 kB). View file
|
|
|
py311/lib/python3.11/site-packages/omegaconf/__pycache__/listconfig.cpython-311.pyc
ADDED
|
Binary file (35.7 kB). View file
|
|
|
py311/lib/python3.11/site-packages/omegaconf/__pycache__/nodes.cpython-311.pyc
ADDED
|
Binary file (28 kB). View file
|
|
|
py311/lib/python3.11/site-packages/omegaconf/__pycache__/omegaconf.cpython-311.pyc
ADDED
|
Binary file (53.3 kB). View file
|
|
|
py311/lib/python3.11/site-packages/omegaconf/__pycache__/version.cpython-311.pyc
ADDED
|
Binary file (679 Bytes). View file
|
|
|
py311/lib/python3.11/site-packages/omegaconf/grammar/__pycache__/__init__.cpython-311.pyc
ADDED
|
Binary file (204 Bytes). View file
|
|
|
py311/lib/python3.11/site-packages/omegaconf/grammar/gen/OmegaConfGrammarLexer.py
ADDED
|
@@ -0,0 +1,337 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Generated from /tmp/build-via-sdist-fm63w174/omegaconf-2.3.0/omegaconf/grammar/OmegaConfGrammarLexer.g4 by ANTLR 4.9.3
|
| 2 |
+
from antlr4 import *
|
| 3 |
+
from io import StringIO
|
| 4 |
+
import sys
|
| 5 |
+
if sys.version_info[1] > 5:
|
| 6 |
+
from typing import TextIO
|
| 7 |
+
else:
|
| 8 |
+
from typing.io import TextIO
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
def serializedATN():
|
| 13 |
+
with StringIO() as buf:
|
| 14 |
+
buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\2\36")
|
| 15 |
+
buf.write("\u01e7\b\1\b\1\b\1\b\1\b\1\4\2\t\2\4\3\t\3\4\4\t\4\4\5")
|
| 16 |
+
buf.write("\t\5\4\6\t\6\4\7\t\7\4\b\t\b\4\t\t\t\4\n\t\n\4\13\t\13")
|
| 17 |
+
buf.write("\4\f\t\f\4\r\t\r\4\16\t\16\4\17\t\17\4\20\t\20\4\21\t")
|
| 18 |
+
buf.write("\21\4\22\t\22\4\23\t\23\4\24\t\24\4\25\t\25\4\26\t\26")
|
| 19 |
+
buf.write("\4\27\t\27\4\30\t\30\4\31\t\31\4\32\t\32\4\33\t\33\4\34")
|
| 20 |
+
buf.write("\t\34\4\35\t\35\4\36\t\36\4\37\t\37\4 \t \4!\t!\4\"\t")
|
| 21 |
+
buf.write("\"\4#\t#\4$\t$\4%\t%\4&\t&\4\'\t\'\4(\t(\4)\t)\4*\t*\4")
|
| 22 |
+
buf.write("+\t+\4,\t,\4-\t-\4.\t.\4/\t/\4\60\t\60\4\61\t\61\4\62")
|
| 23 |
+
buf.write("\t\62\4\63\t\63\4\64\t\64\4\65\t\65\4\66\t\66\3\2\3\2")
|
| 24 |
+
buf.write("\3\3\3\3\3\4\3\4\3\4\5\4y\n\4\3\4\7\4|\n\4\f\4\16\4\177")
|
| 25 |
+
buf.write("\13\4\5\4\u0081\n\4\3\5\3\5\3\5\3\6\3\6\3\6\3\6\3\6\3")
|
| 26 |
+
buf.write("\7\7\7\u008c\n\7\f\7\16\7\u008f\13\7\3\7\3\7\3\b\7\b\u0094")
|
| 27 |
+
buf.write("\n\b\f\b\16\b\u0097\13\b\3\b\3\b\3\b\3\b\3\t\6\t\u009e")
|
| 28 |
+
buf.write("\n\t\r\t\16\t\u009f\3\n\6\n\u00a3\n\n\r\n\16\n\u00a4\3")
|
| 29 |
+
buf.write("\n\3\n\3\13\3\13\3\13\3\13\3\f\3\f\3\f\3\f\5\f\u00b1\n")
|
| 30 |
+
buf.write("\f\3\f\3\f\3\r\3\r\5\r\u00b7\n\r\3\r\3\r\3\16\5\16\u00bc")
|
| 31 |
+
buf.write("\n\16\3\16\3\16\3\16\3\16\3\17\3\17\3\17\3\17\3\20\3\20")
|
| 32 |
+
buf.write("\3\20\3\20\3\21\5\21\u00cb\n\21\3\21\3\21\5\21\u00cf\n")
|
| 33 |
+
buf.write("\21\3\22\3\22\5\22\u00d3\n\22\3\23\5\23\u00d6\n\23\3\23")
|
| 34 |
+
buf.write("\3\23\3\24\5\24\u00db\n\24\3\24\3\24\5\24\u00df\n\24\3")
|
| 35 |
+
buf.write("\25\3\25\3\25\3\25\5\25\u00e5\n\25\3\25\3\25\3\25\5\25")
|
| 36 |
+
buf.write("\u00ea\n\25\3\25\7\25\u00ed\n\25\f\25\16\25\u00f0\13\25")
|
| 37 |
+
buf.write("\5\25\u00f2\n\25\3\26\3\26\5\26\u00f6\n\26\3\26\3\26\5")
|
| 38 |
+
buf.write("\26\u00fa\n\26\3\26\3\26\5\26\u00fe\n\26\3\26\7\26\u0101")
|
| 39 |
+
buf.write("\n\26\f\26\16\26\u0104\13\26\3\27\5\27\u0107\n\27\3\27")
|
| 40 |
+
buf.write("\3\27\3\27\3\27\3\27\3\27\3\27\3\27\5\27\u0111\n\27\3")
|
| 41 |
+
buf.write("\30\5\30\u0114\n\30\3\30\3\30\3\31\3\31\3\31\3\31\3\31")
|
| 42 |
+
buf.write("\3\31\3\31\3\31\3\31\5\31\u0121\n\31\3\32\3\32\3\32\3")
|
| 43 |
+
buf.write("\32\3\32\3\33\3\33\3\34\3\34\5\34\u012c\n\34\3\34\3\34")
|
| 44 |
+
buf.write("\3\34\7\34\u0131\n\34\f\34\16\34\u0134\13\34\3\35\3\35")
|
| 45 |
+
buf.write("\3\35\3\35\3\35\3\35\3\35\3\35\3\35\3\35\3\35\3\35\3\35")
|
| 46 |
+
buf.write("\3\35\3\35\3\35\3\35\3\35\3\35\3\35\3\35\3\35\3\35\6\35")
|
| 47 |
+
buf.write("\u014d\n\35\r\35\16\35\u014e\3\36\6\36\u0152\n\36\r\36")
|
| 48 |
+
buf.write("\16\36\u0153\3\37\3\37\5\37\u0158\n\37\3\37\3\37\3\37")
|
| 49 |
+
buf.write("\3 \5 \u015e\n \3 \3 \5 \u0162\n \3 \3 \3 \3!\5!\u0168")
|
| 50 |
+
buf.write("\n!\3!\3!\3!\3!\3\"\3\"\3#\3#\3#\3#\3$\3$\3$\3$\3%\3%")
|
| 51 |
+
buf.write("\3%\3%\3&\6&\u017d\n&\r&\16&\u017e\3\'\3\'\3\'\3\'\3\'")
|
| 52 |
+
buf.write("\3(\3(\3(\3(\3)\7)\u018b\n)\f)\16)\u018e\13)\3)\3)\3)")
|
| 53 |
+
buf.write("\3)\3*\3*\3*\3*\3+\7+\u0199\n+\f+\16+\u019c\13+\3+\3+")
|
| 54 |
+
buf.write("\3+\3+\3+\3,\6,\u01a4\n,\r,\16,\u01a5\3-\6-\u01a9\n-\r")
|
| 55 |
+
buf.write("-\16-\u01aa\3-\3-\3.\3.\3.\3.\3/\3/\3/\3/\3/\3\60\3\60")
|
| 56 |
+
buf.write("\3\60\3\60\3\60\3\61\7\61\u01be\n\61\f\61\16\61\u01c1")
|
| 57 |
+
buf.write("\13\61\3\61\3\61\3\61\3\61\3\62\3\62\3\62\3\62\3\63\7")
|
| 58 |
+
buf.write("\63\u01cc\n\63\f\63\16\63\u01cf\13\63\3\63\3\63\3\63\3")
|
| 59 |
+
buf.write("\63\3\63\3\64\6\64\u01d7\n\64\r\64\16\64\u01d8\3\64\3")
|
| 60 |
+
buf.write("\64\3\65\6\65\u01de\n\65\r\65\16\65\u01df\3\65\3\65\3")
|
| 61 |
+
buf.write("\66\3\66\3\66\3\66\2\2\67\7\2\t\2\13\2\r\2\17\2\21\3\23")
|
| 62 |
+
buf.write("\4\25\5\27\2\31\34\33\6\35\7\37\b!\t#\n%\13\'\f)\r+\16")
|
| 63 |
+
buf.write("-\2/\2\61\17\63\20\65\21\67\229\23;\24=\25?\26A\2C\2E")
|
| 64 |
+
buf.write("\27G\30I\35K\36M\2O\31Q\2S\32U\2W\2Y\2[\33]\2_\2a\2c\2")
|
| 65 |
+
buf.write("e\2g\2i\2k\2m\2o\2\7\2\3\4\5\6\32\4\2C\\c|\3\2\62;\3\2")
|
| 66 |
+
buf.write("\63;\3\2&&\4\2&&^^\4\2GGgg\4\2--//\4\2KKkk\4\2PPpp\4\2")
|
| 67 |
+
buf.write("HHhh\4\2CCcc\4\2VVvv\4\2TTtt\4\2WWww\4\2NNnn\4\2UUuu\b")
|
| 68 |
+
buf.write("\2&\',-/\61AB^^~~\4\2//aa\4\2\13\13\"\"\13\2\13\13\"\"")
|
| 69 |
+
buf.write("$$)+\60\60<<]_}}\177\177\4\2&&))\5\2&&))^^\4\2$$&&\5\2")
|
| 70 |
+
buf.write("$$&&^^\2\u0218\2\17\3\2\2\2\2\21\3\2\2\2\2\23\3\2\2\2")
|
| 71 |
+
buf.write("\2\25\3\2\2\2\2\27\3\2\2\2\2\31\3\2\2\2\3\33\3\2\2\2\3")
|
| 72 |
+
buf.write("\35\3\2\2\2\3\37\3\2\2\2\3!\3\2\2\2\3#\3\2\2\2\3%\3\2")
|
| 73 |
+
buf.write("\2\2\3\'\3\2\2\2\3)\3\2\2\2\3+\3\2\2\2\3\61\3\2\2\2\3")
|
| 74 |
+
buf.write("\63\3\2\2\2\3\65\3\2\2\2\3\67\3\2\2\2\39\3\2\2\2\3;\3")
|
| 75 |
+
buf.write("\2\2\2\3=\3\2\2\2\3?\3\2\2\2\4A\3\2\2\2\4C\3\2\2\2\4E")
|
| 76 |
+
buf.write("\3\2\2\2\4G\3\2\2\2\4I\3\2\2\2\4K\3\2\2\2\4M\3\2\2\2\4")
|
| 77 |
+
buf.write("O\3\2\2\2\5Q\3\2\2\2\5S\3\2\2\2\5U\3\2\2\2\5W\3\2\2\2")
|
| 78 |
+
buf.write("\5Y\3\2\2\2\5[\3\2\2\2\5]\3\2\2\2\5_\3\2\2\2\6a\3\2\2")
|
| 79 |
+
buf.write("\2\6c\3\2\2\2\6e\3\2\2\2\6g\3\2\2\2\6i\3\2\2\2\6k\3\2")
|
| 80 |
+
buf.write("\2\2\6m\3\2\2\2\6o\3\2\2\2\7q\3\2\2\2\ts\3\2\2\2\13\u0080")
|
| 81 |
+
buf.write("\3\2\2\2\r\u0082\3\2\2\2\17\u0085\3\2\2\2\21\u008d\3\2")
|
| 82 |
+
buf.write("\2\2\23\u0095\3\2\2\2\25\u009d\3\2\2\2\27\u00a2\3\2\2")
|
| 83 |
+
buf.write("\2\31\u00a8\3\2\2\2\33\u00ac\3\2\2\2\35\u00b4\3\2\2\2")
|
| 84 |
+
buf.write("\37\u00bb\3\2\2\2!\u00c1\3\2\2\2#\u00c5\3\2\2\2%\u00ca")
|
| 85 |
+
buf.write("\3\2\2\2\'\u00d0\3\2\2\2)\u00d5\3\2\2\2+\u00da\3\2\2\2")
|
| 86 |
+
buf.write("-\u00f1\3\2\2\2/\u00f5\3\2\2\2\61\u0106\3\2\2\2\63\u0113")
|
| 87 |
+
buf.write("\3\2\2\2\65\u0120\3\2\2\2\67\u0122\3\2\2\29\u0127\3\2")
|
| 88 |
+
buf.write("\2\2;\u012b\3\2\2\2=\u014c\3\2\2\2?\u0151\3\2\2\2A\u0155")
|
| 89 |
+
buf.write("\3\2\2\2C\u015d\3\2\2\2E\u0167\3\2\2\2G\u016d\3\2\2\2")
|
| 90 |
+
buf.write("I\u016f\3\2\2\2K\u0173\3\2\2\2M\u0177\3\2\2\2O\u017c\3")
|
| 91 |
+
buf.write("\2\2\2Q\u0180\3\2\2\2S\u0185\3\2\2\2U\u018c\3\2\2\2W\u0193")
|
| 92 |
+
buf.write("\3\2\2\2Y\u019a\3\2\2\2[\u01a3\3\2\2\2]\u01a8\3\2\2\2")
|
| 93 |
+
buf.write("_\u01ae\3\2\2\2a\u01b2\3\2\2\2c\u01b7\3\2\2\2e\u01bf\3")
|
| 94 |
+
buf.write("\2\2\2g\u01c6\3\2\2\2i\u01cd\3\2\2\2k\u01d6\3\2\2\2m\u01dd")
|
| 95 |
+
buf.write("\3\2\2\2o\u01e3\3\2\2\2qr\t\2\2\2r\b\3\2\2\2st\t\3\2\2")
|
| 96 |
+
buf.write("t\n\3\2\2\2u\u0081\7\62\2\2v}\t\4\2\2wy\7a\2\2xw\3\2\2")
|
| 97 |
+
buf.write("\2xy\3\2\2\2yz\3\2\2\2z|\5\t\3\2{x\3\2\2\2|\177\3\2\2")
|
| 98 |
+
buf.write("\2}{\3\2\2\2}~\3\2\2\2~\u0081\3\2\2\2\177}\3\2\2\2\u0080")
|
| 99 |
+
buf.write("u\3\2\2\2\u0080v\3\2\2\2\u0081\f\3\2\2\2\u0082\u0083\7")
|
| 100 |
+
buf.write("^\2\2\u0083\u0084\7^\2\2\u0084\16\3\2\2\2\u0085\u0086")
|
| 101 |
+
buf.write("\5\33\f\2\u0086\u0087\3\2\2\2\u0087\u0088\b\6\2\2\u0088")
|
| 102 |
+
buf.write("\u0089\b\6\3\2\u0089\20\3\2\2\2\u008a\u008c\n\5\2\2\u008b")
|
| 103 |
+
buf.write("\u008a\3\2\2\2\u008c\u008f\3\2\2\2\u008d\u008b\3\2\2\2")
|
| 104 |
+
buf.write("\u008d\u008e\3\2\2\2\u008e\u0090\3\2\2\2\u008f\u008d\3")
|
| 105 |
+
buf.write("\2\2\2\u0090\u0091\n\6\2\2\u0091\22\3\2\2\2\u0092\u0094")
|
| 106 |
+
buf.write("\5\r\5\2\u0093\u0092\3\2\2\2\u0094\u0097\3\2\2\2\u0095")
|
| 107 |
+
buf.write("\u0093\3\2\2\2\u0095\u0096\3\2\2\2\u0096\u0098\3\2\2\2")
|
| 108 |
+
buf.write("\u0097\u0095\3\2\2\2\u0098\u0099\7^\2\2\u0099\u009a\7")
|
| 109 |
+
buf.write("&\2\2\u009a\u009b\7}\2\2\u009b\24\3\2\2\2\u009c\u009e")
|
| 110 |
+
buf.write("\5\r\5\2\u009d\u009c\3\2\2\2\u009e\u009f\3\2\2\2\u009f")
|
| 111 |
+
buf.write("\u009d\3\2\2\2\u009f\u00a0\3\2\2\2\u00a0\26\3\2\2\2\u00a1")
|
| 112 |
+
buf.write("\u00a3\7^\2\2\u00a2\u00a1\3\2\2\2\u00a3\u00a4\3\2\2\2")
|
| 113 |
+
buf.write("\u00a4\u00a2\3\2\2\2\u00a4\u00a5\3\2\2\2\u00a5\u00a6\3")
|
| 114 |
+
buf.write("\2\2\2\u00a6\u00a7\b\n\4\2\u00a7\30\3\2\2\2\u00a8\u00a9")
|
| 115 |
+
buf.write("\7&\2\2\u00a9\u00aa\3\2\2\2\u00aa\u00ab\b\13\4\2\u00ab")
|
| 116 |
+
buf.write("\32\3\2\2\2\u00ac\u00ad\7&\2\2\u00ad\u00ae\7}\2\2\u00ae")
|
| 117 |
+
buf.write("\u00b0\3\2\2\2\u00af\u00b1\5?\36\2\u00b0\u00af\3\2\2\2")
|
| 118 |
+
buf.write("\u00b0\u00b1\3\2\2\2\u00b1\u00b2\3\2\2\2\u00b2\u00b3\b")
|
| 119 |
+
buf.write("\f\3\2\u00b3\34\3\2\2\2\u00b4\u00b6\7}\2\2\u00b5\u00b7")
|
| 120 |
+
buf.write("\5?\36\2\u00b6\u00b5\3\2\2\2\u00b6\u00b7\3\2\2\2\u00b7")
|
| 121 |
+
buf.write("\u00b8\3\2\2\2\u00b8\u00b9\b\r\5\2\u00b9\36\3\2\2\2\u00ba")
|
| 122 |
+
buf.write("\u00bc\5?\36\2\u00bb\u00ba\3\2\2\2\u00bb\u00bc\3\2\2\2")
|
| 123 |
+
buf.write("\u00bc\u00bd\3\2\2\2\u00bd\u00be\7\177\2\2\u00be\u00bf")
|
| 124 |
+
buf.write("\3\2\2\2\u00bf\u00c0\b\16\6\2\u00c0 \3\2\2\2\u00c1\u00c2")
|
| 125 |
+
buf.write("\7)\2\2\u00c2\u00c3\3\2\2\2\u00c3\u00c4\b\17\7\2\u00c4")
|
| 126 |
+
buf.write("\"\3\2\2\2\u00c5\u00c6\7$\2\2\u00c6\u00c7\3\2\2\2\u00c7")
|
| 127 |
+
buf.write("\u00c8\b\20\b\2\u00c8$\3\2\2\2\u00c9\u00cb\5?\36\2\u00ca")
|
| 128 |
+
buf.write("\u00c9\3\2\2\2\u00ca\u00cb\3\2\2\2\u00cb\u00cc\3\2\2\2")
|
| 129 |
+
buf.write("\u00cc\u00ce\7.\2\2\u00cd\u00cf\5?\36\2\u00ce\u00cd\3")
|
| 130 |
+
buf.write("\2\2\2\u00ce\u00cf\3\2\2\2\u00cf&\3\2\2\2\u00d0\u00d2")
|
| 131 |
+
buf.write("\7]\2\2\u00d1\u00d3\5?\36\2\u00d2\u00d1\3\2\2\2\u00d2")
|
| 132 |
+
buf.write("\u00d3\3\2\2\2\u00d3(\3\2\2\2\u00d4\u00d6\5?\36\2\u00d5")
|
| 133 |
+
buf.write("\u00d4\3\2\2\2\u00d5\u00d6\3\2\2\2\u00d6\u00d7\3\2\2\2")
|
| 134 |
+
buf.write("\u00d7\u00d8\7_\2\2\u00d8*\3\2\2\2\u00d9\u00db\5?\36\2")
|
| 135 |
+
buf.write("\u00da\u00d9\3\2\2\2\u00da\u00db\3\2\2\2\u00db\u00dc\3")
|
| 136 |
+
buf.write("\2\2\2\u00dc\u00de\7<\2\2\u00dd\u00df\5?\36\2\u00de\u00dd")
|
| 137 |
+
buf.write("\3\2\2\2\u00de\u00df\3\2\2\2\u00df,\3\2\2\2\u00e0\u00e1")
|
| 138 |
+
buf.write("\5\13\4\2\u00e1\u00e2\7\60\2\2\u00e2\u00f2\3\2\2\2\u00e3")
|
| 139 |
+
buf.write("\u00e5\5\13\4\2\u00e4\u00e3\3\2\2\2\u00e4\u00e5\3\2\2")
|
| 140 |
+
buf.write("\2\u00e5\u00e6\3\2\2\2\u00e6\u00e7\7\60\2\2\u00e7\u00ee")
|
| 141 |
+
buf.write("\5\t\3\2\u00e8\u00ea\7a\2\2\u00e9\u00e8\3\2\2\2\u00e9")
|
| 142 |
+
buf.write("\u00ea\3\2\2\2\u00ea\u00eb\3\2\2\2\u00eb\u00ed\5\t\3\2")
|
| 143 |
+
buf.write("\u00ec\u00e9\3\2\2\2\u00ed\u00f0\3\2\2\2\u00ee\u00ec\3")
|
| 144 |
+
buf.write("\2\2\2\u00ee\u00ef\3\2\2\2\u00ef\u00f2\3\2\2\2\u00f0\u00ee")
|
| 145 |
+
buf.write("\3\2\2\2\u00f1\u00e0\3\2\2\2\u00f1\u00e4\3\2\2\2\u00f2")
|
| 146 |
+
buf.write(".\3\2\2\2\u00f3\u00f6\5\13\4\2\u00f4\u00f6\5-\25\2\u00f5")
|
| 147 |
+
buf.write("\u00f3\3\2\2\2\u00f5\u00f4\3\2\2\2\u00f6\u00f7\3\2\2\2")
|
| 148 |
+
buf.write("\u00f7\u00f9\t\7\2\2\u00f8\u00fa\t\b\2\2\u00f9\u00f8\3")
|
| 149 |
+
buf.write("\2\2\2\u00f9\u00fa\3\2\2\2\u00fa\u00fb\3\2\2\2\u00fb\u0102")
|
| 150 |
+
buf.write("\5\t\3\2\u00fc\u00fe\7a\2\2\u00fd\u00fc\3\2\2\2\u00fd")
|
| 151 |
+
buf.write("\u00fe\3\2\2\2\u00fe\u00ff\3\2\2\2\u00ff\u0101\5\t\3\2")
|
| 152 |
+
buf.write("\u0100\u00fd\3\2\2\2\u0101\u0104\3\2\2\2\u0102\u0100\3")
|
| 153 |
+
buf.write("\2\2\2\u0102\u0103\3\2\2\2\u0103\60\3\2\2\2\u0104\u0102")
|
| 154 |
+
buf.write("\3\2\2\2\u0105\u0107\t\b\2\2\u0106\u0105\3\2\2\2\u0106")
|
| 155 |
+
buf.write("\u0107\3\2\2\2\u0107\u0110\3\2\2\2\u0108\u0111\5-\25\2")
|
| 156 |
+
buf.write("\u0109\u0111\5/\26\2\u010a\u010b\t\t\2\2\u010b\u010c\t")
|
| 157 |
+
buf.write("\n\2\2\u010c\u0111\t\13\2\2\u010d\u010e\t\n\2\2\u010e")
|
| 158 |
+
buf.write("\u010f\t\f\2\2\u010f\u0111\t\n\2\2\u0110\u0108\3\2\2\2")
|
| 159 |
+
buf.write("\u0110\u0109\3\2\2\2\u0110\u010a\3\2\2\2\u0110\u010d\3")
|
| 160 |
+
buf.write("\2\2\2\u0111\62\3\2\2\2\u0112\u0114\t\b\2\2\u0113\u0112")
|
| 161 |
+
buf.write("\3\2\2\2\u0113\u0114\3\2\2\2\u0114\u0115\3\2\2\2\u0115")
|
| 162 |
+
buf.write("\u0116\5\13\4\2\u0116\64\3\2\2\2\u0117\u0118\t\r\2\2\u0118")
|
| 163 |
+
buf.write("\u0119\t\16\2\2\u0119\u011a\t\17\2\2\u011a\u0121\t\7\2")
|
| 164 |
+
buf.write("\2\u011b\u011c\t\13\2\2\u011c\u011d\t\f\2\2\u011d\u011e")
|
| 165 |
+
buf.write("\t\20\2\2\u011e\u011f\t\21\2\2\u011f\u0121\t\7\2\2\u0120")
|
| 166 |
+
buf.write("\u0117\3\2\2\2\u0120\u011b\3\2\2\2\u0121\66\3\2\2\2\u0122")
|
| 167 |
+
buf.write("\u0123\t\n\2\2\u0123\u0124\t\17\2\2\u0124\u0125\t\20\2")
|
| 168 |
+
buf.write("\2\u0125\u0126\t\20\2\2\u01268\3\2\2\2\u0127\u0128\t\22")
|
| 169 |
+
buf.write("\2\2\u0128:\3\2\2\2\u0129\u012c\5\7\2\2\u012a\u012c\7")
|
| 170 |
+
buf.write("a\2\2\u012b\u0129\3\2\2\2\u012b\u012a\3\2\2\2\u012c\u0132")
|
| 171 |
+
buf.write("\3\2\2\2\u012d\u0131\5\7\2\2\u012e\u0131\5\t\3\2\u012f")
|
| 172 |
+
buf.write("\u0131\t\23\2\2\u0130\u012d\3\2\2\2\u0130\u012e\3\2\2")
|
| 173 |
+
buf.write("\2\u0130\u012f\3\2\2\2\u0131\u0134\3\2\2\2\u0132\u0130")
|
| 174 |
+
buf.write("\3\2\2\2\u0132\u0133\3\2\2\2\u0133<\3\2\2\2\u0134\u0132")
|
| 175 |
+
buf.write("\3\2\2\2\u0135\u014d\5\r\5\2\u0136\u0137\7^\2\2\u0137")
|
| 176 |
+
buf.write("\u014d\7*\2\2\u0138\u0139\7^\2\2\u0139\u014d\7+\2\2\u013a")
|
| 177 |
+
buf.write("\u013b\7^\2\2\u013b\u014d\7]\2\2\u013c\u013d\7^\2\2\u013d")
|
| 178 |
+
buf.write("\u014d\7_\2\2\u013e\u013f\7^\2\2\u013f\u014d\7}\2\2\u0140")
|
| 179 |
+
buf.write("\u0141\7^\2\2\u0141\u014d\7\177\2\2\u0142\u0143\7^\2\2")
|
| 180 |
+
buf.write("\u0143\u014d\7<\2\2\u0144\u0145\7^\2\2\u0145\u014d\7?")
|
| 181 |
+
buf.write("\2\2\u0146\u0147\7^\2\2\u0147\u014d\7.\2\2\u0148\u0149")
|
| 182 |
+
buf.write("\7^\2\2\u0149\u014d\7\"\2\2\u014a\u014b\7^\2\2\u014b\u014d")
|
| 183 |
+
buf.write("\7\13\2\2\u014c\u0135\3\2\2\2\u014c\u0136\3\2\2\2\u014c")
|
| 184 |
+
buf.write("\u0138\3\2\2\2\u014c\u013a\3\2\2\2\u014c\u013c\3\2\2\2")
|
| 185 |
+
buf.write("\u014c\u013e\3\2\2\2\u014c\u0140\3\2\2\2\u014c\u0142\3")
|
| 186 |
+
buf.write("\2\2\2\u014c\u0144\3\2\2\2\u014c\u0146\3\2\2\2\u014c\u0148")
|
| 187 |
+
buf.write("\3\2\2\2\u014c\u014a\3\2\2\2\u014d\u014e\3\2\2\2\u014e")
|
| 188 |
+
buf.write("\u014c\3\2\2\2\u014e\u014f\3\2\2\2\u014f>\3\2\2\2\u0150")
|
| 189 |
+
buf.write("\u0152\t\24\2\2\u0151\u0150\3\2\2\2\u0152\u0153\3\2\2")
|
| 190 |
+
buf.write("\2\u0153\u0151\3\2\2\2\u0153\u0154\3\2\2\2\u0154@\3\2")
|
| 191 |
+
buf.write("\2\2\u0155\u0157\5\33\f\2\u0156\u0158\5?\36\2\u0157\u0156")
|
| 192 |
+
buf.write("\3\2\2\2\u0157\u0158\3\2\2\2\u0158\u0159\3\2\2\2\u0159")
|
| 193 |
+
buf.write("\u015a\b\37\2\2\u015a\u015b\b\37\3\2\u015bB\3\2\2\2\u015c")
|
| 194 |
+
buf.write("\u015e\5?\36\2\u015d\u015c\3\2\2\2\u015d\u015e\3\2\2\2")
|
| 195 |
+
buf.write("\u015e\u015f\3\2\2\2\u015f\u0161\7<\2\2\u0160\u0162\5")
|
| 196 |
+
buf.write("?\36\2\u0161\u0160\3\2\2\2\u0161\u0162\3\2\2\2\u0162\u0163")
|
| 197 |
+
buf.write("\3\2\2\2\u0163\u0164\b \t\2\u0164\u0165\b \n\2\u0165D")
|
| 198 |
+
buf.write("\3\2\2\2\u0166\u0168\5?\36\2\u0167\u0166\3\2\2\2\u0167")
|
| 199 |
+
buf.write("\u0168\3\2\2\2\u0168\u0169\3\2\2\2\u0169\u016a\7\177\2")
|
| 200 |
+
buf.write("\2\u016a\u016b\3\2\2\2\u016b\u016c\b!\6\2\u016cF\3\2\2")
|
| 201 |
+
buf.write("\2\u016d\u016e\7\60\2\2\u016eH\3\2\2\2\u016f\u0170\7]")
|
| 202 |
+
buf.write("\2\2\u0170\u0171\3\2\2\2\u0171\u0172\b#\13\2\u0172J\3")
|
| 203 |
+
buf.write("\2\2\2\u0173\u0174\7_\2\2\u0174\u0175\3\2\2\2\u0175\u0176")
|
| 204 |
+
buf.write("\b$\f\2\u0176L\3\2\2\2\u0177\u0178\5;\34\2\u0178\u0179")
|
| 205 |
+
buf.write("\3\2\2\2\u0179\u017a\b%\r\2\u017aN\3\2\2\2\u017b\u017d")
|
| 206 |
+
buf.write("\n\25\2\2\u017c\u017b\3\2\2\2\u017d\u017e\3\2\2\2\u017e")
|
| 207 |
+
buf.write("\u017c\3\2\2\2\u017e\u017f\3\2\2\2\u017fP\3\2\2\2\u0180")
|
| 208 |
+
buf.write("\u0181\5\33\f\2\u0181\u0182\3\2\2\2\u0182\u0183\b\'\2")
|
| 209 |
+
buf.write("\2\u0183\u0184\b\'\3\2\u0184R\3\2\2\2\u0185\u0186\7)\2")
|
| 210 |
+
buf.write("\2\u0186\u0187\3\2\2\2\u0187\u0188\b(\6\2\u0188T\3\2\2")
|
| 211 |
+
buf.write("\2\u0189\u018b\n\26\2\2\u018a\u0189\3\2\2\2\u018b\u018e")
|
| 212 |
+
buf.write("\3\2\2\2\u018c\u018a\3\2\2\2\u018c\u018d\3\2\2\2\u018d")
|
| 213 |
+
buf.write("\u018f\3\2\2\2\u018e\u018c\3\2\2\2\u018f\u0190\n\27\2")
|
| 214 |
+
buf.write("\2\u0190\u0191\3\2\2\2\u0191\u0192\b)\4\2\u0192V\3\2\2")
|
| 215 |
+
buf.write("\2\u0193\u0194\5\23\b\2\u0194\u0195\3\2\2\2\u0195\u0196")
|
| 216 |
+
buf.write("\b*\16\2\u0196X\3\2\2\2\u0197\u0199\5\r\5\2\u0198\u0197")
|
| 217 |
+
buf.write("\3\2\2\2\u0199\u019c\3\2\2\2\u019a\u0198\3\2\2\2\u019a")
|
| 218 |
+
buf.write("\u019b\3\2\2\2\u019b\u019d\3\2\2\2\u019c\u019a\3\2\2\2")
|
| 219 |
+
buf.write("\u019d\u019e\7^\2\2\u019e\u019f\7)\2\2\u019f\u01a0\3\2")
|
| 220 |
+
buf.write("\2\2\u01a0\u01a1\b+\17\2\u01a1Z\3\2\2\2\u01a2\u01a4\5")
|
| 221 |
+
buf.write("\r\5\2\u01a3\u01a2\3\2\2\2\u01a4\u01a5\3\2\2\2\u01a5\u01a3")
|
| 222 |
+
buf.write("\3\2\2\2\u01a5\u01a6\3\2\2\2\u01a6\\\3\2\2\2\u01a7\u01a9")
|
| 223 |
+
buf.write("\7^\2\2\u01a8\u01a7\3\2\2\2\u01a9\u01aa\3\2\2\2\u01aa")
|
| 224 |
+
buf.write("\u01a8\3\2\2\2\u01aa\u01ab\3\2\2\2\u01ab\u01ac\3\2\2\2")
|
| 225 |
+
buf.write("\u01ac\u01ad\b-\4\2\u01ad^\3\2\2\2\u01ae\u01af\7&\2\2")
|
| 226 |
+
buf.write("\u01af\u01b0\3\2\2\2\u01b0\u01b1\b.\4\2\u01b1`\3\2\2\2")
|
| 227 |
+
buf.write("\u01b2\u01b3\5\33\f\2\u01b3\u01b4\3\2\2\2\u01b4\u01b5")
|
| 228 |
+
buf.write("\b/\2\2\u01b5\u01b6\b/\3\2\u01b6b\3\2\2\2\u01b7\u01b8")
|
| 229 |
+
buf.write("\7$\2\2\u01b8\u01b9\3\2\2\2\u01b9\u01ba\b\60\20\2\u01ba")
|
| 230 |
+
buf.write("\u01bb\b\60\6\2\u01bbd\3\2\2\2\u01bc\u01be\n\30\2\2\u01bd")
|
| 231 |
+
buf.write("\u01bc\3\2\2\2\u01be\u01c1\3\2\2\2\u01bf\u01bd\3\2\2\2")
|
| 232 |
+
buf.write("\u01bf\u01c0\3\2\2\2\u01c0\u01c2\3\2\2\2\u01c1\u01bf\3")
|
| 233 |
+
buf.write("\2\2\2\u01c2\u01c3\n\31\2\2\u01c3\u01c4\3\2\2\2\u01c4")
|
| 234 |
+
buf.write("\u01c5\b\61\4\2\u01c5f\3\2\2\2\u01c6\u01c7\5\23\b\2\u01c7")
|
| 235 |
+
buf.write("\u01c8\3\2\2\2\u01c8\u01c9\b\62\16\2\u01c9h\3\2\2\2\u01ca")
|
| 236 |
+
buf.write("\u01cc\5\r\5\2\u01cb\u01ca\3\2\2\2\u01cc\u01cf\3\2\2\2")
|
| 237 |
+
buf.write("\u01cd\u01cb\3\2\2\2\u01cd\u01ce\3\2\2\2\u01ce\u01d0\3")
|
| 238 |
+
buf.write("\2\2\2\u01cf\u01cd\3\2\2\2\u01d0\u01d1\7^\2\2\u01d1\u01d2")
|
| 239 |
+
buf.write("\7$\2\2\u01d2\u01d3\3\2\2\2\u01d3\u01d4\b\63\17\2\u01d4")
|
| 240 |
+
buf.write("j\3\2\2\2\u01d5\u01d7\5\r\5\2\u01d6\u01d5\3\2\2\2\u01d7")
|
| 241 |
+
buf.write("\u01d8\3\2\2\2\u01d8\u01d6\3\2\2\2\u01d8\u01d9\3\2\2\2")
|
| 242 |
+
buf.write("\u01d9\u01da\3\2\2\2\u01da\u01db\b\64\21\2\u01dbl\3\2")
|
| 243 |
+
buf.write("\2\2\u01dc\u01de\7^\2\2\u01dd\u01dc\3\2\2\2\u01de\u01df")
|
| 244 |
+
buf.write("\3\2\2\2\u01df\u01dd\3\2\2\2\u01df\u01e0\3\2\2\2\u01e0")
|
| 245 |
+
buf.write("\u01e1\3\2\2\2\u01e1\u01e2\b\65\4\2\u01e2n\3\2\2\2\u01e3")
|
| 246 |
+
buf.write("\u01e4\7&\2\2\u01e4\u01e5\3\2\2\2\u01e5\u01e6\b\66\4\2")
|
| 247 |
+
buf.write("\u01e6p\3\2\2\2\66\2\3\4\5\6x}\u0080\u008d\u0095\u009f")
|
| 248 |
+
buf.write("\u00a4\u00b0\u00b6\u00bb\u00ca\u00ce\u00d2\u00d5\u00da")
|
| 249 |
+
buf.write("\u00de\u00e4\u00e9\u00ee\u00f1\u00f5\u00f9\u00fd\u0102")
|
| 250 |
+
buf.write("\u0106\u0110\u0113\u0120\u012b\u0130\u0132\u014c\u014e")
|
| 251 |
+
buf.write("\u0153\u0157\u015d\u0161\u0167\u017e\u018c\u019a\u01a5")
|
| 252 |
+
buf.write("\u01aa\u01bf\u01cd\u01d8\u01df\22\t\6\2\7\4\2\t\3\2\7")
|
| 253 |
+
buf.write("\3\2\6\2\2\7\5\2\7\6\2\t\16\2\4\3\2\t\f\2\t\r\2\t\24\2")
|
| 254 |
+
buf.write("\t\4\2\t\25\2\t\32\2\t\33\2")
|
| 255 |
+
return buf.getvalue()
|
| 256 |
+
|
| 257 |
+
|
| 258 |
+
class OmegaConfGrammarLexer(Lexer):
|
| 259 |
+
|
| 260 |
+
atn = ATNDeserializer().deserialize(serializedATN())
|
| 261 |
+
|
| 262 |
+
decisionsToDFA = [ DFA(ds, i) for i, ds in enumerate(atn.decisionToState) ]
|
| 263 |
+
|
| 264 |
+
VALUE_MODE = 1
|
| 265 |
+
INTERPOLATION_MODE = 2
|
| 266 |
+
QUOTED_SINGLE_MODE = 3
|
| 267 |
+
QUOTED_DOUBLE_MODE = 4
|
| 268 |
+
|
| 269 |
+
ANY_STR = 1
|
| 270 |
+
ESC_INTER = 2
|
| 271 |
+
TOP_ESC = 3
|
| 272 |
+
INTER_OPEN = 4
|
| 273 |
+
BRACE_OPEN = 5
|
| 274 |
+
BRACE_CLOSE = 6
|
| 275 |
+
QUOTE_OPEN_SINGLE = 7
|
| 276 |
+
QUOTE_OPEN_DOUBLE = 8
|
| 277 |
+
COMMA = 9
|
| 278 |
+
BRACKET_OPEN = 10
|
| 279 |
+
BRACKET_CLOSE = 11
|
| 280 |
+
COLON = 12
|
| 281 |
+
FLOAT = 13
|
| 282 |
+
INT = 14
|
| 283 |
+
BOOL = 15
|
| 284 |
+
NULL = 16
|
| 285 |
+
UNQUOTED_CHAR = 17
|
| 286 |
+
ID = 18
|
| 287 |
+
ESC = 19
|
| 288 |
+
WS = 20
|
| 289 |
+
INTER_CLOSE = 21
|
| 290 |
+
DOT = 22
|
| 291 |
+
INTER_KEY = 23
|
| 292 |
+
MATCHING_QUOTE_CLOSE = 24
|
| 293 |
+
QUOTED_ESC = 25
|
| 294 |
+
DOLLAR = 26
|
| 295 |
+
INTER_BRACKET_OPEN = 27
|
| 296 |
+
INTER_BRACKET_CLOSE = 28
|
| 297 |
+
|
| 298 |
+
channelNames = [ u"DEFAULT_TOKEN_CHANNEL", u"HIDDEN" ]
|
| 299 |
+
|
| 300 |
+
modeNames = [ "DEFAULT_MODE", "VALUE_MODE", "INTERPOLATION_MODE", "QUOTED_SINGLE_MODE",
|
| 301 |
+
"QUOTED_DOUBLE_MODE" ]
|
| 302 |
+
|
| 303 |
+
literalNames = [ "<INVALID>",
|
| 304 |
+
"'.'", "'['", "']'" ]
|
| 305 |
+
|
| 306 |
+
symbolicNames = [ "<INVALID>",
|
| 307 |
+
"ANY_STR", "ESC_INTER", "TOP_ESC", "INTER_OPEN", "BRACE_OPEN",
|
| 308 |
+
"BRACE_CLOSE", "QUOTE_OPEN_SINGLE", "QUOTE_OPEN_DOUBLE", "COMMA",
|
| 309 |
+
"BRACKET_OPEN", "BRACKET_CLOSE", "COLON", "FLOAT", "INT", "BOOL",
|
| 310 |
+
"NULL", "UNQUOTED_CHAR", "ID", "ESC", "WS", "INTER_CLOSE", "DOT",
|
| 311 |
+
"INTER_KEY", "MATCHING_QUOTE_CLOSE", "QUOTED_ESC", "DOLLAR",
|
| 312 |
+
"INTER_BRACKET_OPEN", "INTER_BRACKET_CLOSE" ]
|
| 313 |
+
|
| 314 |
+
ruleNames = [ "CHAR", "DIGIT", "INT_UNSIGNED", "ESC_BACKSLASH", "TOP_INTER_OPEN",
|
| 315 |
+
"ANY_STR", "ESC_INTER", "TOP_ESC", "BACKSLASHES", "DOLLAR",
|
| 316 |
+
"INTER_OPEN", "BRACE_OPEN", "BRACE_CLOSE", "QUOTE_OPEN_SINGLE",
|
| 317 |
+
"QUOTE_OPEN_DOUBLE", "COMMA", "BRACKET_OPEN", "BRACKET_CLOSE",
|
| 318 |
+
"COLON", "POINT_FLOAT", "EXPONENT_FLOAT", "FLOAT", "INT",
|
| 319 |
+
"BOOL", "NULL", "UNQUOTED_CHAR", "ID", "ESC", "WS", "NESTED_INTER_OPEN",
|
| 320 |
+
"INTER_COLON", "INTER_CLOSE", "DOT", "INTER_BRACKET_OPEN",
|
| 321 |
+
"INTER_BRACKET_CLOSE", "INTER_ID", "INTER_KEY", "QSINGLE_INTER_OPEN",
|
| 322 |
+
"MATCHING_QUOTE_CLOSE", "QSINGLE_STR", "QSINGLE_ESC_INTER",
|
| 323 |
+
"QSINGLE_ESC_QUOTE", "QUOTED_ESC", "QSINGLE_BACKSLASHES",
|
| 324 |
+
"QSINGLE_DOLLAR", "QDOUBLE_INTER_OPEN", "QDOUBLE_CLOSE",
|
| 325 |
+
"QDOUBLE_STR", "QDOUBLE_ESC_INTER", "QDOUBLE_ESC_QUOTE",
|
| 326 |
+
"QDOUBLE_ESC", "QDOUBLE_BACKSLASHES", "QDOUBLE_DOLLAR" ]
|
| 327 |
+
|
| 328 |
+
grammarFileName = "OmegaConfGrammarLexer.g4"
|
| 329 |
+
|
| 330 |
+
def __init__(self, input=None, output:TextIO = sys.stdout):
|
| 331 |
+
super().__init__(input, output)
|
| 332 |
+
self.checkVersion("4.9.3")
|
| 333 |
+
self._interp = LexerATNSimulator(self, self.atn, self.decisionsToDFA, PredictionContextCache())
|
| 334 |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Generated from /tmp/build-via-sdist-fm63w174/omegaconf-2.3.0/omegaconf/grammar/OmegaConfGrammarParser.g4 by ANTLR 4.9.3
|
| 2 |
+
# encoding: utf-8
|
| 3 |
+
from antlr4 import *
|
| 4 |
+
from io import StringIO
|
| 5 |
+
import sys
|
| 6 |
+
if sys.version_info[1] > 5:
|
| 7 |
+
from typing import TextIO
|
| 8 |
+
else:
|
| 9 |
+
from typing.io import TextIO
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
def serializedATN():
|
| 13 |
+
with StringIO() as buf:
|
| 14 |
+
buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\3\36")
|
| 15 |
+
buf.write("\u00b7\4\2\t\2\4\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7\t\7")
|
| 16 |
+
buf.write("\4\b\t\b\4\t\t\t\4\n\t\n\4\13\t\13\4\f\t\f\4\r\t\r\4\16")
|
| 17 |
+
buf.write("\t\16\4\17\t\17\4\20\t\20\4\21\t\21\3\2\3\2\3\2\3\3\3")
|
| 18 |
+
buf.write("\3\3\3\3\4\3\4\3\4\3\4\3\4\3\4\6\4/\n\4\r\4\16\4\60\3")
|
| 19 |
+
buf.write("\5\3\5\3\5\3\5\5\5\67\n\5\3\6\3\6\5\6;\n\6\3\6\3\6\3\7")
|
| 20 |
+
buf.write("\3\7\3\7\3\7\7\7C\n\7\f\7\16\7F\13\7\5\7H\n\7\3\7\3\7")
|
| 21 |
+
buf.write("\3\b\3\b\3\b\3\b\3\t\3\t\3\t\5\tS\n\t\7\tU\n\t\f\t\16")
|
| 22 |
+
buf.write("\tX\13\t\3\t\3\t\5\t\\\n\t\6\t^\n\t\r\t\16\t_\5\tb\n\t")
|
| 23 |
+
buf.write("\3\n\3\n\5\nf\n\n\3\13\3\13\7\13j\n\13\f\13\16\13m\13")
|
| 24 |
+
buf.write("\13\3\13\3\13\3\13\3\13\3\13\5\13t\n\13\3\13\3\13\3\13")
|
| 25 |
+
buf.write("\3\13\3\13\3\13\7\13|\n\13\f\13\16\13\177\13\13\3\13\3")
|
| 26 |
+
buf.write("\13\3\f\3\f\3\f\3\f\5\f\u0087\n\f\3\f\3\f\3\r\3\r\3\r")
|
| 27 |
+
buf.write("\5\r\u008e\n\r\3\16\3\16\5\16\u0092\n\16\3\16\3\16\3\16")
|
| 28 |
+
buf.write("\5\16\u0097\n\16\7\16\u0099\n\16\f\16\16\16\u009c\13\16")
|
| 29 |
+
buf.write("\3\17\3\17\5\17\u00a0\n\17\3\17\3\17\3\20\3\20\3\20\3")
|
| 30 |
+
buf.write("\20\3\20\3\20\3\20\3\20\3\20\3\20\6\20\u00ae\n\20\r\20")
|
| 31 |
+
buf.write("\16\20\u00af\3\21\6\21\u00b3\n\21\r\21\16\21\u00b4\3\21")
|
| 32 |
+
buf.write("\2\2\22\2\4\6\b\n\f\16\20\22\24\26\30\32\34\36 \2\4\3")
|
| 33 |
+
buf.write("\2\t\n\3\2\17\26\2\u00ce\2\"\3\2\2\2\4%\3\2\2\2\6.\3\2")
|
| 34 |
+
buf.write("\2\2\b\66\3\2\2\2\n8\3\2\2\2\f>\3\2\2\2\16K\3\2\2\2\20")
|
| 35 |
+
buf.write("a\3\2\2\2\22e\3\2\2\2\24g\3\2\2\2\26\u0082\3\2\2\2\30")
|
| 36 |
+
buf.write("\u008d\3\2\2\2\32\u0091\3\2\2\2\34\u009d\3\2\2\2\36\u00ad")
|
| 37 |
+
buf.write("\3\2\2\2 \u00b2\3\2\2\2\"#\5\6\4\2#$\7\2\2\3$\3\3\2\2")
|
| 38 |
+
buf.write("\2%&\5\b\5\2&\'\7\2\2\3\'\5\3\2\2\2(/\5\22\n\2)/\7\3\2")
|
| 39 |
+
buf.write("\2*/\7\25\2\2+/\7\4\2\2,/\7\5\2\2-/\7\33\2\2.(\3\2\2\2")
|
| 40 |
+
buf.write(".)\3\2\2\2.*\3\2\2\2.+\3\2\2\2.,\3\2\2\2.-\3\2\2\2/\60")
|
| 41 |
+
buf.write("\3\2\2\2\60.\3\2\2\2\60\61\3\2\2\2\61\7\3\2\2\2\62\67")
|
| 42 |
+
buf.write("\5\36\20\2\63\67\5\34\17\2\64\67\5\n\6\2\65\67\5\f\7\2")
|
| 43 |
+
buf.write("\66\62\3\2\2\2\66\63\3\2\2\2\66\64\3\2\2\2\66\65\3\2\2")
|
| 44 |
+
buf.write("\2\67\t\3\2\2\28:\7\f\2\29;\5\20\t\2:9\3\2\2\2:;\3\2\2")
|
| 45 |
+
buf.write("\2;<\3\2\2\2<=\7\r\2\2=\13\3\2\2\2>G\7\7\2\2?D\5\16\b")
|
| 46 |
+
buf.write("\2@A\7\13\2\2AC\5\16\b\2B@\3\2\2\2CF\3\2\2\2DB\3\2\2\2")
|
| 47 |
+
buf.write("DE\3\2\2\2EH\3\2\2\2FD\3\2\2\2G?\3\2\2\2GH\3\2\2\2HI\3")
|
| 48 |
+
buf.write("\2\2\2IJ\7\b\2\2J\r\3\2\2\2KL\5 \21\2LM\7\16\2\2MN\5\b")
|
| 49 |
+
buf.write("\5\2N\17\3\2\2\2OV\5\b\5\2PR\7\13\2\2QS\5\b\5\2RQ\3\2")
|
| 50 |
+
buf.write("\2\2RS\3\2\2\2SU\3\2\2\2TP\3\2\2\2UX\3\2\2\2VT\3\2\2\2")
|
| 51 |
+
buf.write("VW\3\2\2\2Wb\3\2\2\2XV\3\2\2\2Y[\7\13\2\2Z\\\5\b\5\2[")
|
| 52 |
+
buf.write("Z\3\2\2\2[\\\3\2\2\2\\^\3\2\2\2]Y\3\2\2\2^_\3\2\2\2_]")
|
| 53 |
+
buf.write("\3\2\2\2_`\3\2\2\2`b\3\2\2\2aO\3\2\2\2a]\3\2\2\2b\21\3")
|
| 54 |
+
buf.write("\2\2\2cf\5\24\13\2df\5\26\f\2ec\3\2\2\2ed\3\2\2\2f\23")
|
| 55 |
+
buf.write("\3\2\2\2gk\7\6\2\2hj\7\30\2\2ih\3\2\2\2jm\3\2\2\2ki\3")
|
| 56 |
+
buf.write("\2\2\2kl\3\2\2\2ls\3\2\2\2mk\3\2\2\2nt\5\30\r\2op\7\f")
|
| 57 |
+
buf.write("\2\2pq\5\30\r\2qr\7\r\2\2rt\3\2\2\2sn\3\2\2\2so\3\2\2")
|
| 58 |
+
buf.write("\2t}\3\2\2\2uv\7\30\2\2v|\5\30\r\2wx\7\f\2\2xy\5\30\r")
|
| 59 |
+
buf.write("\2yz\7\r\2\2z|\3\2\2\2{u\3\2\2\2{w\3\2\2\2|\177\3\2\2")
|
| 60 |
+
buf.write("\2}{\3\2\2\2}~\3\2\2\2~\u0080\3\2\2\2\177}\3\2\2\2\u0080")
|
| 61 |
+
buf.write("\u0081\7\27\2\2\u0081\25\3\2\2\2\u0082\u0083\7\6\2\2\u0083")
|
| 62 |
+
buf.write("\u0084\5\32\16\2\u0084\u0086\7\16\2\2\u0085\u0087\5\20")
|
| 63 |
+
buf.write("\t\2\u0086\u0085\3\2\2\2\u0086\u0087\3\2\2\2\u0087\u0088")
|
| 64 |
+
buf.write("\3\2\2\2\u0088\u0089\7\b\2\2\u0089\27\3\2\2\2\u008a\u008e")
|
| 65 |
+
buf.write("\5\22\n\2\u008b\u008e\7\24\2\2\u008c\u008e\7\31\2\2\u008d")
|
| 66 |
+
buf.write("\u008a\3\2\2\2\u008d\u008b\3\2\2\2\u008d\u008c\3\2\2\2")
|
| 67 |
+
buf.write("\u008e\31\3\2\2\2\u008f\u0092\5\22\n\2\u0090\u0092\7\24")
|
| 68 |
+
buf.write("\2\2\u0091\u008f\3\2\2\2\u0091\u0090\3\2\2\2\u0092\u009a")
|
| 69 |
+
buf.write("\3\2\2\2\u0093\u0096\7\30\2\2\u0094\u0097\5\22\n\2\u0095")
|
| 70 |
+
buf.write("\u0097\7\24\2\2\u0096\u0094\3\2\2\2\u0096\u0095\3\2\2")
|
| 71 |
+
buf.write("\2\u0097\u0099\3\2\2\2\u0098\u0093\3\2\2\2\u0099\u009c")
|
| 72 |
+
buf.write("\3\2\2\2\u009a\u0098\3\2\2\2\u009a\u009b\3\2\2\2\u009b")
|
| 73 |
+
buf.write("\33\3\2\2\2\u009c\u009a\3\2\2\2\u009d\u009f\t\2\2\2\u009e")
|
| 74 |
+
buf.write("\u00a0\5\6\4\2\u009f\u009e\3\2\2\2\u009f\u00a0\3\2\2\2")
|
| 75 |
+
buf.write("\u00a0\u00a1\3\2\2\2\u00a1\u00a2\7\32\2\2\u00a2\35\3\2")
|
| 76 |
+
buf.write("\2\2\u00a3\u00ae\7\24\2\2\u00a4\u00ae\7\22\2\2\u00a5\u00ae")
|
| 77 |
+
buf.write("\7\20\2\2\u00a6\u00ae\7\17\2\2\u00a7\u00ae\7\21\2\2\u00a8")
|
| 78 |
+
buf.write("\u00ae\7\23\2\2\u00a9\u00ae\7\16\2\2\u00aa\u00ae\7\25")
|
| 79 |
+
buf.write("\2\2\u00ab\u00ae\7\26\2\2\u00ac\u00ae\5\22\n\2\u00ad\u00a3")
|
| 80 |
+
buf.write("\3\2\2\2\u00ad\u00a4\3\2\2\2\u00ad\u00a5\3\2\2\2\u00ad")
|
| 81 |
+
buf.write("\u00a6\3\2\2\2\u00ad\u00a7\3\2\2\2\u00ad\u00a8\3\2\2\2")
|
| 82 |
+
buf.write("\u00ad\u00a9\3\2\2\2\u00ad\u00aa\3\2\2\2\u00ad\u00ab\3")
|
| 83 |
+
buf.write("\2\2\2\u00ad\u00ac\3\2\2\2\u00ae\u00af\3\2\2\2\u00af\u00ad")
|
| 84 |
+
buf.write("\3\2\2\2\u00af\u00b0\3\2\2\2\u00b0\37\3\2\2\2\u00b1\u00b3")
|
| 85 |
+
buf.write("\t\3\2\2\u00b2\u00b1\3\2\2\2\u00b3\u00b4\3\2\2\2\u00b4")
|
| 86 |
+
buf.write("\u00b2\3\2\2\2\u00b4\u00b5\3\2\2\2\u00b5!\3\2\2\2\33.")
|
| 87 |
+
buf.write("\60\66:DGRV[_aeks{}\u0086\u008d\u0091\u0096\u009a\u009f")
|
| 88 |
+
buf.write("\u00ad\u00af\u00b4")
|
| 89 |
+
return buf.getvalue()
|
| 90 |
+
|
| 91 |
+
|
| 92 |
+
class OmegaConfGrammarParser ( Parser ):
|
| 93 |
+
|
| 94 |
+
grammarFileName = "OmegaConfGrammarParser.g4"
|
| 95 |
+
|
| 96 |
+
atn = ATNDeserializer().deserialize(serializedATN())
|
| 97 |
+
|
| 98 |
+
decisionsToDFA = [ DFA(ds, i) for i, ds in enumerate(atn.decisionToState) ]
|
| 99 |
+
|
| 100 |
+
sharedContextCache = PredictionContextCache()
|
| 101 |
+
|
| 102 |
+
literalNames = [ "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",
|
| 103 |
+
"<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",
|
| 104 |
+
"<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",
|
| 105 |
+
"<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",
|
| 106 |
+
"<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",
|
| 107 |
+
"<INVALID>", "<INVALID>", "'.'", "<INVALID>", "<INVALID>",
|
| 108 |
+
"<INVALID>", "<INVALID>", "'['", "']'" ]
|
| 109 |
+
|
| 110 |
+
symbolicNames = [ "<INVALID>", "ANY_STR", "ESC_INTER", "TOP_ESC", "INTER_OPEN",
|
| 111 |
+
"BRACE_OPEN", "BRACE_CLOSE", "QUOTE_OPEN_SINGLE",
|
| 112 |
+
"QUOTE_OPEN_DOUBLE", "COMMA", "BRACKET_OPEN", "BRACKET_CLOSE",
|
| 113 |
+
"COLON", "FLOAT", "INT", "BOOL", "NULL", "UNQUOTED_CHAR",
|
| 114 |
+
"ID", "ESC", "WS", "INTER_CLOSE", "DOT", "INTER_KEY",
|
| 115 |
+
"MATCHING_QUOTE_CLOSE", "QUOTED_ESC", "DOLLAR", "INTER_BRACKET_OPEN",
|
| 116 |
+
"INTER_BRACKET_CLOSE" ]
|
| 117 |
+
|
| 118 |
+
RULE_configValue = 0
|
| 119 |
+
RULE_singleElement = 1
|
| 120 |
+
RULE_text = 2
|
| 121 |
+
RULE_element = 3
|
| 122 |
+
RULE_listContainer = 4
|
| 123 |
+
RULE_dictContainer = 5
|
| 124 |
+
RULE_dictKeyValuePair = 6
|
| 125 |
+
RULE_sequence = 7
|
| 126 |
+
RULE_interpolation = 8
|
| 127 |
+
RULE_interpolationNode = 9
|
| 128 |
+
RULE_interpolationResolver = 10
|
| 129 |
+
RULE_configKey = 11
|
| 130 |
+
RULE_resolverName = 12
|
| 131 |
+
RULE_quotedValue = 13
|
| 132 |
+
RULE_primitive = 14
|
| 133 |
+
RULE_dictKey = 15
|
| 134 |
+
|
| 135 |
+
ruleNames = [ "configValue", "singleElement", "text", "element", "listContainer",
|
| 136 |
+
"dictContainer", "dictKeyValuePair", "sequence", "interpolation",
|
| 137 |
+
"interpolationNode", "interpolationResolver", "configKey",
|
| 138 |
+
"resolverName", "quotedValue", "primitive", "dictKey" ]
|
| 139 |
+
|
| 140 |
+
EOF = Token.EOF
|
| 141 |
+
ANY_STR=1
|
| 142 |
+
ESC_INTER=2
|
| 143 |
+
TOP_ESC=3
|
| 144 |
+
INTER_OPEN=4
|
| 145 |
+
BRACE_OPEN=5
|
| 146 |
+
BRACE_CLOSE=6
|
| 147 |
+
QUOTE_OPEN_SINGLE=7
|
| 148 |
+
QUOTE_OPEN_DOUBLE=8
|
| 149 |
+
COMMA=9
|
| 150 |
+
BRACKET_OPEN=10
|
| 151 |
+
BRACKET_CLOSE=11
|
| 152 |
+
COLON=12
|
| 153 |
+
FLOAT=13
|
| 154 |
+
INT=14
|
| 155 |
+
BOOL=15
|
| 156 |
+
NULL=16
|
| 157 |
+
UNQUOTED_CHAR=17
|
| 158 |
+
ID=18
|
| 159 |
+
ESC=19
|
| 160 |
+
WS=20
|
| 161 |
+
INTER_CLOSE=21
|
| 162 |
+
DOT=22
|
| 163 |
+
INTER_KEY=23
|
| 164 |
+
MATCHING_QUOTE_CLOSE=24
|
| 165 |
+
QUOTED_ESC=25
|
| 166 |
+
DOLLAR=26
|
| 167 |
+
INTER_BRACKET_OPEN=27
|
| 168 |
+
INTER_BRACKET_CLOSE=28
|
| 169 |
+
|
| 170 |
+
def __init__(self, input:TokenStream, output:TextIO = sys.stdout):
|
| 171 |
+
super().__init__(input, output)
|
| 172 |
+
self.checkVersion("4.9.3")
|
| 173 |
+
self._interp = ParserATNSimulator(self, self.atn, self.decisionsToDFA, self.sharedContextCache)
|
| 174 |
+
self._predicates = None
|
| 175 |
+
|
| 176 |
+
|
| 177 |
+
|
| 178 |
+
|
| 179 |
+
class ConfigValueContext(ParserRuleContext):
|
| 180 |
+
__slots__ = 'parser'
|
| 181 |
+
|
| 182 |
+
def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
|
| 183 |
+
super().__init__(parent, invokingState)
|
| 184 |
+
self.parser = parser
|
| 185 |
+
|
| 186 |
+
def text(self):
|
| 187 |
+
return self.getTypedRuleContext(OmegaConfGrammarParser.TextContext,0)
|
| 188 |
+
|
| 189 |
+
|
| 190 |
+
def EOF(self):
|
| 191 |
+
return self.getToken(OmegaConfGrammarParser.EOF, 0)
|
| 192 |
+
|
| 193 |
+
def getRuleIndex(self):
|
| 194 |
+
return OmegaConfGrammarParser.RULE_configValue
|
| 195 |
+
|
| 196 |
+
def enterRule(self, listener:ParseTreeListener):
|
| 197 |
+
if hasattr( listener, "enterConfigValue" ):
|
| 198 |
+
listener.enterConfigValue(self)
|
| 199 |
+
|
| 200 |
+
def exitRule(self, listener:ParseTreeListener):
|
| 201 |
+
if hasattr( listener, "exitConfigValue" ):
|
| 202 |
+
listener.exitConfigValue(self)
|
| 203 |
+
|
| 204 |
+
def accept(self, visitor:ParseTreeVisitor):
|
| 205 |
+
if hasattr( visitor, "visitConfigValue" ):
|
| 206 |
+
return visitor.visitConfigValue(self)
|
| 207 |
+
else:
|
| 208 |
+
return visitor.visitChildren(self)
|
| 209 |
+
|
| 210 |
+
|
| 211 |
+
|
| 212 |
+
|
| 213 |
+
def configValue(self):
|
| 214 |
+
|
| 215 |
+
localctx = OmegaConfGrammarParser.ConfigValueContext(self, self._ctx, self.state)
|
| 216 |
+
self.enterRule(localctx, 0, self.RULE_configValue)
|
| 217 |
+
try:
|
| 218 |
+
self.enterOuterAlt(localctx, 1)
|
| 219 |
+
self.state = 32
|
| 220 |
+
self.text()
|
| 221 |
+
self.state = 33
|
| 222 |
+
self.match(OmegaConfGrammarParser.EOF)
|
| 223 |
+
except RecognitionException as re:
|
| 224 |
+
localctx.exception = re
|
| 225 |
+
self._errHandler.reportError(self, re)
|
| 226 |
+
self._errHandler.recover(self, re)
|
| 227 |
+
finally:
|
| 228 |
+
self.exitRule()
|
| 229 |
+
return localctx
|
| 230 |
+
|
| 231 |
+
|
| 232 |
+
class SingleElementContext(ParserRuleContext):
|
| 233 |
+
__slots__ = 'parser'
|
| 234 |
+
|
| 235 |
+
def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
|
| 236 |
+
super().__init__(parent, invokingState)
|
| 237 |
+
self.parser = parser
|
| 238 |
+
|
| 239 |
+
def element(self):
|
| 240 |
+
return self.getTypedRuleContext(OmegaConfGrammarParser.ElementContext,0)
|
| 241 |
+
|
| 242 |
+
|
| 243 |
+
def EOF(self):
|
| 244 |
+
return self.getToken(OmegaConfGrammarParser.EOF, 0)
|
| 245 |
+
|
| 246 |
+
def getRuleIndex(self):
|
| 247 |
+
return OmegaConfGrammarParser.RULE_singleElement
|
| 248 |
+
|
| 249 |
+
def enterRule(self, listener:ParseTreeListener):
|
| 250 |
+
if hasattr( listener, "enterSingleElement" ):
|
| 251 |
+
listener.enterSingleElement(self)
|
| 252 |
+
|
| 253 |
+
def exitRule(self, listener:ParseTreeListener):
|
| 254 |
+
if hasattr( listener, "exitSingleElement" ):
|
| 255 |
+
listener.exitSingleElement(self)
|
| 256 |
+
|
| 257 |
+
def accept(self, visitor:ParseTreeVisitor):
|
| 258 |
+
if hasattr( visitor, "visitSingleElement" ):
|
| 259 |
+
return visitor.visitSingleElement(self)
|
| 260 |
+
else:
|
| 261 |
+
return visitor.visitChildren(self)
|
| 262 |
+
|
| 263 |
+
|
| 264 |
+
|
| 265 |
+
|
| 266 |
+
def singleElement(self):
|
| 267 |
+
|
| 268 |
+
localctx = OmegaConfGrammarParser.SingleElementContext(self, self._ctx, self.state)
|
| 269 |
+
self.enterRule(localctx, 2, self.RULE_singleElement)
|
| 270 |
+
try:
|
| 271 |
+
self.enterOuterAlt(localctx, 1)
|
| 272 |
+
self.state = 35
|
| 273 |
+
self.element()
|
| 274 |
+
self.state = 36
|
| 275 |
+
self.match(OmegaConfGrammarParser.EOF)
|
| 276 |
+
except RecognitionException as re:
|
| 277 |
+
localctx.exception = re
|
| 278 |
+
self._errHandler.reportError(self, re)
|
| 279 |
+
self._errHandler.recover(self, re)
|
| 280 |
+
finally:
|
| 281 |
+
self.exitRule()
|
| 282 |
+
return localctx
|
| 283 |
+
|
| 284 |
+
|
| 285 |
+
class TextContext(ParserRuleContext):
|
| 286 |
+
__slots__ = 'parser'
|
| 287 |
+
|
| 288 |
+
def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
|
| 289 |
+
super().__init__(parent, invokingState)
|
| 290 |
+
self.parser = parser
|
| 291 |
+
|
| 292 |
+
def interpolation(self, i:int=None):
|
| 293 |
+
if i is None:
|
| 294 |
+
return self.getTypedRuleContexts(OmegaConfGrammarParser.InterpolationContext)
|
| 295 |
+
else:
|
| 296 |
+
return self.getTypedRuleContext(OmegaConfGrammarParser.InterpolationContext,i)
|
| 297 |
+
|
| 298 |
+
|
| 299 |
+
def ANY_STR(self, i:int=None):
|
| 300 |
+
if i is None:
|
| 301 |
+
return self.getTokens(OmegaConfGrammarParser.ANY_STR)
|
| 302 |
+
else:
|
| 303 |
+
return self.getToken(OmegaConfGrammarParser.ANY_STR, i)
|
| 304 |
+
|
| 305 |
+
def ESC(self, i:int=None):
|
| 306 |
+
if i is None:
|
| 307 |
+
return self.getTokens(OmegaConfGrammarParser.ESC)
|
| 308 |
+
else:
|
| 309 |
+
return self.getToken(OmegaConfGrammarParser.ESC, i)
|
| 310 |
+
|
| 311 |
+
def ESC_INTER(self, i:int=None):
|
| 312 |
+
if i is None:
|
| 313 |
+
return self.getTokens(OmegaConfGrammarParser.ESC_INTER)
|
| 314 |
+
else:
|
| 315 |
+
return self.getToken(OmegaConfGrammarParser.ESC_INTER, i)
|
| 316 |
+
|
| 317 |
+
def TOP_ESC(self, i:int=None):
|
| 318 |
+
if i is None:
|
| 319 |
+
return self.getTokens(OmegaConfGrammarParser.TOP_ESC)
|
| 320 |
+
else:
|
| 321 |
+
return self.getToken(OmegaConfGrammarParser.TOP_ESC, i)
|
| 322 |
+
|
| 323 |
+
def QUOTED_ESC(self, i:int=None):
|
| 324 |
+
if i is None:
|
| 325 |
+
return self.getTokens(OmegaConfGrammarParser.QUOTED_ESC)
|
| 326 |
+
else:
|
| 327 |
+
return self.getToken(OmegaConfGrammarParser.QUOTED_ESC, i)
|
| 328 |
+
|
| 329 |
+
def getRuleIndex(self):
|
| 330 |
+
return OmegaConfGrammarParser.RULE_text
|
| 331 |
+
|
| 332 |
+
def enterRule(self, listener:ParseTreeListener):
|
| 333 |
+
if hasattr( listener, "enterText" ):
|
| 334 |
+
listener.enterText(self)
|
| 335 |
+
|
| 336 |
+
def exitRule(self, listener:ParseTreeListener):
|
| 337 |
+
if hasattr( listener, "exitText" ):
|
| 338 |
+
listener.exitText(self)
|
| 339 |
+
|
| 340 |
+
def accept(self, visitor:ParseTreeVisitor):
|
| 341 |
+
if hasattr( visitor, "visitText" ):
|
| 342 |
+
return visitor.visitText(self)
|
| 343 |
+
else:
|
| 344 |
+
return visitor.visitChildren(self)
|
| 345 |
+
|
| 346 |
+
|
| 347 |
+
|
| 348 |
+
|
| 349 |
+
def text(self):
|
| 350 |
+
|
| 351 |
+
localctx = OmegaConfGrammarParser.TextContext(self, self._ctx, self.state)
|
| 352 |
+
self.enterRule(localctx, 4, self.RULE_text)
|
| 353 |
+
self._la = 0 # Token type
|
| 354 |
+
try:
|
| 355 |
+
self.enterOuterAlt(localctx, 1)
|
| 356 |
+
self.state = 44
|
| 357 |
+
self._errHandler.sync(self)
|
| 358 |
+
_la = self._input.LA(1)
|
| 359 |
+
while True:
|
| 360 |
+
self.state = 44
|
| 361 |
+
self._errHandler.sync(self)
|
| 362 |
+
token = self._input.LA(1)
|
| 363 |
+
if token in [OmegaConfGrammarParser.INTER_OPEN]:
|
| 364 |
+
self.state = 38
|
| 365 |
+
self.interpolation()
|
| 366 |
+
pass
|
| 367 |
+
elif token in [OmegaConfGrammarParser.ANY_STR]:
|
| 368 |
+
self.state = 39
|
| 369 |
+
self.match(OmegaConfGrammarParser.ANY_STR)
|
| 370 |
+
pass
|
| 371 |
+
elif token in [OmegaConfGrammarParser.ESC]:
|
| 372 |
+
self.state = 40
|
| 373 |
+
self.match(OmegaConfGrammarParser.ESC)
|
| 374 |
+
pass
|
| 375 |
+
elif token in [OmegaConfGrammarParser.ESC_INTER]:
|
| 376 |
+
self.state = 41
|
| 377 |
+
self.match(OmegaConfGrammarParser.ESC_INTER)
|
| 378 |
+
pass
|
| 379 |
+
elif token in [OmegaConfGrammarParser.TOP_ESC]:
|
| 380 |
+
self.state = 42
|
| 381 |
+
self.match(OmegaConfGrammarParser.TOP_ESC)
|
| 382 |
+
pass
|
| 383 |
+
elif token in [OmegaConfGrammarParser.QUOTED_ESC]:
|
| 384 |
+
self.state = 43
|
| 385 |
+
self.match(OmegaConfGrammarParser.QUOTED_ESC)
|
| 386 |
+
pass
|
| 387 |
+
else:
|
| 388 |
+
raise NoViableAltException(self)
|
| 389 |
+
|
| 390 |
+
self.state = 46
|
| 391 |
+
self._errHandler.sync(self)
|
| 392 |
+
_la = self._input.LA(1)
|
| 393 |
+
if not ((((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << OmegaConfGrammarParser.ANY_STR) | (1 << OmegaConfGrammarParser.ESC_INTER) | (1 << OmegaConfGrammarParser.TOP_ESC) | (1 << OmegaConfGrammarParser.INTER_OPEN) | (1 << OmegaConfGrammarParser.ESC) | (1 << OmegaConfGrammarParser.QUOTED_ESC))) != 0)):
|
| 394 |
+
break
|
| 395 |
+
|
| 396 |
+
except RecognitionException as re:
|
| 397 |
+
localctx.exception = re
|
| 398 |
+
self._errHandler.reportError(self, re)
|
| 399 |
+
self._errHandler.recover(self, re)
|
| 400 |
+
finally:
|
| 401 |
+
self.exitRule()
|
| 402 |
+
return localctx
|
| 403 |
+
|
| 404 |
+
|
| 405 |
+
class ElementContext(ParserRuleContext):
|
| 406 |
+
__slots__ = 'parser'
|
| 407 |
+
|
| 408 |
+
def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
|
| 409 |
+
super().__init__(parent, invokingState)
|
| 410 |
+
self.parser = parser
|
| 411 |
+
|
| 412 |
+
def primitive(self):
|
| 413 |
+
return self.getTypedRuleContext(OmegaConfGrammarParser.PrimitiveContext,0)
|
| 414 |
+
|
| 415 |
+
|
| 416 |
+
def quotedValue(self):
|
| 417 |
+
return self.getTypedRuleContext(OmegaConfGrammarParser.QuotedValueContext,0)
|
| 418 |
+
|
| 419 |
+
|
| 420 |
+
def listContainer(self):
|
| 421 |
+
return self.getTypedRuleContext(OmegaConfGrammarParser.ListContainerContext,0)
|
| 422 |
+
|
| 423 |
+
|
| 424 |
+
def dictContainer(self):
|
| 425 |
+
return self.getTypedRuleContext(OmegaConfGrammarParser.DictContainerContext,0)
|
| 426 |
+
|
| 427 |
+
|
| 428 |
+
def getRuleIndex(self):
|
| 429 |
+
return OmegaConfGrammarParser.RULE_element
|
| 430 |
+
|
| 431 |
+
def enterRule(self, listener:ParseTreeListener):
|
| 432 |
+
if hasattr( listener, "enterElement" ):
|
| 433 |
+
listener.enterElement(self)
|
| 434 |
+
|
| 435 |
+
def exitRule(self, listener:ParseTreeListener):
|
| 436 |
+
if hasattr( listener, "exitElement" ):
|
| 437 |
+
listener.exitElement(self)
|
| 438 |
+
|
| 439 |
+
def accept(self, visitor:ParseTreeVisitor):
|
| 440 |
+
if hasattr( visitor, "visitElement" ):
|
| 441 |
+
return visitor.visitElement(self)
|
| 442 |
+
else:
|
| 443 |
+
return visitor.visitChildren(self)
|
| 444 |
+
|
| 445 |
+
|
| 446 |
+
|
| 447 |
+
|
| 448 |
+
def element(self):
|
| 449 |
+
|
| 450 |
+
localctx = OmegaConfGrammarParser.ElementContext(self, self._ctx, self.state)
|
| 451 |
+
self.enterRule(localctx, 6, self.RULE_element)
|
| 452 |
+
try:
|
| 453 |
+
self.state = 52
|
| 454 |
+
self._errHandler.sync(self)
|
| 455 |
+
token = self._input.LA(1)
|
| 456 |
+
if token in [OmegaConfGrammarParser.INTER_OPEN, OmegaConfGrammarParser.COLON, OmegaConfGrammarParser.FLOAT, OmegaConfGrammarParser.INT, OmegaConfGrammarParser.BOOL, OmegaConfGrammarParser.NULL, OmegaConfGrammarParser.UNQUOTED_CHAR, OmegaConfGrammarParser.ID, OmegaConfGrammarParser.ESC, OmegaConfGrammarParser.WS]:
|
| 457 |
+
self.enterOuterAlt(localctx, 1)
|
| 458 |
+
self.state = 48
|
| 459 |
+
self.primitive()
|
| 460 |
+
pass
|
| 461 |
+
elif token in [OmegaConfGrammarParser.QUOTE_OPEN_SINGLE, OmegaConfGrammarParser.QUOTE_OPEN_DOUBLE]:
|
| 462 |
+
self.enterOuterAlt(localctx, 2)
|
| 463 |
+
self.state = 49
|
| 464 |
+
self.quotedValue()
|
| 465 |
+
pass
|
| 466 |
+
elif token in [OmegaConfGrammarParser.BRACKET_OPEN]:
|
| 467 |
+
self.enterOuterAlt(localctx, 3)
|
| 468 |
+
self.state = 50
|
| 469 |
+
self.listContainer()
|
| 470 |
+
pass
|
| 471 |
+
elif token in [OmegaConfGrammarParser.BRACE_OPEN]:
|
| 472 |
+
self.enterOuterAlt(localctx, 4)
|
| 473 |
+
self.state = 51
|
| 474 |
+
self.dictContainer()
|
| 475 |
+
pass
|
| 476 |
+
else:
|
| 477 |
+
raise NoViableAltException(self)
|
| 478 |
+
|
| 479 |
+
except RecognitionException as re:
|
| 480 |
+
localctx.exception = re
|
| 481 |
+
self._errHandler.reportError(self, re)
|
| 482 |
+
self._errHandler.recover(self, re)
|
| 483 |
+
finally:
|
| 484 |
+
self.exitRule()
|
| 485 |
+
return localctx
|
| 486 |
+
|
| 487 |
+
|
| 488 |
+
class ListContainerContext(ParserRuleContext):
|
| 489 |
+
__slots__ = 'parser'
|
| 490 |
+
|
| 491 |
+
def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
|
| 492 |
+
super().__init__(parent, invokingState)
|
| 493 |
+
self.parser = parser
|
| 494 |
+
|
| 495 |
+
def BRACKET_OPEN(self):
|
| 496 |
+
return self.getToken(OmegaConfGrammarParser.BRACKET_OPEN, 0)
|
| 497 |
+
|
| 498 |
+
def BRACKET_CLOSE(self):
|
| 499 |
+
return self.getToken(OmegaConfGrammarParser.BRACKET_CLOSE, 0)
|
| 500 |
+
|
| 501 |
+
def sequence(self):
|
| 502 |
+
return self.getTypedRuleContext(OmegaConfGrammarParser.SequenceContext,0)
|
| 503 |
+
|
| 504 |
+
|
| 505 |
+
def getRuleIndex(self):
|
| 506 |
+
return OmegaConfGrammarParser.RULE_listContainer
|
| 507 |
+
|
| 508 |
+
def enterRule(self, listener:ParseTreeListener):
|
| 509 |
+
if hasattr( listener, "enterListContainer" ):
|
| 510 |
+
listener.enterListContainer(self)
|
| 511 |
+
|
| 512 |
+
def exitRule(self, listener:ParseTreeListener):
|
| 513 |
+
if hasattr( listener, "exitListContainer" ):
|
| 514 |
+
listener.exitListContainer(self)
|
| 515 |
+
|
| 516 |
+
def accept(self, visitor:ParseTreeVisitor):
|
| 517 |
+
if hasattr( visitor, "visitListContainer" ):
|
| 518 |
+
return visitor.visitListContainer(self)
|
| 519 |
+
else:
|
| 520 |
+
return visitor.visitChildren(self)
|
| 521 |
+
|
| 522 |
+
|
| 523 |
+
|
| 524 |
+
|
| 525 |
+
def listContainer(self):
|
| 526 |
+
|
| 527 |
+
localctx = OmegaConfGrammarParser.ListContainerContext(self, self._ctx, self.state)
|
| 528 |
+
self.enterRule(localctx, 8, self.RULE_listContainer)
|
| 529 |
+
self._la = 0 # Token type
|
| 530 |
+
try:
|
| 531 |
+
self.enterOuterAlt(localctx, 1)
|
| 532 |
+
self.state = 54
|
| 533 |
+
self.match(OmegaConfGrammarParser.BRACKET_OPEN)
|
| 534 |
+
self.state = 56
|
| 535 |
+
self._errHandler.sync(self)
|
| 536 |
+
_la = self._input.LA(1)
|
| 537 |
+
if (((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << OmegaConfGrammarParser.INTER_OPEN) | (1 << OmegaConfGrammarParser.BRACE_OPEN) | (1 << OmegaConfGrammarParser.QUOTE_OPEN_SINGLE) | (1 << OmegaConfGrammarParser.QUOTE_OPEN_DOUBLE) | (1 << OmegaConfGrammarParser.COMMA) | (1 << OmegaConfGrammarParser.BRACKET_OPEN) | (1 << OmegaConfGrammarParser.COLON) | (1 << OmegaConfGrammarParser.FLOAT) | (1 << OmegaConfGrammarParser.INT) | (1 << OmegaConfGrammarParser.BOOL) | (1 << OmegaConfGrammarParser.NULL) | (1 << OmegaConfGrammarParser.UNQUOTED_CHAR) | (1 << OmegaConfGrammarParser.ID) | (1 << OmegaConfGrammarParser.ESC) | (1 << OmegaConfGrammarParser.WS))) != 0):
|
| 538 |
+
self.state = 55
|
| 539 |
+
self.sequence()
|
| 540 |
+
|
| 541 |
+
|
| 542 |
+
self.state = 58
|
| 543 |
+
self.match(OmegaConfGrammarParser.BRACKET_CLOSE)
|
| 544 |
+
except RecognitionException as re:
|
| 545 |
+
localctx.exception = re
|
| 546 |
+
self._errHandler.reportError(self, re)
|
| 547 |
+
self._errHandler.recover(self, re)
|
| 548 |
+
finally:
|
| 549 |
+
self.exitRule()
|
| 550 |
+
return localctx
|
| 551 |
+
|
| 552 |
+
|
| 553 |
+
class DictContainerContext(ParserRuleContext):
|
| 554 |
+
__slots__ = 'parser'
|
| 555 |
+
|
| 556 |
+
def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
|
| 557 |
+
super().__init__(parent, invokingState)
|
| 558 |
+
self.parser = parser
|
| 559 |
+
|
| 560 |
+
def BRACE_OPEN(self):
|
| 561 |
+
return self.getToken(OmegaConfGrammarParser.BRACE_OPEN, 0)
|
| 562 |
+
|
| 563 |
+
def BRACE_CLOSE(self):
|
| 564 |
+
return self.getToken(OmegaConfGrammarParser.BRACE_CLOSE, 0)
|
| 565 |
+
|
| 566 |
+
def dictKeyValuePair(self, i:int=None):
|
| 567 |
+
if i is None:
|
| 568 |
+
return self.getTypedRuleContexts(OmegaConfGrammarParser.DictKeyValuePairContext)
|
| 569 |
+
else:
|
| 570 |
+
return self.getTypedRuleContext(OmegaConfGrammarParser.DictKeyValuePairContext,i)
|
| 571 |
+
|
| 572 |
+
|
| 573 |
+
def COMMA(self, i:int=None):
|
| 574 |
+
if i is None:
|
| 575 |
+
return self.getTokens(OmegaConfGrammarParser.COMMA)
|
| 576 |
+
else:
|
| 577 |
+
return self.getToken(OmegaConfGrammarParser.COMMA, i)
|
| 578 |
+
|
| 579 |
+
def getRuleIndex(self):
|
| 580 |
+
return OmegaConfGrammarParser.RULE_dictContainer
|
| 581 |
+
|
| 582 |
+
def enterRule(self, listener:ParseTreeListener):
|
| 583 |
+
if hasattr( listener, "enterDictContainer" ):
|
| 584 |
+
listener.enterDictContainer(self)
|
| 585 |
+
|
| 586 |
+
def exitRule(self, listener:ParseTreeListener):
|
| 587 |
+
if hasattr( listener, "exitDictContainer" ):
|
| 588 |
+
listener.exitDictContainer(self)
|
| 589 |
+
|
| 590 |
+
def accept(self, visitor:ParseTreeVisitor):
|
| 591 |
+
if hasattr( visitor, "visitDictContainer" ):
|
| 592 |
+
return visitor.visitDictContainer(self)
|
| 593 |
+
else:
|
| 594 |
+
return visitor.visitChildren(self)
|
| 595 |
+
|
| 596 |
+
|
| 597 |
+
|
| 598 |
+
|
| 599 |
+
def dictContainer(self):
|
| 600 |
+
|
| 601 |
+
localctx = OmegaConfGrammarParser.DictContainerContext(self, self._ctx, self.state)
|
| 602 |
+
self.enterRule(localctx, 10, self.RULE_dictContainer)
|
| 603 |
+
self._la = 0 # Token type
|
| 604 |
+
try:
|
| 605 |
+
self.enterOuterAlt(localctx, 1)
|
| 606 |
+
self.state = 60
|
| 607 |
+
self.match(OmegaConfGrammarParser.BRACE_OPEN)
|
| 608 |
+
self.state = 69
|
| 609 |
+
self._errHandler.sync(self)
|
| 610 |
+
_la = self._input.LA(1)
|
| 611 |
+
if (((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << OmegaConfGrammarParser.FLOAT) | (1 << OmegaConfGrammarParser.INT) | (1 << OmegaConfGrammarParser.BOOL) | (1 << OmegaConfGrammarParser.NULL) | (1 << OmegaConfGrammarParser.UNQUOTED_CHAR) | (1 << OmegaConfGrammarParser.ID) | (1 << OmegaConfGrammarParser.ESC) | (1 << OmegaConfGrammarParser.WS))) != 0):
|
| 612 |
+
self.state = 61
|
| 613 |
+
self.dictKeyValuePair()
|
| 614 |
+
self.state = 66
|
| 615 |
+
self._errHandler.sync(self)
|
| 616 |
+
_la = self._input.LA(1)
|
| 617 |
+
while _la==OmegaConfGrammarParser.COMMA:
|
| 618 |
+
self.state = 62
|
| 619 |
+
self.match(OmegaConfGrammarParser.COMMA)
|
| 620 |
+
self.state = 63
|
| 621 |
+
self.dictKeyValuePair()
|
| 622 |
+
self.state = 68
|
| 623 |
+
self._errHandler.sync(self)
|
| 624 |
+
_la = self._input.LA(1)
|
| 625 |
+
|
| 626 |
+
|
| 627 |
+
|
| 628 |
+
self.state = 71
|
| 629 |
+
self.match(OmegaConfGrammarParser.BRACE_CLOSE)
|
| 630 |
+
except RecognitionException as re:
|
| 631 |
+
localctx.exception = re
|
| 632 |
+
self._errHandler.reportError(self, re)
|
| 633 |
+
self._errHandler.recover(self, re)
|
| 634 |
+
finally:
|
| 635 |
+
self.exitRule()
|
| 636 |
+
return localctx
|
| 637 |
+
|
| 638 |
+
|
| 639 |
+
class DictKeyValuePairContext(ParserRuleContext):
|
| 640 |
+
__slots__ = 'parser'
|
| 641 |
+
|
| 642 |
+
def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
|
| 643 |
+
super().__init__(parent, invokingState)
|
| 644 |
+
self.parser = parser
|
| 645 |
+
|
| 646 |
+
def dictKey(self):
|
| 647 |
+
return self.getTypedRuleContext(OmegaConfGrammarParser.DictKeyContext,0)
|
| 648 |
+
|
| 649 |
+
|
| 650 |
+
def COLON(self):
|
| 651 |
+
return self.getToken(OmegaConfGrammarParser.COLON, 0)
|
| 652 |
+
|
| 653 |
+
def element(self):
|
| 654 |
+
return self.getTypedRuleContext(OmegaConfGrammarParser.ElementContext,0)
|
| 655 |
+
|
| 656 |
+
|
| 657 |
+
def getRuleIndex(self):
|
| 658 |
+
return OmegaConfGrammarParser.RULE_dictKeyValuePair
|
| 659 |
+
|
| 660 |
+
def enterRule(self, listener:ParseTreeListener):
|
| 661 |
+
if hasattr( listener, "enterDictKeyValuePair" ):
|
| 662 |
+
listener.enterDictKeyValuePair(self)
|
| 663 |
+
|
| 664 |
+
def exitRule(self, listener:ParseTreeListener):
|
| 665 |
+
if hasattr( listener, "exitDictKeyValuePair" ):
|
| 666 |
+
listener.exitDictKeyValuePair(self)
|
| 667 |
+
|
| 668 |
+
def accept(self, visitor:ParseTreeVisitor):
|
| 669 |
+
if hasattr( visitor, "visitDictKeyValuePair" ):
|
| 670 |
+
return visitor.visitDictKeyValuePair(self)
|
| 671 |
+
else:
|
| 672 |
+
return visitor.visitChildren(self)
|
| 673 |
+
|
| 674 |
+
|
| 675 |
+
|
| 676 |
+
|
| 677 |
+
def dictKeyValuePair(self):
|
| 678 |
+
|
| 679 |
+
localctx = OmegaConfGrammarParser.DictKeyValuePairContext(self, self._ctx, self.state)
|
| 680 |
+
self.enterRule(localctx, 12, self.RULE_dictKeyValuePair)
|
| 681 |
+
try:
|
| 682 |
+
self.enterOuterAlt(localctx, 1)
|
| 683 |
+
self.state = 73
|
| 684 |
+
self.dictKey()
|
| 685 |
+
self.state = 74
|
| 686 |
+
self.match(OmegaConfGrammarParser.COLON)
|
| 687 |
+
self.state = 75
|
| 688 |
+
self.element()
|
| 689 |
+
except RecognitionException as re:
|
| 690 |
+
localctx.exception = re
|
| 691 |
+
self._errHandler.reportError(self, re)
|
| 692 |
+
self._errHandler.recover(self, re)
|
| 693 |
+
finally:
|
| 694 |
+
self.exitRule()
|
| 695 |
+
return localctx
|
| 696 |
+
|
| 697 |
+
|
| 698 |
+
class SequenceContext(ParserRuleContext):
|
| 699 |
+
__slots__ = 'parser'
|
| 700 |
+
|
| 701 |
+
def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
|
| 702 |
+
super().__init__(parent, invokingState)
|
| 703 |
+
self.parser = parser
|
| 704 |
+
|
| 705 |
+
def element(self, i:int=None):
|
| 706 |
+
if i is None:
|
| 707 |
+
return self.getTypedRuleContexts(OmegaConfGrammarParser.ElementContext)
|
| 708 |
+
else:
|
| 709 |
+
return self.getTypedRuleContext(OmegaConfGrammarParser.ElementContext,i)
|
| 710 |
+
|
| 711 |
+
|
| 712 |
+
def COMMA(self, i:int=None):
|
| 713 |
+
if i is None:
|
| 714 |
+
return self.getTokens(OmegaConfGrammarParser.COMMA)
|
| 715 |
+
else:
|
| 716 |
+
return self.getToken(OmegaConfGrammarParser.COMMA, i)
|
| 717 |
+
|
| 718 |
+
def getRuleIndex(self):
|
| 719 |
+
return OmegaConfGrammarParser.RULE_sequence
|
| 720 |
+
|
| 721 |
+
def enterRule(self, listener:ParseTreeListener):
|
| 722 |
+
if hasattr( listener, "enterSequence" ):
|
| 723 |
+
listener.enterSequence(self)
|
| 724 |
+
|
| 725 |
+
def exitRule(self, listener:ParseTreeListener):
|
| 726 |
+
if hasattr( listener, "exitSequence" ):
|
| 727 |
+
listener.exitSequence(self)
|
| 728 |
+
|
| 729 |
+
def accept(self, visitor:ParseTreeVisitor):
|
| 730 |
+
if hasattr( visitor, "visitSequence" ):
|
| 731 |
+
return visitor.visitSequence(self)
|
| 732 |
+
else:
|
| 733 |
+
return visitor.visitChildren(self)
|
| 734 |
+
|
| 735 |
+
|
| 736 |
+
|
| 737 |
+
|
| 738 |
+
def sequence(self):
|
| 739 |
+
|
| 740 |
+
localctx = OmegaConfGrammarParser.SequenceContext(self, self._ctx, self.state)
|
| 741 |
+
self.enterRule(localctx, 14, self.RULE_sequence)
|
| 742 |
+
self._la = 0 # Token type
|
| 743 |
+
try:
|
| 744 |
+
self.state = 95
|
| 745 |
+
self._errHandler.sync(self)
|
| 746 |
+
token = self._input.LA(1)
|
| 747 |
+
if token in [OmegaConfGrammarParser.INTER_OPEN, OmegaConfGrammarParser.BRACE_OPEN, OmegaConfGrammarParser.QUOTE_OPEN_SINGLE, OmegaConfGrammarParser.QUOTE_OPEN_DOUBLE, OmegaConfGrammarParser.BRACKET_OPEN, OmegaConfGrammarParser.COLON, OmegaConfGrammarParser.FLOAT, OmegaConfGrammarParser.INT, OmegaConfGrammarParser.BOOL, OmegaConfGrammarParser.NULL, OmegaConfGrammarParser.UNQUOTED_CHAR, OmegaConfGrammarParser.ID, OmegaConfGrammarParser.ESC, OmegaConfGrammarParser.WS]:
|
| 748 |
+
self.enterOuterAlt(localctx, 1)
|
| 749 |
+
self.state = 77
|
| 750 |
+
self.element()
|
| 751 |
+
self.state = 84
|
| 752 |
+
self._errHandler.sync(self)
|
| 753 |
+
_la = self._input.LA(1)
|
| 754 |
+
while _la==OmegaConfGrammarParser.COMMA:
|
| 755 |
+
self.state = 78
|
| 756 |
+
self.match(OmegaConfGrammarParser.COMMA)
|
| 757 |
+
self.state = 80
|
| 758 |
+
self._errHandler.sync(self)
|
| 759 |
+
_la = self._input.LA(1)
|
| 760 |
+
if (((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << OmegaConfGrammarParser.INTER_OPEN) | (1 << OmegaConfGrammarParser.BRACE_OPEN) | (1 << OmegaConfGrammarParser.QUOTE_OPEN_SINGLE) | (1 << OmegaConfGrammarParser.QUOTE_OPEN_DOUBLE) | (1 << OmegaConfGrammarParser.BRACKET_OPEN) | (1 << OmegaConfGrammarParser.COLON) | (1 << OmegaConfGrammarParser.FLOAT) | (1 << OmegaConfGrammarParser.INT) | (1 << OmegaConfGrammarParser.BOOL) | (1 << OmegaConfGrammarParser.NULL) | (1 << OmegaConfGrammarParser.UNQUOTED_CHAR) | (1 << OmegaConfGrammarParser.ID) | (1 << OmegaConfGrammarParser.ESC) | (1 << OmegaConfGrammarParser.WS))) != 0):
|
| 761 |
+
self.state = 79
|
| 762 |
+
self.element()
|
| 763 |
+
|
| 764 |
+
|
| 765 |
+
self.state = 86
|
| 766 |
+
self._errHandler.sync(self)
|
| 767 |
+
_la = self._input.LA(1)
|
| 768 |
+
|
| 769 |
+
pass
|
| 770 |
+
elif token in [OmegaConfGrammarParser.COMMA]:
|
| 771 |
+
self.enterOuterAlt(localctx, 2)
|
| 772 |
+
self.state = 91
|
| 773 |
+
self._errHandler.sync(self)
|
| 774 |
+
_la = self._input.LA(1)
|
| 775 |
+
while True:
|
| 776 |
+
self.state = 87
|
| 777 |
+
self.match(OmegaConfGrammarParser.COMMA)
|
| 778 |
+
self.state = 89
|
| 779 |
+
self._errHandler.sync(self)
|
| 780 |
+
_la = self._input.LA(1)
|
| 781 |
+
if (((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << OmegaConfGrammarParser.INTER_OPEN) | (1 << OmegaConfGrammarParser.BRACE_OPEN) | (1 << OmegaConfGrammarParser.QUOTE_OPEN_SINGLE) | (1 << OmegaConfGrammarParser.QUOTE_OPEN_DOUBLE) | (1 << OmegaConfGrammarParser.BRACKET_OPEN) | (1 << OmegaConfGrammarParser.COLON) | (1 << OmegaConfGrammarParser.FLOAT) | (1 << OmegaConfGrammarParser.INT) | (1 << OmegaConfGrammarParser.BOOL) | (1 << OmegaConfGrammarParser.NULL) | (1 << OmegaConfGrammarParser.UNQUOTED_CHAR) | (1 << OmegaConfGrammarParser.ID) | (1 << OmegaConfGrammarParser.ESC) | (1 << OmegaConfGrammarParser.WS))) != 0):
|
| 782 |
+
self.state = 88
|
| 783 |
+
self.element()
|
| 784 |
+
|
| 785 |
+
|
| 786 |
+
self.state = 93
|
| 787 |
+
self._errHandler.sync(self)
|
| 788 |
+
_la = self._input.LA(1)
|
| 789 |
+
if not (_la==OmegaConfGrammarParser.COMMA):
|
| 790 |
+
break
|
| 791 |
+
|
| 792 |
+
pass
|
| 793 |
+
else:
|
| 794 |
+
raise NoViableAltException(self)
|
| 795 |
+
|
| 796 |
+
except RecognitionException as re:
|
| 797 |
+
localctx.exception = re
|
| 798 |
+
self._errHandler.reportError(self, re)
|
| 799 |
+
self._errHandler.recover(self, re)
|
| 800 |
+
finally:
|
| 801 |
+
self.exitRule()
|
| 802 |
+
return localctx
|
| 803 |
+
|
| 804 |
+
|
| 805 |
+
class InterpolationContext(ParserRuleContext):
|
| 806 |
+
__slots__ = 'parser'
|
| 807 |
+
|
| 808 |
+
def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
|
| 809 |
+
super().__init__(parent, invokingState)
|
| 810 |
+
self.parser = parser
|
| 811 |
+
|
| 812 |
+
def interpolationNode(self):
|
| 813 |
+
return self.getTypedRuleContext(OmegaConfGrammarParser.InterpolationNodeContext,0)
|
| 814 |
+
|
| 815 |
+
|
| 816 |
+
def interpolationResolver(self):
|
| 817 |
+
return self.getTypedRuleContext(OmegaConfGrammarParser.InterpolationResolverContext,0)
|
| 818 |
+
|
| 819 |
+
|
| 820 |
+
def getRuleIndex(self):
|
| 821 |
+
return OmegaConfGrammarParser.RULE_interpolation
|
| 822 |
+
|
| 823 |
+
def enterRule(self, listener:ParseTreeListener):
|
| 824 |
+
if hasattr( listener, "enterInterpolation" ):
|
| 825 |
+
listener.enterInterpolation(self)
|
| 826 |
+
|
| 827 |
+
def exitRule(self, listener:ParseTreeListener):
|
| 828 |
+
if hasattr( listener, "exitInterpolation" ):
|
| 829 |
+
listener.exitInterpolation(self)
|
| 830 |
+
|
| 831 |
+
def accept(self, visitor:ParseTreeVisitor):
|
| 832 |
+
if hasattr( visitor, "visitInterpolation" ):
|
| 833 |
+
return visitor.visitInterpolation(self)
|
| 834 |
+
else:
|
| 835 |
+
return visitor.visitChildren(self)
|
| 836 |
+
|
| 837 |
+
|
| 838 |
+
|
| 839 |
+
|
| 840 |
+
def interpolation(self):
|
| 841 |
+
|
| 842 |
+
localctx = OmegaConfGrammarParser.InterpolationContext(self, self._ctx, self.state)
|
| 843 |
+
self.enterRule(localctx, 16, self.RULE_interpolation)
|
| 844 |
+
try:
|
| 845 |
+
self.state = 99
|
| 846 |
+
self._errHandler.sync(self)
|
| 847 |
+
la_ = self._interp.adaptivePredict(self._input,11,self._ctx)
|
| 848 |
+
if la_ == 1:
|
| 849 |
+
self.enterOuterAlt(localctx, 1)
|
| 850 |
+
self.state = 97
|
| 851 |
+
self.interpolationNode()
|
| 852 |
+
pass
|
| 853 |
+
|
| 854 |
+
elif la_ == 2:
|
| 855 |
+
self.enterOuterAlt(localctx, 2)
|
| 856 |
+
self.state = 98
|
| 857 |
+
self.interpolationResolver()
|
| 858 |
+
pass
|
| 859 |
+
|
| 860 |
+
|
| 861 |
+
except RecognitionException as re:
|
| 862 |
+
localctx.exception = re
|
| 863 |
+
self._errHandler.reportError(self, re)
|
| 864 |
+
self._errHandler.recover(self, re)
|
| 865 |
+
finally:
|
| 866 |
+
self.exitRule()
|
| 867 |
+
return localctx
|
| 868 |
+
|
| 869 |
+
|
| 870 |
+
class InterpolationNodeContext(ParserRuleContext):
|
| 871 |
+
__slots__ = 'parser'
|
| 872 |
+
|
| 873 |
+
def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
|
| 874 |
+
super().__init__(parent, invokingState)
|
| 875 |
+
self.parser = parser
|
| 876 |
+
|
| 877 |
+
def INTER_OPEN(self):
|
| 878 |
+
return self.getToken(OmegaConfGrammarParser.INTER_OPEN, 0)
|
| 879 |
+
|
| 880 |
+
def INTER_CLOSE(self):
|
| 881 |
+
return self.getToken(OmegaConfGrammarParser.INTER_CLOSE, 0)
|
| 882 |
+
|
| 883 |
+
def configKey(self, i:int=None):
|
| 884 |
+
if i is None:
|
| 885 |
+
return self.getTypedRuleContexts(OmegaConfGrammarParser.ConfigKeyContext)
|
| 886 |
+
else:
|
| 887 |
+
return self.getTypedRuleContext(OmegaConfGrammarParser.ConfigKeyContext,i)
|
| 888 |
+
|
| 889 |
+
|
| 890 |
+
def BRACKET_OPEN(self, i:int=None):
|
| 891 |
+
if i is None:
|
| 892 |
+
return self.getTokens(OmegaConfGrammarParser.BRACKET_OPEN)
|
| 893 |
+
else:
|
| 894 |
+
return self.getToken(OmegaConfGrammarParser.BRACKET_OPEN, i)
|
| 895 |
+
|
| 896 |
+
def BRACKET_CLOSE(self, i:int=None):
|
| 897 |
+
if i is None:
|
| 898 |
+
return self.getTokens(OmegaConfGrammarParser.BRACKET_CLOSE)
|
| 899 |
+
else:
|
| 900 |
+
return self.getToken(OmegaConfGrammarParser.BRACKET_CLOSE, i)
|
| 901 |
+
|
| 902 |
+
def DOT(self, i:int=None):
|
| 903 |
+
if i is None:
|
| 904 |
+
return self.getTokens(OmegaConfGrammarParser.DOT)
|
| 905 |
+
else:
|
| 906 |
+
return self.getToken(OmegaConfGrammarParser.DOT, i)
|
| 907 |
+
|
| 908 |
+
def getRuleIndex(self):
|
| 909 |
+
return OmegaConfGrammarParser.RULE_interpolationNode
|
| 910 |
+
|
| 911 |
+
def enterRule(self, listener:ParseTreeListener):
|
| 912 |
+
if hasattr( listener, "enterInterpolationNode" ):
|
| 913 |
+
listener.enterInterpolationNode(self)
|
| 914 |
+
|
| 915 |
+
def exitRule(self, listener:ParseTreeListener):
|
| 916 |
+
if hasattr( listener, "exitInterpolationNode" ):
|
| 917 |
+
listener.exitInterpolationNode(self)
|
| 918 |
+
|
| 919 |
+
def accept(self, visitor:ParseTreeVisitor):
|
| 920 |
+
if hasattr( visitor, "visitInterpolationNode" ):
|
| 921 |
+
return visitor.visitInterpolationNode(self)
|
| 922 |
+
else:
|
| 923 |
+
return visitor.visitChildren(self)
|
| 924 |
+
|
| 925 |
+
|
| 926 |
+
|
| 927 |
+
|
| 928 |
+
def interpolationNode(self):
|
| 929 |
+
|
| 930 |
+
localctx = OmegaConfGrammarParser.InterpolationNodeContext(self, self._ctx, self.state)
|
| 931 |
+
self.enterRule(localctx, 18, self.RULE_interpolationNode)
|
| 932 |
+
self._la = 0 # Token type
|
| 933 |
+
try:
|
| 934 |
+
self.enterOuterAlt(localctx, 1)
|
| 935 |
+
self.state = 101
|
| 936 |
+
self.match(OmegaConfGrammarParser.INTER_OPEN)
|
| 937 |
+
self.state = 105
|
| 938 |
+
self._errHandler.sync(self)
|
| 939 |
+
_la = self._input.LA(1)
|
| 940 |
+
while _la==OmegaConfGrammarParser.DOT:
|
| 941 |
+
self.state = 102
|
| 942 |
+
self.match(OmegaConfGrammarParser.DOT)
|
| 943 |
+
self.state = 107
|
| 944 |
+
self._errHandler.sync(self)
|
| 945 |
+
_la = self._input.LA(1)
|
| 946 |
+
|
| 947 |
+
self.state = 113
|
| 948 |
+
self._errHandler.sync(self)
|
| 949 |
+
token = self._input.LA(1)
|
| 950 |
+
if token in [OmegaConfGrammarParser.INTER_OPEN, OmegaConfGrammarParser.ID, OmegaConfGrammarParser.INTER_KEY]:
|
| 951 |
+
self.state = 108
|
| 952 |
+
self.configKey()
|
| 953 |
+
pass
|
| 954 |
+
elif token in [OmegaConfGrammarParser.BRACKET_OPEN]:
|
| 955 |
+
self.state = 109
|
| 956 |
+
self.match(OmegaConfGrammarParser.BRACKET_OPEN)
|
| 957 |
+
self.state = 110
|
| 958 |
+
self.configKey()
|
| 959 |
+
self.state = 111
|
| 960 |
+
self.match(OmegaConfGrammarParser.BRACKET_CLOSE)
|
| 961 |
+
pass
|
| 962 |
+
else:
|
| 963 |
+
raise NoViableAltException(self)
|
| 964 |
+
|
| 965 |
+
self.state = 123
|
| 966 |
+
self._errHandler.sync(self)
|
| 967 |
+
_la = self._input.LA(1)
|
| 968 |
+
while _la==OmegaConfGrammarParser.BRACKET_OPEN or _la==OmegaConfGrammarParser.DOT:
|
| 969 |
+
self.state = 121
|
| 970 |
+
self._errHandler.sync(self)
|
| 971 |
+
token = self._input.LA(1)
|
| 972 |
+
if token in [OmegaConfGrammarParser.DOT]:
|
| 973 |
+
self.state = 115
|
| 974 |
+
self.match(OmegaConfGrammarParser.DOT)
|
| 975 |
+
self.state = 116
|
| 976 |
+
self.configKey()
|
| 977 |
+
pass
|
| 978 |
+
elif token in [OmegaConfGrammarParser.BRACKET_OPEN]:
|
| 979 |
+
self.state = 117
|
| 980 |
+
self.match(OmegaConfGrammarParser.BRACKET_OPEN)
|
| 981 |
+
self.state = 118
|
| 982 |
+
self.configKey()
|
| 983 |
+
self.state = 119
|
| 984 |
+
self.match(OmegaConfGrammarParser.BRACKET_CLOSE)
|
| 985 |
+
pass
|
| 986 |
+
else:
|
| 987 |
+
raise NoViableAltException(self)
|
| 988 |
+
|
| 989 |
+
self.state = 125
|
| 990 |
+
self._errHandler.sync(self)
|
| 991 |
+
_la = self._input.LA(1)
|
| 992 |
+
|
| 993 |
+
self.state = 126
|
| 994 |
+
self.match(OmegaConfGrammarParser.INTER_CLOSE)
|
| 995 |
+
except RecognitionException as re:
|
| 996 |
+
localctx.exception = re
|
| 997 |
+
self._errHandler.reportError(self, re)
|
| 998 |
+
self._errHandler.recover(self, re)
|
| 999 |
+
finally:
|
| 1000 |
+
self.exitRule()
|
| 1001 |
+
return localctx
|
| 1002 |
+
|
| 1003 |
+
|
| 1004 |
+
class InterpolationResolverContext(ParserRuleContext):
|
| 1005 |
+
__slots__ = 'parser'
|
| 1006 |
+
|
| 1007 |
+
def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
|
| 1008 |
+
super().__init__(parent, invokingState)
|
| 1009 |
+
self.parser = parser
|
| 1010 |
+
|
| 1011 |
+
def INTER_OPEN(self):
|
| 1012 |
+
return self.getToken(OmegaConfGrammarParser.INTER_OPEN, 0)
|
| 1013 |
+
|
| 1014 |
+
def resolverName(self):
|
| 1015 |
+
return self.getTypedRuleContext(OmegaConfGrammarParser.ResolverNameContext,0)
|
| 1016 |
+
|
| 1017 |
+
|
| 1018 |
+
def COLON(self):
|
| 1019 |
+
return self.getToken(OmegaConfGrammarParser.COLON, 0)
|
| 1020 |
+
|
| 1021 |
+
def BRACE_CLOSE(self):
|
| 1022 |
+
return self.getToken(OmegaConfGrammarParser.BRACE_CLOSE, 0)
|
| 1023 |
+
|
| 1024 |
+
def sequence(self):
|
| 1025 |
+
return self.getTypedRuleContext(OmegaConfGrammarParser.SequenceContext,0)
|
| 1026 |
+
|
| 1027 |
+
|
| 1028 |
+
def getRuleIndex(self):
|
| 1029 |
+
return OmegaConfGrammarParser.RULE_interpolationResolver
|
| 1030 |
+
|
| 1031 |
+
def enterRule(self, listener:ParseTreeListener):
|
| 1032 |
+
if hasattr( listener, "enterInterpolationResolver" ):
|
| 1033 |
+
listener.enterInterpolationResolver(self)
|
| 1034 |
+
|
| 1035 |
+
def exitRule(self, listener:ParseTreeListener):
|
| 1036 |
+
if hasattr( listener, "exitInterpolationResolver" ):
|
| 1037 |
+
listener.exitInterpolationResolver(self)
|
| 1038 |
+
|
| 1039 |
+
def accept(self, visitor:ParseTreeVisitor):
|
| 1040 |
+
if hasattr( visitor, "visitInterpolationResolver" ):
|
| 1041 |
+
return visitor.visitInterpolationResolver(self)
|
| 1042 |
+
else:
|
| 1043 |
+
return visitor.visitChildren(self)
|
| 1044 |
+
|
| 1045 |
+
|
| 1046 |
+
|
| 1047 |
+
|
| 1048 |
+
def interpolationResolver(self):
|
| 1049 |
+
|
| 1050 |
+
localctx = OmegaConfGrammarParser.InterpolationResolverContext(self, self._ctx, self.state)
|
| 1051 |
+
self.enterRule(localctx, 20, self.RULE_interpolationResolver)
|
| 1052 |
+
self._la = 0 # Token type
|
| 1053 |
+
try:
|
| 1054 |
+
self.enterOuterAlt(localctx, 1)
|
| 1055 |
+
self.state = 128
|
| 1056 |
+
self.match(OmegaConfGrammarParser.INTER_OPEN)
|
| 1057 |
+
self.state = 129
|
| 1058 |
+
self.resolverName()
|
| 1059 |
+
self.state = 130
|
| 1060 |
+
self.match(OmegaConfGrammarParser.COLON)
|
| 1061 |
+
self.state = 132
|
| 1062 |
+
self._errHandler.sync(self)
|
| 1063 |
+
_la = self._input.LA(1)
|
| 1064 |
+
if (((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << OmegaConfGrammarParser.INTER_OPEN) | (1 << OmegaConfGrammarParser.BRACE_OPEN) | (1 << OmegaConfGrammarParser.QUOTE_OPEN_SINGLE) | (1 << OmegaConfGrammarParser.QUOTE_OPEN_DOUBLE) | (1 << OmegaConfGrammarParser.COMMA) | (1 << OmegaConfGrammarParser.BRACKET_OPEN) | (1 << OmegaConfGrammarParser.COLON) | (1 << OmegaConfGrammarParser.FLOAT) | (1 << OmegaConfGrammarParser.INT) | (1 << OmegaConfGrammarParser.BOOL) | (1 << OmegaConfGrammarParser.NULL) | (1 << OmegaConfGrammarParser.UNQUOTED_CHAR) | (1 << OmegaConfGrammarParser.ID) | (1 << OmegaConfGrammarParser.ESC) | (1 << OmegaConfGrammarParser.WS))) != 0):
|
| 1065 |
+
self.state = 131
|
| 1066 |
+
self.sequence()
|
| 1067 |
+
|
| 1068 |
+
|
| 1069 |
+
self.state = 134
|
| 1070 |
+
self.match(OmegaConfGrammarParser.BRACE_CLOSE)
|
| 1071 |
+
except RecognitionException as re:
|
| 1072 |
+
localctx.exception = re
|
| 1073 |
+
self._errHandler.reportError(self, re)
|
| 1074 |
+
self._errHandler.recover(self, re)
|
| 1075 |
+
finally:
|
| 1076 |
+
self.exitRule()
|
| 1077 |
+
return localctx
|
| 1078 |
+
|
| 1079 |
+
|
| 1080 |
+
class ConfigKeyContext(ParserRuleContext):
|
| 1081 |
+
__slots__ = 'parser'
|
| 1082 |
+
|
| 1083 |
+
def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
|
| 1084 |
+
super().__init__(parent, invokingState)
|
| 1085 |
+
self.parser = parser
|
| 1086 |
+
|
| 1087 |
+
def interpolation(self):
|
| 1088 |
+
return self.getTypedRuleContext(OmegaConfGrammarParser.InterpolationContext,0)
|
| 1089 |
+
|
| 1090 |
+
|
| 1091 |
+
def ID(self):
|
| 1092 |
+
return self.getToken(OmegaConfGrammarParser.ID, 0)
|
| 1093 |
+
|
| 1094 |
+
def INTER_KEY(self):
|
| 1095 |
+
return self.getToken(OmegaConfGrammarParser.INTER_KEY, 0)
|
| 1096 |
+
|
| 1097 |
+
def getRuleIndex(self):
|
| 1098 |
+
return OmegaConfGrammarParser.RULE_configKey
|
| 1099 |
+
|
| 1100 |
+
def enterRule(self, listener:ParseTreeListener):
|
| 1101 |
+
if hasattr( listener, "enterConfigKey" ):
|
| 1102 |
+
listener.enterConfigKey(self)
|
| 1103 |
+
|
| 1104 |
+
def exitRule(self, listener:ParseTreeListener):
|
| 1105 |
+
if hasattr( listener, "exitConfigKey" ):
|
| 1106 |
+
listener.exitConfigKey(self)
|
| 1107 |
+
|
| 1108 |
+
def accept(self, visitor:ParseTreeVisitor):
|
| 1109 |
+
if hasattr( visitor, "visitConfigKey" ):
|
| 1110 |
+
return visitor.visitConfigKey(self)
|
| 1111 |
+
else:
|
| 1112 |
+
return visitor.visitChildren(self)
|
| 1113 |
+
|
| 1114 |
+
|
| 1115 |
+
|
| 1116 |
+
|
| 1117 |
+
def configKey(self):
|
| 1118 |
+
|
| 1119 |
+
localctx = OmegaConfGrammarParser.ConfigKeyContext(self, self._ctx, self.state)
|
| 1120 |
+
self.enterRule(localctx, 22, self.RULE_configKey)
|
| 1121 |
+
try:
|
| 1122 |
+
self.state = 139
|
| 1123 |
+
self._errHandler.sync(self)
|
| 1124 |
+
token = self._input.LA(1)
|
| 1125 |
+
if token in [OmegaConfGrammarParser.INTER_OPEN]:
|
| 1126 |
+
self.enterOuterAlt(localctx, 1)
|
| 1127 |
+
self.state = 136
|
| 1128 |
+
self.interpolation()
|
| 1129 |
+
pass
|
| 1130 |
+
elif token in [OmegaConfGrammarParser.ID]:
|
| 1131 |
+
self.enterOuterAlt(localctx, 2)
|
| 1132 |
+
self.state = 137
|
| 1133 |
+
self.match(OmegaConfGrammarParser.ID)
|
| 1134 |
+
pass
|
| 1135 |
+
elif token in [OmegaConfGrammarParser.INTER_KEY]:
|
| 1136 |
+
self.enterOuterAlt(localctx, 3)
|
| 1137 |
+
self.state = 138
|
| 1138 |
+
self.match(OmegaConfGrammarParser.INTER_KEY)
|
| 1139 |
+
pass
|
| 1140 |
+
else:
|
| 1141 |
+
raise NoViableAltException(self)
|
| 1142 |
+
|
| 1143 |
+
except RecognitionException as re:
|
| 1144 |
+
localctx.exception = re
|
| 1145 |
+
self._errHandler.reportError(self, re)
|
| 1146 |
+
self._errHandler.recover(self, re)
|
| 1147 |
+
finally:
|
| 1148 |
+
self.exitRule()
|
| 1149 |
+
return localctx
|
| 1150 |
+
|
| 1151 |
+
|
| 1152 |
+
class ResolverNameContext(ParserRuleContext):
|
| 1153 |
+
__slots__ = 'parser'
|
| 1154 |
+
|
| 1155 |
+
def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
|
| 1156 |
+
super().__init__(parent, invokingState)
|
| 1157 |
+
self.parser = parser
|
| 1158 |
+
|
| 1159 |
+
def interpolation(self, i:int=None):
|
| 1160 |
+
if i is None:
|
| 1161 |
+
return self.getTypedRuleContexts(OmegaConfGrammarParser.InterpolationContext)
|
| 1162 |
+
else:
|
| 1163 |
+
return self.getTypedRuleContext(OmegaConfGrammarParser.InterpolationContext,i)
|
| 1164 |
+
|
| 1165 |
+
|
| 1166 |
+
def ID(self, i:int=None):
|
| 1167 |
+
if i is None:
|
| 1168 |
+
return self.getTokens(OmegaConfGrammarParser.ID)
|
| 1169 |
+
else:
|
| 1170 |
+
return self.getToken(OmegaConfGrammarParser.ID, i)
|
| 1171 |
+
|
| 1172 |
+
def DOT(self, i:int=None):
|
| 1173 |
+
if i is None:
|
| 1174 |
+
return self.getTokens(OmegaConfGrammarParser.DOT)
|
| 1175 |
+
else:
|
| 1176 |
+
return self.getToken(OmegaConfGrammarParser.DOT, i)
|
| 1177 |
+
|
| 1178 |
+
def getRuleIndex(self):
|
| 1179 |
+
return OmegaConfGrammarParser.RULE_resolverName
|
| 1180 |
+
|
| 1181 |
+
def enterRule(self, listener:ParseTreeListener):
|
| 1182 |
+
if hasattr( listener, "enterResolverName" ):
|
| 1183 |
+
listener.enterResolverName(self)
|
| 1184 |
+
|
| 1185 |
+
def exitRule(self, listener:ParseTreeListener):
|
| 1186 |
+
if hasattr( listener, "exitResolverName" ):
|
| 1187 |
+
listener.exitResolverName(self)
|
| 1188 |
+
|
| 1189 |
+
def accept(self, visitor:ParseTreeVisitor):
|
| 1190 |
+
if hasattr( visitor, "visitResolverName" ):
|
| 1191 |
+
return visitor.visitResolverName(self)
|
| 1192 |
+
else:
|
| 1193 |
+
return visitor.visitChildren(self)
|
| 1194 |
+
|
| 1195 |
+
|
| 1196 |
+
|
| 1197 |
+
|
| 1198 |
+
def resolverName(self):
|
| 1199 |
+
|
| 1200 |
+
localctx = OmegaConfGrammarParser.ResolverNameContext(self, self._ctx, self.state)
|
| 1201 |
+
self.enterRule(localctx, 24, self.RULE_resolverName)
|
| 1202 |
+
self._la = 0 # Token type
|
| 1203 |
+
try:
|
| 1204 |
+
self.enterOuterAlt(localctx, 1)
|
| 1205 |
+
self.state = 143
|
| 1206 |
+
self._errHandler.sync(self)
|
| 1207 |
+
token = self._input.LA(1)
|
| 1208 |
+
if token in [OmegaConfGrammarParser.INTER_OPEN]:
|
| 1209 |
+
self.state = 141
|
| 1210 |
+
self.interpolation()
|
| 1211 |
+
pass
|
| 1212 |
+
elif token in [OmegaConfGrammarParser.ID]:
|
| 1213 |
+
self.state = 142
|
| 1214 |
+
self.match(OmegaConfGrammarParser.ID)
|
| 1215 |
+
pass
|
| 1216 |
+
else:
|
| 1217 |
+
raise NoViableAltException(self)
|
| 1218 |
+
|
| 1219 |
+
self.state = 152
|
| 1220 |
+
self._errHandler.sync(self)
|
| 1221 |
+
_la = self._input.LA(1)
|
| 1222 |
+
while _la==OmegaConfGrammarParser.DOT:
|
| 1223 |
+
self.state = 145
|
| 1224 |
+
self.match(OmegaConfGrammarParser.DOT)
|
| 1225 |
+
self.state = 148
|
| 1226 |
+
self._errHandler.sync(self)
|
| 1227 |
+
token = self._input.LA(1)
|
| 1228 |
+
if token in [OmegaConfGrammarParser.INTER_OPEN]:
|
| 1229 |
+
self.state = 146
|
| 1230 |
+
self.interpolation()
|
| 1231 |
+
pass
|
| 1232 |
+
elif token in [OmegaConfGrammarParser.ID]:
|
| 1233 |
+
self.state = 147
|
| 1234 |
+
self.match(OmegaConfGrammarParser.ID)
|
| 1235 |
+
pass
|
| 1236 |
+
else:
|
| 1237 |
+
raise NoViableAltException(self)
|
| 1238 |
+
|
| 1239 |
+
self.state = 154
|
| 1240 |
+
self._errHandler.sync(self)
|
| 1241 |
+
_la = self._input.LA(1)
|
| 1242 |
+
|
| 1243 |
+
except RecognitionException as re:
|
| 1244 |
+
localctx.exception = re
|
| 1245 |
+
self._errHandler.reportError(self, re)
|
| 1246 |
+
self._errHandler.recover(self, re)
|
| 1247 |
+
finally:
|
| 1248 |
+
self.exitRule()
|
| 1249 |
+
return localctx
|
| 1250 |
+
|
| 1251 |
+
|
| 1252 |
+
class QuotedValueContext(ParserRuleContext):
|
| 1253 |
+
__slots__ = 'parser'
|
| 1254 |
+
|
| 1255 |
+
def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
|
| 1256 |
+
super().__init__(parent, invokingState)
|
| 1257 |
+
self.parser = parser
|
| 1258 |
+
|
| 1259 |
+
def MATCHING_QUOTE_CLOSE(self):
|
| 1260 |
+
return self.getToken(OmegaConfGrammarParser.MATCHING_QUOTE_CLOSE, 0)
|
| 1261 |
+
|
| 1262 |
+
def QUOTE_OPEN_SINGLE(self):
|
| 1263 |
+
return self.getToken(OmegaConfGrammarParser.QUOTE_OPEN_SINGLE, 0)
|
| 1264 |
+
|
| 1265 |
+
def QUOTE_OPEN_DOUBLE(self):
|
| 1266 |
+
return self.getToken(OmegaConfGrammarParser.QUOTE_OPEN_DOUBLE, 0)
|
| 1267 |
+
|
| 1268 |
+
def text(self):
|
| 1269 |
+
return self.getTypedRuleContext(OmegaConfGrammarParser.TextContext,0)
|
| 1270 |
+
|
| 1271 |
+
|
| 1272 |
+
def getRuleIndex(self):
|
| 1273 |
+
return OmegaConfGrammarParser.RULE_quotedValue
|
| 1274 |
+
|
| 1275 |
+
def enterRule(self, listener:ParseTreeListener):
|
| 1276 |
+
if hasattr( listener, "enterQuotedValue" ):
|
| 1277 |
+
listener.enterQuotedValue(self)
|
| 1278 |
+
|
| 1279 |
+
def exitRule(self, listener:ParseTreeListener):
|
| 1280 |
+
if hasattr( listener, "exitQuotedValue" ):
|
| 1281 |
+
listener.exitQuotedValue(self)
|
| 1282 |
+
|
| 1283 |
+
def accept(self, visitor:ParseTreeVisitor):
|
| 1284 |
+
if hasattr( visitor, "visitQuotedValue" ):
|
| 1285 |
+
return visitor.visitQuotedValue(self)
|
| 1286 |
+
else:
|
| 1287 |
+
return visitor.visitChildren(self)
|
| 1288 |
+
|
| 1289 |
+
|
| 1290 |
+
|
| 1291 |
+
|
| 1292 |
+
def quotedValue(self):
|
| 1293 |
+
|
| 1294 |
+
localctx = OmegaConfGrammarParser.QuotedValueContext(self, self._ctx, self.state)
|
| 1295 |
+
self.enterRule(localctx, 26, self.RULE_quotedValue)
|
| 1296 |
+
self._la = 0 # Token type
|
| 1297 |
+
try:
|
| 1298 |
+
self.enterOuterAlt(localctx, 1)
|
| 1299 |
+
self.state = 155
|
| 1300 |
+
_la = self._input.LA(1)
|
| 1301 |
+
if not(_la==OmegaConfGrammarParser.QUOTE_OPEN_SINGLE or _la==OmegaConfGrammarParser.QUOTE_OPEN_DOUBLE):
|
| 1302 |
+
self._errHandler.recoverInline(self)
|
| 1303 |
+
else:
|
| 1304 |
+
self._errHandler.reportMatch(self)
|
| 1305 |
+
self.consume()
|
| 1306 |
+
self.state = 157
|
| 1307 |
+
self._errHandler.sync(self)
|
| 1308 |
+
_la = self._input.LA(1)
|
| 1309 |
+
if (((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << OmegaConfGrammarParser.ANY_STR) | (1 << OmegaConfGrammarParser.ESC_INTER) | (1 << OmegaConfGrammarParser.TOP_ESC) | (1 << OmegaConfGrammarParser.INTER_OPEN) | (1 << OmegaConfGrammarParser.ESC) | (1 << OmegaConfGrammarParser.QUOTED_ESC))) != 0):
|
| 1310 |
+
self.state = 156
|
| 1311 |
+
self.text()
|
| 1312 |
+
|
| 1313 |
+
|
| 1314 |
+
self.state = 159
|
| 1315 |
+
self.match(OmegaConfGrammarParser.MATCHING_QUOTE_CLOSE)
|
| 1316 |
+
except RecognitionException as re:
|
| 1317 |
+
localctx.exception = re
|
| 1318 |
+
self._errHandler.reportError(self, re)
|
| 1319 |
+
self._errHandler.recover(self, re)
|
| 1320 |
+
finally:
|
| 1321 |
+
self.exitRule()
|
| 1322 |
+
return localctx
|
| 1323 |
+
|
| 1324 |
+
|
| 1325 |
+
class PrimitiveContext(ParserRuleContext):
|
| 1326 |
+
__slots__ = 'parser'
|
| 1327 |
+
|
| 1328 |
+
def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
|
| 1329 |
+
super().__init__(parent, invokingState)
|
| 1330 |
+
self.parser = parser
|
| 1331 |
+
|
| 1332 |
+
def ID(self, i:int=None):
|
| 1333 |
+
if i is None:
|
| 1334 |
+
return self.getTokens(OmegaConfGrammarParser.ID)
|
| 1335 |
+
else:
|
| 1336 |
+
return self.getToken(OmegaConfGrammarParser.ID, i)
|
| 1337 |
+
|
| 1338 |
+
def NULL(self, i:int=None):
|
| 1339 |
+
if i is None:
|
| 1340 |
+
return self.getTokens(OmegaConfGrammarParser.NULL)
|
| 1341 |
+
else:
|
| 1342 |
+
return self.getToken(OmegaConfGrammarParser.NULL, i)
|
| 1343 |
+
|
| 1344 |
+
def INT(self, i:int=None):
|
| 1345 |
+
if i is None:
|
| 1346 |
+
return self.getTokens(OmegaConfGrammarParser.INT)
|
| 1347 |
+
else:
|
| 1348 |
+
return self.getToken(OmegaConfGrammarParser.INT, i)
|
| 1349 |
+
|
| 1350 |
+
def FLOAT(self, i:int=None):
|
| 1351 |
+
if i is None:
|
| 1352 |
+
return self.getTokens(OmegaConfGrammarParser.FLOAT)
|
| 1353 |
+
else:
|
| 1354 |
+
return self.getToken(OmegaConfGrammarParser.FLOAT, i)
|
| 1355 |
+
|
| 1356 |
+
def BOOL(self, i:int=None):
|
| 1357 |
+
if i is None:
|
| 1358 |
+
return self.getTokens(OmegaConfGrammarParser.BOOL)
|
| 1359 |
+
else:
|
| 1360 |
+
return self.getToken(OmegaConfGrammarParser.BOOL, i)
|
| 1361 |
+
|
| 1362 |
+
def UNQUOTED_CHAR(self, i:int=None):
|
| 1363 |
+
if i is None:
|
| 1364 |
+
return self.getTokens(OmegaConfGrammarParser.UNQUOTED_CHAR)
|
| 1365 |
+
else:
|
| 1366 |
+
return self.getToken(OmegaConfGrammarParser.UNQUOTED_CHAR, i)
|
| 1367 |
+
|
| 1368 |
+
def COLON(self, i:int=None):
|
| 1369 |
+
if i is None:
|
| 1370 |
+
return self.getTokens(OmegaConfGrammarParser.COLON)
|
| 1371 |
+
else:
|
| 1372 |
+
return self.getToken(OmegaConfGrammarParser.COLON, i)
|
| 1373 |
+
|
| 1374 |
+
def ESC(self, i:int=None):
|
| 1375 |
+
if i is None:
|
| 1376 |
+
return self.getTokens(OmegaConfGrammarParser.ESC)
|
| 1377 |
+
else:
|
| 1378 |
+
return self.getToken(OmegaConfGrammarParser.ESC, i)
|
| 1379 |
+
|
| 1380 |
+
def WS(self, i:int=None):
|
| 1381 |
+
if i is None:
|
| 1382 |
+
return self.getTokens(OmegaConfGrammarParser.WS)
|
| 1383 |
+
else:
|
| 1384 |
+
return self.getToken(OmegaConfGrammarParser.WS, i)
|
| 1385 |
+
|
| 1386 |
+
def interpolation(self, i:int=None):
|
| 1387 |
+
if i is None:
|
| 1388 |
+
return self.getTypedRuleContexts(OmegaConfGrammarParser.InterpolationContext)
|
| 1389 |
+
else:
|
| 1390 |
+
return self.getTypedRuleContext(OmegaConfGrammarParser.InterpolationContext,i)
|
| 1391 |
+
|
| 1392 |
+
|
| 1393 |
+
def getRuleIndex(self):
|
| 1394 |
+
return OmegaConfGrammarParser.RULE_primitive
|
| 1395 |
+
|
| 1396 |
+
def enterRule(self, listener:ParseTreeListener):
|
| 1397 |
+
if hasattr( listener, "enterPrimitive" ):
|
| 1398 |
+
listener.enterPrimitive(self)
|
| 1399 |
+
|
| 1400 |
+
def exitRule(self, listener:ParseTreeListener):
|
| 1401 |
+
if hasattr( listener, "exitPrimitive" ):
|
| 1402 |
+
listener.exitPrimitive(self)
|
| 1403 |
+
|
| 1404 |
+
def accept(self, visitor:ParseTreeVisitor):
|
| 1405 |
+
if hasattr( visitor, "visitPrimitive" ):
|
| 1406 |
+
return visitor.visitPrimitive(self)
|
| 1407 |
+
else:
|
| 1408 |
+
return visitor.visitChildren(self)
|
| 1409 |
+
|
| 1410 |
+
|
| 1411 |
+
|
| 1412 |
+
|
| 1413 |
+
def primitive(self):
|
| 1414 |
+
|
| 1415 |
+
localctx = OmegaConfGrammarParser.PrimitiveContext(self, self._ctx, self.state)
|
| 1416 |
+
self.enterRule(localctx, 28, self.RULE_primitive)
|
| 1417 |
+
self._la = 0 # Token type
|
| 1418 |
+
try:
|
| 1419 |
+
self.enterOuterAlt(localctx, 1)
|
| 1420 |
+
self.state = 171
|
| 1421 |
+
self._errHandler.sync(self)
|
| 1422 |
+
_la = self._input.LA(1)
|
| 1423 |
+
while True:
|
| 1424 |
+
self.state = 171
|
| 1425 |
+
self._errHandler.sync(self)
|
| 1426 |
+
token = self._input.LA(1)
|
| 1427 |
+
if token in [OmegaConfGrammarParser.ID]:
|
| 1428 |
+
self.state = 161
|
| 1429 |
+
self.match(OmegaConfGrammarParser.ID)
|
| 1430 |
+
pass
|
| 1431 |
+
elif token in [OmegaConfGrammarParser.NULL]:
|
| 1432 |
+
self.state = 162
|
| 1433 |
+
self.match(OmegaConfGrammarParser.NULL)
|
| 1434 |
+
pass
|
| 1435 |
+
elif token in [OmegaConfGrammarParser.INT]:
|
| 1436 |
+
self.state = 163
|
| 1437 |
+
self.match(OmegaConfGrammarParser.INT)
|
| 1438 |
+
pass
|
| 1439 |
+
elif token in [OmegaConfGrammarParser.FLOAT]:
|
| 1440 |
+
self.state = 164
|
| 1441 |
+
self.match(OmegaConfGrammarParser.FLOAT)
|
| 1442 |
+
pass
|
| 1443 |
+
elif token in [OmegaConfGrammarParser.BOOL]:
|
| 1444 |
+
self.state = 165
|
| 1445 |
+
self.match(OmegaConfGrammarParser.BOOL)
|
| 1446 |
+
pass
|
| 1447 |
+
elif token in [OmegaConfGrammarParser.UNQUOTED_CHAR]:
|
| 1448 |
+
self.state = 166
|
| 1449 |
+
self.match(OmegaConfGrammarParser.UNQUOTED_CHAR)
|
| 1450 |
+
pass
|
| 1451 |
+
elif token in [OmegaConfGrammarParser.COLON]:
|
| 1452 |
+
self.state = 167
|
| 1453 |
+
self.match(OmegaConfGrammarParser.COLON)
|
| 1454 |
+
pass
|
| 1455 |
+
elif token in [OmegaConfGrammarParser.ESC]:
|
| 1456 |
+
self.state = 168
|
| 1457 |
+
self.match(OmegaConfGrammarParser.ESC)
|
| 1458 |
+
pass
|
| 1459 |
+
elif token in [OmegaConfGrammarParser.WS]:
|
| 1460 |
+
self.state = 169
|
| 1461 |
+
self.match(OmegaConfGrammarParser.WS)
|
| 1462 |
+
pass
|
| 1463 |
+
elif token in [OmegaConfGrammarParser.INTER_OPEN]:
|
| 1464 |
+
self.state = 170
|
| 1465 |
+
self.interpolation()
|
| 1466 |
+
pass
|
| 1467 |
+
else:
|
| 1468 |
+
raise NoViableAltException(self)
|
| 1469 |
+
|
| 1470 |
+
self.state = 173
|
| 1471 |
+
self._errHandler.sync(self)
|
| 1472 |
+
_la = self._input.LA(1)
|
| 1473 |
+
if not ((((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << OmegaConfGrammarParser.INTER_OPEN) | (1 << OmegaConfGrammarParser.COLON) | (1 << OmegaConfGrammarParser.FLOAT) | (1 << OmegaConfGrammarParser.INT) | (1 << OmegaConfGrammarParser.BOOL) | (1 << OmegaConfGrammarParser.NULL) | (1 << OmegaConfGrammarParser.UNQUOTED_CHAR) | (1 << OmegaConfGrammarParser.ID) | (1 << OmegaConfGrammarParser.ESC) | (1 << OmegaConfGrammarParser.WS))) != 0)):
|
| 1474 |
+
break
|
| 1475 |
+
|
| 1476 |
+
except RecognitionException as re:
|
| 1477 |
+
localctx.exception = re
|
| 1478 |
+
self._errHandler.reportError(self, re)
|
| 1479 |
+
self._errHandler.recover(self, re)
|
| 1480 |
+
finally:
|
| 1481 |
+
self.exitRule()
|
| 1482 |
+
return localctx
|
| 1483 |
+
|
| 1484 |
+
|
| 1485 |
+
class DictKeyContext(ParserRuleContext):
|
| 1486 |
+
__slots__ = 'parser'
|
| 1487 |
+
|
| 1488 |
+
def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
|
| 1489 |
+
super().__init__(parent, invokingState)
|
| 1490 |
+
self.parser = parser
|
| 1491 |
+
|
| 1492 |
+
def ID(self, i:int=None):
|
| 1493 |
+
if i is None:
|
| 1494 |
+
return self.getTokens(OmegaConfGrammarParser.ID)
|
| 1495 |
+
else:
|
| 1496 |
+
return self.getToken(OmegaConfGrammarParser.ID, i)
|
| 1497 |
+
|
| 1498 |
+
def NULL(self, i:int=None):
|
| 1499 |
+
if i is None:
|
| 1500 |
+
return self.getTokens(OmegaConfGrammarParser.NULL)
|
| 1501 |
+
else:
|
| 1502 |
+
return self.getToken(OmegaConfGrammarParser.NULL, i)
|
| 1503 |
+
|
| 1504 |
+
def INT(self, i:int=None):
|
| 1505 |
+
if i is None:
|
| 1506 |
+
return self.getTokens(OmegaConfGrammarParser.INT)
|
| 1507 |
+
else:
|
| 1508 |
+
return self.getToken(OmegaConfGrammarParser.INT, i)
|
| 1509 |
+
|
| 1510 |
+
def FLOAT(self, i:int=None):
|
| 1511 |
+
if i is None:
|
| 1512 |
+
return self.getTokens(OmegaConfGrammarParser.FLOAT)
|
| 1513 |
+
else:
|
| 1514 |
+
return self.getToken(OmegaConfGrammarParser.FLOAT, i)
|
| 1515 |
+
|
| 1516 |
+
def BOOL(self, i:int=None):
|
| 1517 |
+
if i is None:
|
| 1518 |
+
return self.getTokens(OmegaConfGrammarParser.BOOL)
|
| 1519 |
+
else:
|
| 1520 |
+
return self.getToken(OmegaConfGrammarParser.BOOL, i)
|
| 1521 |
+
|
| 1522 |
+
def UNQUOTED_CHAR(self, i:int=None):
|
| 1523 |
+
if i is None:
|
| 1524 |
+
return self.getTokens(OmegaConfGrammarParser.UNQUOTED_CHAR)
|
| 1525 |
+
else:
|
| 1526 |
+
return self.getToken(OmegaConfGrammarParser.UNQUOTED_CHAR, i)
|
| 1527 |
+
|
| 1528 |
+
def ESC(self, i:int=None):
|
| 1529 |
+
if i is None:
|
| 1530 |
+
return self.getTokens(OmegaConfGrammarParser.ESC)
|
| 1531 |
+
else:
|
| 1532 |
+
return self.getToken(OmegaConfGrammarParser.ESC, i)
|
| 1533 |
+
|
| 1534 |
+
def WS(self, i:int=None):
|
| 1535 |
+
if i is None:
|
| 1536 |
+
return self.getTokens(OmegaConfGrammarParser.WS)
|
| 1537 |
+
else:
|
| 1538 |
+
return self.getToken(OmegaConfGrammarParser.WS, i)
|
| 1539 |
+
|
| 1540 |
+
def getRuleIndex(self):
|
| 1541 |
+
return OmegaConfGrammarParser.RULE_dictKey
|
| 1542 |
+
|
| 1543 |
+
def enterRule(self, listener:ParseTreeListener):
|
| 1544 |
+
if hasattr( listener, "enterDictKey" ):
|
| 1545 |
+
listener.enterDictKey(self)
|
| 1546 |
+
|
| 1547 |
+
def exitRule(self, listener:ParseTreeListener):
|
| 1548 |
+
if hasattr( listener, "exitDictKey" ):
|
| 1549 |
+
listener.exitDictKey(self)
|
| 1550 |
+
|
| 1551 |
+
def accept(self, visitor:ParseTreeVisitor):
|
| 1552 |
+
if hasattr( visitor, "visitDictKey" ):
|
| 1553 |
+
return visitor.visitDictKey(self)
|
| 1554 |
+
else:
|
| 1555 |
+
return visitor.visitChildren(self)
|
| 1556 |
+
|
| 1557 |
+
|
| 1558 |
+
|
| 1559 |
+
|
| 1560 |
+
def dictKey(self):
|
| 1561 |
+
|
| 1562 |
+
localctx = OmegaConfGrammarParser.DictKeyContext(self, self._ctx, self.state)
|
| 1563 |
+
self.enterRule(localctx, 30, self.RULE_dictKey)
|
| 1564 |
+
self._la = 0 # Token type
|
| 1565 |
+
try:
|
| 1566 |
+
self.enterOuterAlt(localctx, 1)
|
| 1567 |
+
self.state = 176
|
| 1568 |
+
self._errHandler.sync(self)
|
| 1569 |
+
_la = self._input.LA(1)
|
| 1570 |
+
while True:
|
| 1571 |
+
self.state = 175
|
| 1572 |
+
_la = self._input.LA(1)
|
| 1573 |
+
if not((((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << OmegaConfGrammarParser.FLOAT) | (1 << OmegaConfGrammarParser.INT) | (1 << OmegaConfGrammarParser.BOOL) | (1 << OmegaConfGrammarParser.NULL) | (1 << OmegaConfGrammarParser.UNQUOTED_CHAR) | (1 << OmegaConfGrammarParser.ID) | (1 << OmegaConfGrammarParser.ESC) | (1 << OmegaConfGrammarParser.WS))) != 0)):
|
| 1574 |
+
self._errHandler.recoverInline(self)
|
| 1575 |
+
else:
|
| 1576 |
+
self._errHandler.reportMatch(self)
|
| 1577 |
+
self.consume()
|
| 1578 |
+
self.state = 178
|
| 1579 |
+
self._errHandler.sync(self)
|
| 1580 |
+
_la = self._input.LA(1)
|
| 1581 |
+
if not ((((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << OmegaConfGrammarParser.FLOAT) | (1 << OmegaConfGrammarParser.INT) | (1 << OmegaConfGrammarParser.BOOL) | (1 << OmegaConfGrammarParser.NULL) | (1 << OmegaConfGrammarParser.UNQUOTED_CHAR) | (1 << OmegaConfGrammarParser.ID) | (1 << OmegaConfGrammarParser.ESC) | (1 << OmegaConfGrammarParser.WS))) != 0)):
|
| 1582 |
+
break
|
| 1583 |
+
|
| 1584 |
+
except RecognitionException as re:
|
| 1585 |
+
localctx.exception = re
|
| 1586 |
+
self._errHandler.reportError(self, re)
|
| 1587 |
+
self._errHandler.recover(self, re)
|
| 1588 |
+
finally:
|
| 1589 |
+
self.exitRule()
|
| 1590 |
+
return localctx
|
| 1591 |
+
|
| 1592 |
+
|
| 1593 |
+
|
| 1594 |
+
|
| 1595 |
+
|
py311/lib/python3.11/site-packages/omegaconf/grammar/gen/OmegaConfGrammarParserListener.py
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Generated from /tmp/build-via-sdist-fm63w174/omegaconf-2.3.0/omegaconf/grammar/OmegaConfGrammarParser.g4 by ANTLR 4.9.3
|
| 2 |
+
from antlr4 import *
|
| 3 |
+
if __name__ is not None and "." in __name__:
|
| 4 |
+
from .OmegaConfGrammarParser import OmegaConfGrammarParser
|
| 5 |
+
else:
|
| 6 |
+
from OmegaConfGrammarParser import OmegaConfGrammarParser
|
| 7 |
+
|
| 8 |
+
# This class defines a complete listener for a parse tree produced by OmegaConfGrammarParser.
|
| 9 |
+
class OmegaConfGrammarParserListener(ParseTreeListener):
|
| 10 |
+
|
| 11 |
+
# Enter a parse tree produced by OmegaConfGrammarParser#configValue.
|
| 12 |
+
def enterConfigValue(self, ctx:OmegaConfGrammarParser.ConfigValueContext):
|
| 13 |
+
pass
|
| 14 |
+
|
| 15 |
+
# Exit a parse tree produced by OmegaConfGrammarParser#configValue.
|
| 16 |
+
def exitConfigValue(self, ctx:OmegaConfGrammarParser.ConfigValueContext):
|
| 17 |
+
pass
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
# Enter a parse tree produced by OmegaConfGrammarParser#singleElement.
|
| 21 |
+
def enterSingleElement(self, ctx:OmegaConfGrammarParser.SingleElementContext):
|
| 22 |
+
pass
|
| 23 |
+
|
| 24 |
+
# Exit a parse tree produced by OmegaConfGrammarParser#singleElement.
|
| 25 |
+
def exitSingleElement(self, ctx:OmegaConfGrammarParser.SingleElementContext):
|
| 26 |
+
pass
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
# Enter a parse tree produced by OmegaConfGrammarParser#text.
|
| 30 |
+
def enterText(self, ctx:OmegaConfGrammarParser.TextContext):
|
| 31 |
+
pass
|
| 32 |
+
|
| 33 |
+
# Exit a parse tree produced by OmegaConfGrammarParser#text.
|
| 34 |
+
def exitText(self, ctx:OmegaConfGrammarParser.TextContext):
|
| 35 |
+
pass
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
# Enter a parse tree produced by OmegaConfGrammarParser#element.
|
| 39 |
+
def enterElement(self, ctx:OmegaConfGrammarParser.ElementContext):
|
| 40 |
+
pass
|
| 41 |
+
|
| 42 |
+
# Exit a parse tree produced by OmegaConfGrammarParser#element.
|
| 43 |
+
def exitElement(self, ctx:OmegaConfGrammarParser.ElementContext):
|
| 44 |
+
pass
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
# Enter a parse tree produced by OmegaConfGrammarParser#listContainer.
|
| 48 |
+
def enterListContainer(self, ctx:OmegaConfGrammarParser.ListContainerContext):
|
| 49 |
+
pass
|
| 50 |
+
|
| 51 |
+
# Exit a parse tree produced by OmegaConfGrammarParser#listContainer.
|
| 52 |
+
def exitListContainer(self, ctx:OmegaConfGrammarParser.ListContainerContext):
|
| 53 |
+
pass
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
# Enter a parse tree produced by OmegaConfGrammarParser#dictContainer.
|
| 57 |
+
def enterDictContainer(self, ctx:OmegaConfGrammarParser.DictContainerContext):
|
| 58 |
+
pass
|
| 59 |
+
|
| 60 |
+
# Exit a parse tree produced by OmegaConfGrammarParser#dictContainer.
|
| 61 |
+
def exitDictContainer(self, ctx:OmegaConfGrammarParser.DictContainerContext):
|
| 62 |
+
pass
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
# Enter a parse tree produced by OmegaConfGrammarParser#dictKeyValuePair.
|
| 66 |
+
def enterDictKeyValuePair(self, ctx:OmegaConfGrammarParser.DictKeyValuePairContext):
|
| 67 |
+
pass
|
| 68 |
+
|
| 69 |
+
# Exit a parse tree produced by OmegaConfGrammarParser#dictKeyValuePair.
|
| 70 |
+
def exitDictKeyValuePair(self, ctx:OmegaConfGrammarParser.DictKeyValuePairContext):
|
| 71 |
+
pass
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
# Enter a parse tree produced by OmegaConfGrammarParser#sequence.
|
| 75 |
+
def enterSequence(self, ctx:OmegaConfGrammarParser.SequenceContext):
|
| 76 |
+
pass
|
| 77 |
+
|
| 78 |
+
# Exit a parse tree produced by OmegaConfGrammarParser#sequence.
|
| 79 |
+
def exitSequence(self, ctx:OmegaConfGrammarParser.SequenceContext):
|
| 80 |
+
pass
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
# Enter a parse tree produced by OmegaConfGrammarParser#interpolation.
|
| 84 |
+
def enterInterpolation(self, ctx:OmegaConfGrammarParser.InterpolationContext):
|
| 85 |
+
pass
|
| 86 |
+
|
| 87 |
+
# Exit a parse tree produced by OmegaConfGrammarParser#interpolation.
|
| 88 |
+
def exitInterpolation(self, ctx:OmegaConfGrammarParser.InterpolationContext):
|
| 89 |
+
pass
|
| 90 |
+
|
| 91 |
+
|
| 92 |
+
# Enter a parse tree produced by OmegaConfGrammarParser#interpolationNode.
|
| 93 |
+
def enterInterpolationNode(self, ctx:OmegaConfGrammarParser.InterpolationNodeContext):
|
| 94 |
+
pass
|
| 95 |
+
|
| 96 |
+
# Exit a parse tree produced by OmegaConfGrammarParser#interpolationNode.
|
| 97 |
+
def exitInterpolationNode(self, ctx:OmegaConfGrammarParser.InterpolationNodeContext):
|
| 98 |
+
pass
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
# Enter a parse tree produced by OmegaConfGrammarParser#interpolationResolver.
|
| 102 |
+
def enterInterpolationResolver(self, ctx:OmegaConfGrammarParser.InterpolationResolverContext):
|
| 103 |
+
pass
|
| 104 |
+
|
| 105 |
+
# Exit a parse tree produced by OmegaConfGrammarParser#interpolationResolver.
|
| 106 |
+
def exitInterpolationResolver(self, ctx:OmegaConfGrammarParser.InterpolationResolverContext):
|
| 107 |
+
pass
|
| 108 |
+
|
| 109 |
+
|
| 110 |
+
# Enter a parse tree produced by OmegaConfGrammarParser#configKey.
|
| 111 |
+
def enterConfigKey(self, ctx:OmegaConfGrammarParser.ConfigKeyContext):
|
| 112 |
+
pass
|
| 113 |
+
|
| 114 |
+
# Exit a parse tree produced by OmegaConfGrammarParser#configKey.
|
| 115 |
+
def exitConfigKey(self, ctx:OmegaConfGrammarParser.ConfigKeyContext):
|
| 116 |
+
pass
|
| 117 |
+
|
| 118 |
+
|
| 119 |
+
# Enter a parse tree produced by OmegaConfGrammarParser#resolverName.
|
| 120 |
+
def enterResolverName(self, ctx:OmegaConfGrammarParser.ResolverNameContext):
|
| 121 |
+
pass
|
| 122 |
+
|
| 123 |
+
# Exit a parse tree produced by OmegaConfGrammarParser#resolverName.
|
| 124 |
+
def exitResolverName(self, ctx:OmegaConfGrammarParser.ResolverNameContext):
|
| 125 |
+
pass
|
| 126 |
+
|
| 127 |
+
|
| 128 |
+
# Enter a parse tree produced by OmegaConfGrammarParser#quotedValue.
|
| 129 |
+
def enterQuotedValue(self, ctx:OmegaConfGrammarParser.QuotedValueContext):
|
| 130 |
+
pass
|
| 131 |
+
|
| 132 |
+
# Exit a parse tree produced by OmegaConfGrammarParser#quotedValue.
|
| 133 |
+
def exitQuotedValue(self, ctx:OmegaConfGrammarParser.QuotedValueContext):
|
| 134 |
+
pass
|
| 135 |
+
|
| 136 |
+
|
| 137 |
+
# Enter a parse tree produced by OmegaConfGrammarParser#primitive.
|
| 138 |
+
def enterPrimitive(self, ctx:OmegaConfGrammarParser.PrimitiveContext):
|
| 139 |
+
pass
|
| 140 |
+
|
| 141 |
+
# Exit a parse tree produced by OmegaConfGrammarParser#primitive.
|
| 142 |
+
def exitPrimitive(self, ctx:OmegaConfGrammarParser.PrimitiveContext):
|
| 143 |
+
pass
|
| 144 |
+
|
| 145 |
+
|
| 146 |
+
# Enter a parse tree produced by OmegaConfGrammarParser#dictKey.
|
| 147 |
+
def enterDictKey(self, ctx:OmegaConfGrammarParser.DictKeyContext):
|
| 148 |
+
pass
|
| 149 |
+
|
| 150 |
+
# Exit a parse tree produced by OmegaConfGrammarParser#dictKey.
|
| 151 |
+
def exitDictKey(self, ctx:OmegaConfGrammarParser.DictKeyContext):
|
| 152 |
+
pass
|
| 153 |
+
|
| 154 |
+
|
| 155 |
+
|
| 156 |
+
del OmegaConfGrammarParser
|
py311/lib/python3.11/site-packages/omegaconf/grammar/gen/OmegaConfGrammarParserVisitor.py
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Generated from /tmp/build-via-sdist-fm63w174/omegaconf-2.3.0/omegaconf/grammar/OmegaConfGrammarParser.g4 by ANTLR 4.9.3
|
| 2 |
+
from antlr4 import *
|
| 3 |
+
if __name__ is not None and "." in __name__:
|
| 4 |
+
from .OmegaConfGrammarParser import OmegaConfGrammarParser
|
| 5 |
+
else:
|
| 6 |
+
from OmegaConfGrammarParser import OmegaConfGrammarParser
|
| 7 |
+
|
| 8 |
+
# This class defines a complete generic visitor for a parse tree produced by OmegaConfGrammarParser.
|
| 9 |
+
|
| 10 |
+
class OmegaConfGrammarParserVisitor(ParseTreeVisitor):
|
| 11 |
+
|
| 12 |
+
# Visit a parse tree produced by OmegaConfGrammarParser#configValue.
|
| 13 |
+
def visitConfigValue(self, ctx:OmegaConfGrammarParser.ConfigValueContext):
|
| 14 |
+
return self.visitChildren(ctx)
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
# Visit a parse tree produced by OmegaConfGrammarParser#singleElement.
|
| 18 |
+
def visitSingleElement(self, ctx:OmegaConfGrammarParser.SingleElementContext):
|
| 19 |
+
return self.visitChildren(ctx)
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
# Visit a parse tree produced by OmegaConfGrammarParser#text.
|
| 23 |
+
def visitText(self, ctx:OmegaConfGrammarParser.TextContext):
|
| 24 |
+
return self.visitChildren(ctx)
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
# Visit a parse tree produced by OmegaConfGrammarParser#element.
|
| 28 |
+
def visitElement(self, ctx:OmegaConfGrammarParser.ElementContext):
|
| 29 |
+
return self.visitChildren(ctx)
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
# Visit a parse tree produced by OmegaConfGrammarParser#listContainer.
|
| 33 |
+
def visitListContainer(self, ctx:OmegaConfGrammarParser.ListContainerContext):
|
| 34 |
+
return self.visitChildren(ctx)
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
# Visit a parse tree produced by OmegaConfGrammarParser#dictContainer.
|
| 38 |
+
def visitDictContainer(self, ctx:OmegaConfGrammarParser.DictContainerContext):
|
| 39 |
+
return self.visitChildren(ctx)
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
# Visit a parse tree produced by OmegaConfGrammarParser#dictKeyValuePair.
|
| 43 |
+
def visitDictKeyValuePair(self, ctx:OmegaConfGrammarParser.DictKeyValuePairContext):
|
| 44 |
+
return self.visitChildren(ctx)
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
# Visit a parse tree produced by OmegaConfGrammarParser#sequence.
|
| 48 |
+
def visitSequence(self, ctx:OmegaConfGrammarParser.SequenceContext):
|
| 49 |
+
return self.visitChildren(ctx)
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
# Visit a parse tree produced by OmegaConfGrammarParser#interpolation.
|
| 53 |
+
def visitInterpolation(self, ctx:OmegaConfGrammarParser.InterpolationContext):
|
| 54 |
+
return self.visitChildren(ctx)
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
# Visit a parse tree produced by OmegaConfGrammarParser#interpolationNode.
|
| 58 |
+
def visitInterpolationNode(self, ctx:OmegaConfGrammarParser.InterpolationNodeContext):
|
| 59 |
+
return self.visitChildren(ctx)
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
# Visit a parse tree produced by OmegaConfGrammarParser#interpolationResolver.
|
| 63 |
+
def visitInterpolationResolver(self, ctx:OmegaConfGrammarParser.InterpolationResolverContext):
|
| 64 |
+
return self.visitChildren(ctx)
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
# Visit a parse tree produced by OmegaConfGrammarParser#configKey.
|
| 68 |
+
def visitConfigKey(self, ctx:OmegaConfGrammarParser.ConfigKeyContext):
|
| 69 |
+
return self.visitChildren(ctx)
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
# Visit a parse tree produced by OmegaConfGrammarParser#resolverName.
|
| 73 |
+
def visitResolverName(self, ctx:OmegaConfGrammarParser.ResolverNameContext):
|
| 74 |
+
return self.visitChildren(ctx)
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
# Visit a parse tree produced by OmegaConfGrammarParser#quotedValue.
|
| 78 |
+
def visitQuotedValue(self, ctx:OmegaConfGrammarParser.QuotedValueContext):
|
| 79 |
+
return self.visitChildren(ctx)
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
# Visit a parse tree produced by OmegaConfGrammarParser#primitive.
|
| 83 |
+
def visitPrimitive(self, ctx:OmegaConfGrammarParser.PrimitiveContext):
|
| 84 |
+
return self.visitChildren(ctx)
|
| 85 |
+
|
| 86 |
+
|
| 87 |
+
# Visit a parse tree produced by OmegaConfGrammarParser#dictKey.
|
| 88 |
+
def visitDictKey(self, ctx:OmegaConfGrammarParser.DictKeyContext):
|
| 89 |
+
return self.visitChildren(ctx)
|
| 90 |
+
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
del OmegaConfGrammarParser
|
py311/lib/python3.11/site-packages/omegaconf/grammar/gen/__init__.py
ADDED
|
File without changes
|
py311/lib/python3.11/site-packages/omegaconf/grammar/gen/__pycache__/OmegaConfGrammarLexer.cpython-311.pyc
ADDED
|
Binary file (25.6 kB). View file
|
|
|
py311/lib/python3.11/site-packages/omegaconf/grammar/gen/__pycache__/OmegaConfGrammarParserVisitor.cpython-311.pyc
ADDED
|
Binary file (4.84 kB). View file
|
|
|
py311/lib/python3.11/site-packages/omegaconf/grammar/gen/__pycache__/__init__.cpython-311.pyc
ADDED
|
Binary file (208 Bytes). View file
|
|
|
py311/lib/python3.11/site-packages/omegaconf/resolvers/__pycache__/__init__.cpython-311.pyc
ADDED
|
Binary file (296 Bytes). View file
|
|
|
py311/lib/python3.11/site-packages/omegaconf/resolvers/oc/__init__.py
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import string
|
| 3 |
+
import warnings
|
| 4 |
+
from typing import Any, Optional
|
| 5 |
+
|
| 6 |
+
from omegaconf import Container, Node
|
| 7 |
+
from omegaconf._utils import _DEFAULT_MARKER_, _get_value
|
| 8 |
+
from omegaconf.basecontainer import BaseContainer
|
| 9 |
+
from omegaconf.errors import ConfigKeyError
|
| 10 |
+
from omegaconf.grammar_parser import parse
|
| 11 |
+
from omegaconf.resolvers.oc import dict
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
def create(obj: Any, _parent_: Container) -> Any:
|
| 15 |
+
"""Create a config object from `obj`, similar to `OmegaConf.create`"""
|
| 16 |
+
from omegaconf import OmegaConf
|
| 17 |
+
|
| 18 |
+
assert isinstance(_parent_, BaseContainer)
|
| 19 |
+
return OmegaConf.create(obj, parent=_parent_)
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
def env(key: str, default: Any = _DEFAULT_MARKER_) -> Optional[str]:
|
| 23 |
+
"""
|
| 24 |
+
:param key: Environment variable key
|
| 25 |
+
:param default: Optional default value to use in case the key environment variable is not set.
|
| 26 |
+
If default is not a string, it is converted with str(default).
|
| 27 |
+
None default is returned as is.
|
| 28 |
+
:return: The environment variable 'key'. If the environment variable is not set and a default is
|
| 29 |
+
provided, the default is used. If used, the default is converted to a string with str(default).
|
| 30 |
+
If the default is None, None is returned (without a string conversion).
|
| 31 |
+
"""
|
| 32 |
+
try:
|
| 33 |
+
return os.environ[key]
|
| 34 |
+
except KeyError:
|
| 35 |
+
if default is not _DEFAULT_MARKER_:
|
| 36 |
+
return str(default) if default is not None else None
|
| 37 |
+
else:
|
| 38 |
+
raise KeyError(f"Environment variable '{key}' not found")
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
def decode(expr: Optional[str], _parent_: Container, _node_: Node) -> Any:
|
| 42 |
+
"""
|
| 43 |
+
Parse and evaluate `expr` according to the `singleElement` rule of the grammar.
|
| 44 |
+
|
| 45 |
+
If `expr` is `None`, then return `None`.
|
| 46 |
+
"""
|
| 47 |
+
if expr is None:
|
| 48 |
+
return None
|
| 49 |
+
|
| 50 |
+
if not isinstance(expr, str):
|
| 51 |
+
raise TypeError(
|
| 52 |
+
f"`oc.decode` can only take strings or None as input, "
|
| 53 |
+
f"but `{expr}` is of type {type(expr).__name__}"
|
| 54 |
+
)
|
| 55 |
+
|
| 56 |
+
parse_tree = parse(expr, parser_rule="singleElement", lexer_mode="VALUE_MODE")
|
| 57 |
+
val = _parent_.resolve_parse_tree(parse_tree, node=_node_)
|
| 58 |
+
return _get_value(val)
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
def deprecated(
|
| 62 |
+
key: str,
|
| 63 |
+
message: str = "'$OLD_KEY' is deprecated. Change your code and config to use '$NEW_KEY'",
|
| 64 |
+
*,
|
| 65 |
+
_parent_: Container,
|
| 66 |
+
_node_: Node,
|
| 67 |
+
) -> Any:
|
| 68 |
+
from omegaconf._impl import select_node
|
| 69 |
+
|
| 70 |
+
if not isinstance(key, str):
|
| 71 |
+
raise TypeError(
|
| 72 |
+
f"oc.deprecated: interpolation key type is not a string ({type(key).__name__})"
|
| 73 |
+
)
|
| 74 |
+
|
| 75 |
+
if not isinstance(message, str):
|
| 76 |
+
raise TypeError(
|
| 77 |
+
f"oc.deprecated: interpolation message type is not a string ({type(message).__name__})"
|
| 78 |
+
)
|
| 79 |
+
|
| 80 |
+
full_key = _node_._get_full_key(key=None)
|
| 81 |
+
target_node = select_node(_parent_, key, absolute_key=True)
|
| 82 |
+
if target_node is None:
|
| 83 |
+
raise ConfigKeyError(
|
| 84 |
+
f"In oc.deprecated resolver at '{full_key}': Key not found: '{key}'"
|
| 85 |
+
)
|
| 86 |
+
new_key = target_node._get_full_key(key=None)
|
| 87 |
+
msg = string.Template(message).safe_substitute(
|
| 88 |
+
OLD_KEY=full_key,
|
| 89 |
+
NEW_KEY=new_key,
|
| 90 |
+
)
|
| 91 |
+
warnings.warn(category=UserWarning, message=msg)
|
| 92 |
+
return target_node
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
def select(
|
| 96 |
+
key: str,
|
| 97 |
+
default: Any = _DEFAULT_MARKER_,
|
| 98 |
+
*,
|
| 99 |
+
_parent_: Container,
|
| 100 |
+
) -> Any:
|
| 101 |
+
from omegaconf._impl import select_value
|
| 102 |
+
|
| 103 |
+
return select_value(cfg=_parent_, key=key, absolute_key=True, default=default)
|
| 104 |
+
|
| 105 |
+
|
| 106 |
+
__all__ = [
|
| 107 |
+
"create",
|
| 108 |
+
"decode",
|
| 109 |
+
"deprecated",
|
| 110 |
+
"dict",
|
| 111 |
+
"env",
|
| 112 |
+
"select",
|
| 113 |
+
]
|
py311/lib/python3.11/site-packages/omegaconf/resolvers/oc/__pycache__/__init__.cpython-311.pyc
ADDED
|
Binary file (5.41 kB). View file
|
|
|
py311/lib/python3.11/site-packages/omegaconf/resolvers/oc/__pycache__/dict.cpython-311.pyc
ADDED
|
Binary file (3.65 kB). View file
|
|
|
py311/lib/python3.11/site-packages/omegaconf/resolvers/oc/dict.py
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, List
|
| 2 |
+
|
| 3 |
+
from omegaconf import AnyNode, Container, DictConfig, ListConfig
|
| 4 |
+
from omegaconf._utils import Marker
|
| 5 |
+
from omegaconf.basecontainer import BaseContainer
|
| 6 |
+
from omegaconf.errors import ConfigKeyError
|
| 7 |
+
|
| 8 |
+
_DEFAULT_SELECT_MARKER_: Any = Marker("_DEFAULT_SELECT_MARKER_")
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
def keys(
|
| 12 |
+
key: str,
|
| 13 |
+
_parent_: Container,
|
| 14 |
+
) -> ListConfig:
|
| 15 |
+
from omegaconf import OmegaConf
|
| 16 |
+
|
| 17 |
+
assert isinstance(_parent_, BaseContainer)
|
| 18 |
+
|
| 19 |
+
in_dict = _get_and_validate_dict_input(
|
| 20 |
+
key, parent=_parent_, resolver_name="oc.dict.keys"
|
| 21 |
+
)
|
| 22 |
+
|
| 23 |
+
ret = OmegaConf.create(list(in_dict.keys()), parent=_parent_)
|
| 24 |
+
assert isinstance(ret, ListConfig)
|
| 25 |
+
return ret
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
def values(key: str, _root_: BaseContainer, _parent_: Container) -> ListConfig:
|
| 29 |
+
assert isinstance(_parent_, BaseContainer)
|
| 30 |
+
in_dict = _get_and_validate_dict_input(
|
| 31 |
+
key, parent=_parent_, resolver_name="oc.dict.values"
|
| 32 |
+
)
|
| 33 |
+
|
| 34 |
+
content = in_dict._content
|
| 35 |
+
assert isinstance(content, dict)
|
| 36 |
+
|
| 37 |
+
ret = ListConfig([])
|
| 38 |
+
if key.startswith("."):
|
| 39 |
+
key = f".{key}" # extra dot to compensate for extra level of nesting within ret ListConfig
|
| 40 |
+
for k in content:
|
| 41 |
+
ref_node = AnyNode(f"${{{key}.{k!s}}}")
|
| 42 |
+
ret.append(ref_node)
|
| 43 |
+
|
| 44 |
+
# Finalize result by setting proper type and parent.
|
| 45 |
+
element_type: Any = in_dict._metadata.element_type
|
| 46 |
+
ret._metadata.element_type = element_type
|
| 47 |
+
ret._metadata.ref_type = List[element_type]
|
| 48 |
+
ret._set_parent(_parent_)
|
| 49 |
+
|
| 50 |
+
return ret
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
def _get_and_validate_dict_input(
|
| 54 |
+
key: str,
|
| 55 |
+
parent: BaseContainer,
|
| 56 |
+
resolver_name: str,
|
| 57 |
+
) -> DictConfig:
|
| 58 |
+
from omegaconf._impl import select_value
|
| 59 |
+
|
| 60 |
+
if not isinstance(key, str):
|
| 61 |
+
raise TypeError(
|
| 62 |
+
f"`{resolver_name}` requires a string as input, but obtained `{key}` "
|
| 63 |
+
f"of type: {type(key).__name__}"
|
| 64 |
+
)
|
| 65 |
+
|
| 66 |
+
in_dict = select_value(
|
| 67 |
+
parent,
|
| 68 |
+
key,
|
| 69 |
+
throw_on_missing=True,
|
| 70 |
+
absolute_key=True,
|
| 71 |
+
default=_DEFAULT_SELECT_MARKER_,
|
| 72 |
+
)
|
| 73 |
+
|
| 74 |
+
if in_dict is _DEFAULT_SELECT_MARKER_:
|
| 75 |
+
raise ConfigKeyError(f"Key not found: '{key}'")
|
| 76 |
+
|
| 77 |
+
if not isinstance(in_dict, DictConfig):
|
| 78 |
+
raise TypeError(
|
| 79 |
+
f"`{resolver_name}` cannot be applied to objects of type: "
|
| 80 |
+
f"{type(in_dict).__name__}"
|
| 81 |
+
)
|
| 82 |
+
|
| 83 |
+
return in_dict
|
py311/lib/python3.11/site-packages/openai/__pycache__/__init__.cpython-311.pyc
ADDED
|
Binary file (14.4 kB). View file
|
|
|
py311/lib/python3.11/site-packages/openai/__pycache__/_base_client.cpython-311.pyc
ADDED
|
Binary file (77.9 kB). View file
|
|
|
py311/lib/python3.11/site-packages/openai/__pycache__/_client.cpython-311.pyc
ADDED
|
Binary file (58.7 kB). View file
|
|
|
py311/lib/python3.11/site-packages/openai/__pycache__/_compat.cpython-311.pyc
ADDED
|
Binary file (9.6 kB). View file
|
|
|
py311/lib/python3.11/site-packages/openai/__pycache__/_constants.cpython-311.pyc
ADDED
|
Binary file (723 Bytes). View file
|
|
|
py311/lib/python3.11/site-packages/openai/__pycache__/_exceptions.cpython-311.pyc
ADDED
|
Binary file (9.45 kB). View file
|
|
|
py311/lib/python3.11/site-packages/openai/__pycache__/_files.cpython-311.pyc
ADDED
|
Binary file (7.49 kB). View file
|
|
|
py311/lib/python3.11/site-packages/openai/__pycache__/_legacy_response.cpython-311.pyc
ADDED
|
Binary file (24.9 kB). View file
|
|
|
py311/lib/python3.11/site-packages/openai/__pycache__/_models.cpython-311.pyc
ADDED
|
Binary file (37.7 kB). View file
|
|
|
py311/lib/python3.11/site-packages/openai/__pycache__/_module_client.cpython-311.pyc
ADDED
|
Binary file (12.8 kB). View file
|
|
|
py311/lib/python3.11/site-packages/openai/__pycache__/_qs.cpython-311.pyc
ADDED
|
Binary file (6.69 kB). View file
|
|
|
py311/lib/python3.11/site-packages/openai/__pycache__/_resource.cpython-311.pyc
ADDED
|
Binary file (2.34 kB). View file
|
|
|
py311/lib/python3.11/site-packages/openai/__pycache__/_response.cpython-311.pyc
ADDED
|
Binary file (41.1 kB). View file
|
|
|
py311/lib/python3.11/site-packages/openai/__pycache__/_streaming.cpython-311.pyc
ADDED
|
Binary file (19.1 kB). View file
|
|
|
py311/lib/python3.11/site-packages/openai/__pycache__/_types.cpython-311.pyc
ADDED
|
Binary file (10.1 kB). View file
|
|
|
py311/lib/python3.11/site-packages/openai/__pycache__/_version.cpython-311.pyc
ADDED
|
Binary file (244 Bytes). View file
|
|
|
py311/lib/python3.11/site-packages/openai/__pycache__/pagination.cpython-311.pyc
ADDED
|
Binary file (7.76 kB). View file
|
|
|
py311/lib/python3.11/site-packages/openai/__pycache__/version.cpython-311.pyc
ADDED
|
Binary file (321 Bytes). View file
|
|
|
py311/lib/python3.11/site-packages/openai/_extras/__init__.py
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from .numpy_proxy import numpy as numpy, has_numpy as has_numpy
|
| 2 |
+
from .pandas_proxy import pandas as pandas
|
| 3 |
+
from .sounddevice_proxy import sounddevice as sounddevice
|
py311/lib/python3.11/site-packages/openai/_extras/_common.py
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from .._exceptions import OpenAIError
|
| 2 |
+
|
| 3 |
+
INSTRUCTIONS = """
|
| 4 |
+
|
| 5 |
+
OpenAI error:
|
| 6 |
+
|
| 7 |
+
missing `{library}`
|
| 8 |
+
|
| 9 |
+
This feature requires additional dependencies:
|
| 10 |
+
|
| 11 |
+
$ pip install openai[{extra}]
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def format_instructions(*, library: str, extra: str) -> str:
|
| 17 |
+
return INSTRUCTIONS.format(library=library, extra=extra)
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
class MissingDependencyError(OpenAIError):
|
| 21 |
+
pass
|
py311/lib/python3.11/site-packages/openai/_extras/numpy_proxy.py
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
from typing import TYPE_CHECKING, Any
|
| 4 |
+
from typing_extensions import override
|
| 5 |
+
|
| 6 |
+
from .._utils import LazyProxy
|
| 7 |
+
from ._common import MissingDependencyError, format_instructions
|
| 8 |
+
|
| 9 |
+
if TYPE_CHECKING:
|
| 10 |
+
import numpy as numpy
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
NUMPY_INSTRUCTIONS = format_instructions(library="numpy", extra="voice_helpers")
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
class NumpyProxy(LazyProxy[Any]):
|
| 17 |
+
@override
|
| 18 |
+
def __load__(self) -> Any:
|
| 19 |
+
try:
|
| 20 |
+
import numpy
|
| 21 |
+
except ImportError as err:
|
| 22 |
+
raise MissingDependencyError(NUMPY_INSTRUCTIONS) from err
|
| 23 |
+
|
| 24 |
+
return numpy
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
if not TYPE_CHECKING:
|
| 28 |
+
numpy = NumpyProxy()
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
def has_numpy() -> bool:
|
| 32 |
+
try:
|
| 33 |
+
import numpy # noqa: F401 # pyright: ignore[reportUnusedImport]
|
| 34 |
+
except ImportError:
|
| 35 |
+
return False
|
| 36 |
+
|
| 37 |
+
return True
|
py311/lib/python3.11/site-packages/openai/_extras/pandas_proxy.py
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
from typing import TYPE_CHECKING, Any
|
| 4 |
+
from typing_extensions import override
|
| 5 |
+
|
| 6 |
+
from .._utils import LazyProxy
|
| 7 |
+
from ._common import MissingDependencyError, format_instructions
|
| 8 |
+
|
| 9 |
+
if TYPE_CHECKING:
|
| 10 |
+
import pandas as pandas
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
PANDAS_INSTRUCTIONS = format_instructions(library="pandas", extra="datalib")
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
class PandasProxy(LazyProxy[Any]):
|
| 17 |
+
@override
|
| 18 |
+
def __load__(self) -> Any:
|
| 19 |
+
try:
|
| 20 |
+
import pandas
|
| 21 |
+
except ImportError as err:
|
| 22 |
+
raise MissingDependencyError(PANDAS_INSTRUCTIONS) from err
|
| 23 |
+
|
| 24 |
+
return pandas
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
if not TYPE_CHECKING:
|
| 28 |
+
pandas = PandasProxy()
|