-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Lexer/Parser using pyparsing for lshell #255
Open
ghantoos
wants to merge
11
commits into
master
Choose a base branch
from
f/lexer_parser
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Current test status: debian_tests | ============================= test session starts ============================== debian_tests | platform linux -- Python 3.11.2, pytest-7.2.1, pluggy-1.0.0+repack debian_tests | cachedir: /tmp/.lshell_pytest_cache debian_tests | rootdir: /home/testuser/lshell, configfile: pytest.ini debian_tests | collected 120 items debian_tests | debian_tests | test/test_builtins.py ........... [ 9%] debian_tests | test/test_command_execution.py .............. [ 20%] debian_tests | test/test_completion.py ..... [ 25%] debian_tests | test/test_config.py ....... [ 30%] debian_tests | test/test_env_vars.py ....... [ 36%] debian_tests | test/test_exit.py .. [ 38%] debian_tests | test/test_file_extension.py ... [ 40%] debian_tests | test/test_path.py ...FF... [ 47%] debian_tests | test/test_ps2.py ..F.. [ 51%] debian_tests | test/test_regex.py F..F [ 55%] debian_tests | test/test_scripts.py FF [ 56%] debian_tests | test/test_security.py .FF [ 59%] debian_tests | test/test_signals.py .FF.F..FFF [ 67%] debian_tests | test/test_ssh.py ... [ 70%] debian_tests | test/test_unit.py .................................... [100%] debian_tests | debian_tests | =========================== short test summary info ============================ debian_tests | FAILED test/test_path.py::TestFunctions::test_11_etc_passwd_1 - AssertionErro... debian_tests | FAILED test/test_path.py::TestFunctions::test_12_etc_passwd_2 - AssertionErro... debian_tests | FAILED test/test_ps2.py::TestFunctions::test_65_multi_line_command_security_echo debian_tests | FAILED test/test_regex.py::TestFunctions::test_51_grep_valid_log_entry - Asse... debian_tests | FAILED test/test_regex.py::TestFunctions::test_54_grep_special_characters_in_uid debian_tests | FAILED test/test_scripts.py::TestFunctions::test_39_script_execution_with_template debian_tests | FAILED test/test_scripts.py::TestFunctions::test_40_script_execution_with_template_strict debian_tests | FAILED test/test_security.py::TestFunctions::test_31_security_echo_freedom_and_help debian_tests | FAILED test/test_security.py::TestFunctions::test_32_security_echo_freedom_and_cd debian_tests | FAILED test/test_signals.py::TestFunctions::test_28_catch_terminal_ctrl_j - A... debian_tests | FAILED test/test_signals.py::TestFunctions::test_29_catch_terminal_ctrl_k - A... debian_tests | FAILED test/test_signals.py::TestFunctions::test_72_background_command_with_ampersand debian_tests | FAILED test/test_signals.py::TestFunctions::test_75_interrupt_background_commands debian_tests | FAILED test/test_signals.py::TestFunctions::test_76_jobs_after_completion - p... debian_tests | FAILED test/test_signals.py::TestFunctions::test_77_mix_background_and_foreground debian_tests | ================== 15 failed, 105 passed in 63.61s (0:01:03) ===================
Current tests status: debian_tests | ============================= test session starts ============================== debian_tests | platform linux -- Python 3.11.2, pytest-7.2.1, pluggy-1.0.0+repack debian_tests | cachedir: /tmp/.lshell_pytest_cache debian_tests | rootdir: /home/testuser/lshell, configfile: pytest.ini debian_tests | collected 120 items debian_tests | debian_tests | test/test_builtins.py ........... [ 9%] debian_tests | test/test_command_execution.py .............. [ 20%] debian_tests | test/test_completion.py ..... [ 25%] debian_tests | test/test_config.py ....... [ 30%] debian_tests | test/test_env_vars.py ....... [ 36%] debian_tests | test/test_exit.py .. [ 38%] debian_tests | test/test_file_extension.py ... [ 40%] debian_tests | test/test_path.py ........ [ 47%] debian_tests | test/test_ps2.py ..F.. [ 51%] debian_tests | test/test_regex.py F..F [ 55%] debian_tests | test/test_scripts.py FF [ 56%] debian_tests | test/test_security.py .FF [ 59%] debian_tests | test/test_signals.py .FF.F..FFF [ 67%] debian_tests | test/test_ssh.py .F. [ 70%] debian_tests | test/test_unit.py .................................... [100%] debian_tests |
debian_tests | ============================= test session starts ============================== debian_tests | platform linux -- Python 3.11.2, pytest-7.2.1, pluggy-1.0.0+repack debian_tests | cachedir: /tmp/.lshell_pytest_cache debian_tests | rootdir: /home/testuser/lshell, configfile: pytest.ini debian_tests | collected 120 items debian_tests | debian_tests | test/test_builtins.py ........... [ 9%] debian_tests | test/test_command_execution.py .............. [ 20%] debian_tests | test/test_completion.py ..... [ 25%] debian_tests | test/test_config.py ....... [ 30%] debian_tests | test/test_env_vars.py ....... [ 36%] debian_tests | test/test_exit.py .F [ 38%] debian_tests | test/test_file_extension.py ... [ 40%] debian_tests | test/test_path.py ........ [ 47%] debian_tests | test/test_ps2.py ..... [ 51%] debian_tests | test/test_regex.py .... [ 55%] debian_tests | test/test_scripts.py FF [ 56%] debian_tests | test/test_security.py .FF [ 59%] debian_tests | test/test_signals.py .FF.F..FFF [ 67%] debian_tests | test/test_ssh.py ... [ 70%] debian_tests | test/test_unit.py .................................... [100%] debian_tests |
debian_tests | ============================= test session starts ============================== debian_tests | platform linux -- Python 3.11.2, pytest-7.2.1, pluggy-1.0.0+repack debian_tests | cachedir: /tmp/.lshell_pytest_cache debian_tests | rootdir: /home/testuser/lshell, configfile: pytest.ini debian_tests | collected 120 items debian_tests | debian_tests | test/test_builtins.py ........... [ 9%] debian_tests | test/test_command_execution.py .............. [ 20%] debian_tests | test/test_completion.py ..... [ 25%] debian_tests | test/test_config.py ....... [ 30%] debian_tests | test/test_env_vars.py ....... [ 36%] debian_tests | test/test_exit.py .. [ 38%] debian_tests | test/test_file_extension.py ... [ 40%] debian_tests | test/test_path.py ........ [ 47%] debian_tests | test/test_ps2.py ..... [ 51%] debian_tests | test/test_regex.py .... [ 55%] debian_tests | test/test_scripts.py .. [ 56%] debian_tests | test/test_security.py .FF [ 59%] debian_tests | test/test_signals.py .FF.F..FFF [ 67%] debian_tests | test/test_ssh.py ..F [ 70%] debian_tests | test/test_unit.py .................................... [100%] debian_tests |
debian_tests | ============================= test session starts ============================== debian_tests | platform linux -- Python 3.11.2, pytest-7.2.1, pluggy-1.0.0+repack -- /usr/bin/python3 debian_tests | cachedir: /tmp/.lshell_pytest_cache debian_tests | rootdir: /home/testuser/lshell, configfile: pytest.ini debian_tests | collecting ... collected 3 items debian_tests | debian_tests | test/test_security.py::TestFunctions::test_27_checksecure_awk PASSED [ 33%] debian_tests | test/test_security.py::TestFunctions::test_31_security_echo_freedom_and_help PASSED [ 66%] debian_tests | test/test_security.py::TestFunctions::test_32_security_echo_freedom_and_cd PASSED [100%] debian_tests | debian_tests | ============================== 3 passed in 1.72s =============================== debian_tests | debian_tests | ------------------------------------ debian_tests | Your code has been rated at 10.00/10 debian_tests | debian_tests exited with code 0
debian_tests | ============================= test session starts ============================== debian_tests | platform linux -- Python 3.11.2, pytest-7.2.1, pluggy-1.0.0+repack debian_tests | cachedir: /tmp/.lshell_pytest_cache debian_tests | rootdir: /home/testuser/lshell, configfile: pytest.ini debian_tests | collected 120 items debian_tests | debian_tests | test/test_builtins.py ........... [ 9%] debian_tests | test/test_command_execution.py .............. [ 20%] debian_tests | test/test_completion.py ..... [ 25%] debian_tests | test/test_config.py ....... [ 30%] debian_tests | test/test_env_vars.py ....... [ 36%] debian_tests | test/test_exit.py .. [ 38%] debian_tests | test/test_file_extension.py ... [ 40%] debian_tests | test/test_path.py ........ [ 47%] debian_tests | test/test_ps2.py ..... [ 51%] debian_tests | test/test_regex.py .... [ 55%] debian_tests | test/test_scripts.py .. [ 56%] debian_tests | test/test_security.py ... [ 59%] debian_tests | test/test_signals.py .......... [ 67%] debian_tests | test/test_ssh.py ... [ 70%] debian_tests | test/test_unit.py .................................... [100%] debian_tests | debian_tests | ============================= 120 passed in 45.58s ============================= debian_tests | debian_tests | ------------------------------------ debian_tests | Your code has been rated at 10.00/10 debian_tests | debian_tests exited with code 0
@omega8cc if by any chance you are able to test this change, it would be awesome! It's a rather big change to add a proper lexer/parser to lshell. Let me know if you have any questions. No worries if you can't. Thanks! |
We will test this out and report back, thanks for the heads up! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes: #87