diff options
Diffstat (limited to 'nivis-python')
| -rw-r--r-- | nivis-python/Lib/IOStream/__init__.nivis | 1 | ||||
| -rw-r--r-- | nivis-python/Lib/IOStream/__init__.psi | 1 | ||||
| -rw-r--r-- | nivis-python/__init__.py | 10 | ||||
| -rw-r--r-- | nivis-python/execution.py | 4 | ||||
| -rw-r--r-- | nivis-python/interpreter.py | 2 | ||||
| -rw-r--r-- | nivis-python/lexer.py | 2 | ||||
| -rw-r--r-- | nivis-python/parsers.py | 2 |
7 files changed, 11 insertions, 11 deletions
diff --git a/nivis-python/Lib/IOStream/__init__.nivis b/nivis-python/Lib/IOStream/__init__.nivis new file mode 100644 index 0000000..d38024d --- /dev/null +++ b/nivis-python/Lib/IOStream/__init__.nivis @@ -0,0 +1 @@ +# TODO: nivis Plugins in VsCode
\ No newline at end of file diff --git a/nivis-python/Lib/IOStream/__init__.psi b/nivis-python/Lib/IOStream/__init__.psi deleted file mode 100644 index a93ea30..0000000 --- a/nivis-python/Lib/IOStream/__init__.psi +++ /dev/null @@ -1 +0,0 @@ -# TODO: Psi Plugins in VsCode
\ No newline at end of file diff --git a/nivis-python/__init__.py b/nivis-python/__init__.py index f19e06b..943368b 100644 --- a/nivis-python/__init__.py +++ b/nivis-python/__init__.py @@ -1,11 +1,11 @@ -"""Psi -@TODO 词法分析器 -@BODY 似乎要写的还蛮多的,所以先写几个TODO List +"""nivis + +@TODO Lexer support +@BODY Lex function. """ -__all__ = ["psi", "Exception", "interpreter", "lexer", "Parser"] +__all__ = ["Execution", "Interpreter", "Lexer", "Parser"] -from .psi import psi from .execution import Execution from .interpreter import Interpreter from .lexer import Lexer diff --git a/nivis-python/execution.py b/nivis-python/execution.py index a11d55b..09055cf 100644 --- a/nivis-python/execution.py +++ b/nivis-python/execution.py @@ -1,5 +1,5 @@ -from psi.parsers import Parser -from psi.interpreter import Interpreter +from .parsers import Parser +from .interpreter import Interpreter __all__ = ["Execution"] diff --git a/nivis-python/interpreter.py b/nivis-python/interpreter.py index 0817274..6322180 100644 --- a/nivis-python/interpreter.py +++ b/nivis-python/interpreter.py @@ -1,4 +1,4 @@ -from psi.lexer import Token +from .lexer import Token __all__ = ["Interpreter"] diff --git a/nivis-python/lexer.py b/nivis-python/lexer.py index f4dafc4..7ba94e3 100644 --- a/nivis-python/lexer.py +++ b/nivis-python/lexer.py @@ -52,7 +52,7 @@ while token['type'] != 'EOF': print("\nAll tokens:") print([t['type'] for t in lexer]) """ -from psi.exception import ValueError +from .exception import ValueError __all__ = ["Token", "Lexer"] diff --git a/nivis-python/parsers.py b/nivis-python/parsers.py index 08c3a2c..ca004f7 100644 --- a/nivis-python/parsers.py +++ b/nivis-python/parsers.py @@ -1,4 +1,4 @@ -from psi.lexer import Lexer, Token +from .lexer import Lexer, Token __all__ = ["Parser"] |
