├── .github └── workflows │ └── action.yml ├── .gitignore ├── LICENSE ├── README.md ├── ast └── ast.go ├── demos ├── fibonacci_sequence.py ├── iterator.py └── longest_repeated_subsequence.py ├── evaluator ├── env.go ├── evaluator.go └── object.go ├── go.mod ├── lexer ├── lexer.go └── lexer_test.go ├── main.go ├── parser ├── parser.go └── parser_test.go ├── pytest └── pytest.go ├── repl └── repl.go ├── test └── run_test.go ├── tests ├── test_builtin.py ├── test_class.py ├── test_dict.py ├── test_for.py ├── test_function.py ├── test_ifstatement.py ├── test_integer.py ├── test_list.py ├── test_operator.py ├── test_other.py ├── test_string.py └── test_while.py └── token └── token.go /.github/workflows/action.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realyixuan/gsubpy/HEAD/.github/workflows/action.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /demo.py 2 | **/.vscode 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realyixuan/gsubpy/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realyixuan/gsubpy/HEAD/README.md -------------------------------------------------------------------------------- /ast/ast.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realyixuan/gsubpy/HEAD/ast/ast.go -------------------------------------------------------------------------------- /demos/fibonacci_sequence.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realyixuan/gsubpy/HEAD/demos/fibonacci_sequence.py -------------------------------------------------------------------------------- /demos/iterator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realyixuan/gsubpy/HEAD/demos/iterator.py -------------------------------------------------------------------------------- /demos/longest_repeated_subsequence.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realyixuan/gsubpy/HEAD/demos/longest_repeated_subsequence.py -------------------------------------------------------------------------------- /evaluator/env.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realyixuan/gsubpy/HEAD/evaluator/env.go -------------------------------------------------------------------------------- /evaluator/evaluator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realyixuan/gsubpy/HEAD/evaluator/evaluator.go -------------------------------------------------------------------------------- /evaluator/object.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realyixuan/gsubpy/HEAD/evaluator/object.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/realyixuan/gsubpy 2 | 3 | go 1.20 4 | -------------------------------------------------------------------------------- /lexer/lexer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realyixuan/gsubpy/HEAD/lexer/lexer.go -------------------------------------------------------------------------------- /lexer/lexer_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realyixuan/gsubpy/HEAD/lexer/lexer_test.go -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realyixuan/gsubpy/HEAD/main.go -------------------------------------------------------------------------------- /parser/parser.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realyixuan/gsubpy/HEAD/parser/parser.go -------------------------------------------------------------------------------- /parser/parser_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realyixuan/gsubpy/HEAD/parser/parser_test.go -------------------------------------------------------------------------------- /pytest/pytest.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realyixuan/gsubpy/HEAD/pytest/pytest.go -------------------------------------------------------------------------------- /repl/repl.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realyixuan/gsubpy/HEAD/repl/repl.go -------------------------------------------------------------------------------- /test/run_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realyixuan/gsubpy/HEAD/test/run_test.go -------------------------------------------------------------------------------- /tests/test_builtin.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realyixuan/gsubpy/HEAD/tests/test_builtin.py -------------------------------------------------------------------------------- /tests/test_class.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realyixuan/gsubpy/HEAD/tests/test_class.py -------------------------------------------------------------------------------- /tests/test_dict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realyixuan/gsubpy/HEAD/tests/test_dict.py -------------------------------------------------------------------------------- /tests/test_for.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realyixuan/gsubpy/HEAD/tests/test_for.py -------------------------------------------------------------------------------- /tests/test_function.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realyixuan/gsubpy/HEAD/tests/test_function.py -------------------------------------------------------------------------------- /tests/test_ifstatement.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realyixuan/gsubpy/HEAD/tests/test_ifstatement.py -------------------------------------------------------------------------------- /tests/test_integer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realyixuan/gsubpy/HEAD/tests/test_integer.py -------------------------------------------------------------------------------- /tests/test_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realyixuan/gsubpy/HEAD/tests/test_list.py -------------------------------------------------------------------------------- /tests/test_operator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realyixuan/gsubpy/HEAD/tests/test_operator.py -------------------------------------------------------------------------------- /tests/test_other.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realyixuan/gsubpy/HEAD/tests/test_other.py -------------------------------------------------------------------------------- /tests/test_string.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realyixuan/gsubpy/HEAD/tests/test_string.py -------------------------------------------------------------------------------- /tests/test_while.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realyixuan/gsubpy/HEAD/tests/test_while.py -------------------------------------------------------------------------------- /token/token.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realyixuan/gsubpy/HEAD/token/token.go --------------------------------------------------------------------------------