varphi-parsing-tools


Namevarphi-parsing-tools JSON
Version 0.0.4 PyPI version JSON
download
home_pagehttps://github.com/hassanelsheikha/varphi_parsing_tools
SummaryLexer, parser, and representor for the Varphi programming language.
upload_time2024-12-01 01:59:05
maintainerNone
docs_urlNone
authorHassan El-Sheikha
requires_pythonNone
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # varphi_parsing_tools

This repository contains the grammar for the Varphi Programming Language, as well as an ANTLR-generated lexer and parser, for use by `vpc` and by other potential compilers and interpreters.

Contributors editing the grammar for the language may make their changes to `varphi_parsing_tools/Varphi.g4`, and then follow the follow instructions

1. Install the ANTLR runtime for Python

    ```
    pip install antlr4-python3-runtime
    ```

2. Download the ANTLR `.jar` from [here](https://www.antlr.org/download.html)

3. Open a new terminal, change into this repository directory, and run

    ```
    java -jar <PATH TO ANTLR JAR> -Dlanguage=Python3 varphi_parsing_tools/Varphi.g4
    ```

This will generate the Python files required to support the new grammar. There are 

* `varphi_parsing_tools/VarphiLexer.py`
* `varphi_parsing_tools/VarphiParser.py`
* `varphi_parsing_tools/VarphiListener.py`

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hassanelsheikha/varphi_parsing_tools",
    "name": "varphi-parsing-tools",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "Hassan El-Sheikha",
    "author_email": "hassan.elsheikha@utoronto.ca",
    "download_url": "https://files.pythonhosted.org/packages/8a/22/47bd9451cc6b78d40bb23a1745865bcf152c5b43ec4a119082b815b2e9d1/varphi_parsing_tools-0.0.4.tar.gz",
    "platform": null,
    "description": "# varphi_parsing_tools\r\n\r\nThis repository contains the grammar for the Varphi Programming Language, as well as an ANTLR-generated lexer and parser, for use by `vpc` and by other potential compilers and interpreters.\r\n\r\nContributors editing the grammar for the language may make their changes to `varphi_parsing_tools/Varphi.g4`, and then follow the follow instructions\r\n\r\n1. Install the ANTLR runtime for Python\r\n\r\n    ```\r\n    pip install antlr4-python3-runtime\r\n    ```\r\n\r\n2. Download the ANTLR `.jar` from [here](https://www.antlr.org/download.html)\r\n\r\n3. Open a new terminal, change into this repository directory, and run\r\n\r\n    ```\r\n    java -jar <PATH TO ANTLR JAR> -Dlanguage=Python3 varphi_parsing_tools/Varphi.g4\r\n    ```\r\n\r\nThis will generate the Python files required to support the new grammar. There are \r\n\r\n* `varphi_parsing_tools/VarphiLexer.py`\r\n* `varphi_parsing_tools/VarphiParser.py`\r\n* `varphi_parsing_tools/VarphiListener.py`\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Lexer, parser, and representor for the Varphi programming language.",
    "version": "0.0.4",
    "project_urls": {
        "Homepage": "https://github.com/hassanelsheikha/varphi_parsing_tools"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3a481b7dc5a5d3799708c3bf0190bf0f654414014ced275bf18d1a191ebae277",
                "md5": "bd0d275be124b902553d9639fbe142a4",
                "sha256": "4055cc9e2aa3e740bd17f7d77db6d528c3cd7f811bad43d6354eb3b5e9eb6f83"
            },
            "downloads": -1,
            "filename": "varphi_parsing_tools-0.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bd0d275be124b902553d9639fbe142a4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 8859,
            "upload_time": "2024-12-01T01:58:46",
            "upload_time_iso_8601": "2024-12-01T01:58:46.103744Z",
            "url": "https://files.pythonhosted.org/packages/3a/48/1b7dc5a5d3799708c3bf0190bf0f654414014ced275bf18d1a191ebae277/varphi_parsing_tools-0.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8a2247bd9451cc6b78d40bb23a1745865bcf152c5b43ec4a119082b815b2e9d1",
                "md5": "9a04357626ebbd193b8f5b1e2f6fe0b9",
                "sha256": "28376483c8554396acfb7f48b712e2808fd6e0ba6c2ded008f231d06982f764d"
            },
            "downloads": -1,
            "filename": "varphi_parsing_tools-0.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "9a04357626ebbd193b8f5b1e2f6fe0b9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 7466,
            "upload_time": "2024-12-01T01:59:05",
            "upload_time_iso_8601": "2024-12-01T01:59:05.696736Z",
            "url": "https://files.pythonhosted.org/packages/8a/22/47bd9451cc6b78d40bb23a1745865bcf152c5b43ec4a119082b815b2e9d1/varphi_parsing_tools-0.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-01 01:59:05",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hassanelsheikha",
    "github_project": "varphi_parsing_tools",
    "github_not_found": true,
    "lcname": "varphi-parsing-tools"
}
        
Elapsed time: 2.08950s