{"id":25016667,"url":"https://github.com/mateusjssilva/lexical-syntactic-analysis","last_synced_at":"2025-03-30T07:43:13.635Z","repository":{"id":255859534,"uuid":"723537857","full_name":"MateusjsSilva/lexical-syntactic-analysis","owner":"MateusjsSilva","description":"SimpAlg Parser: A simple parser for the SimpAlg programming language, built using ANTLR.","archived":false,"fork":false,"pushed_at":"2024-09-07T12:26:23.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-05T09:54:01.596Z","etag":null,"topics":["antlr4","java","parser"],"latest_commit_sha":null,"homepage":"","language":"ANTLR","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MateusjsSilva.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-26T01:18:48.000Z","updated_at":"2024-09-15T14:51:25.000Z","dependencies_parsed_at":"2024-09-07T14:57:16.520Z","dependency_job_id":"13949aa4-bc59-452c-b40e-9608a8551808","html_url":"https://github.com/MateusjsSilva/lexical-syntactic-analysis","commit_stats":null,"previous_names":["mateusjssilva/lexical-syntactic-analysis"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MateusjsSilva%2Flexical-syntactic-analysis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MateusjsSilva%2Flexical-syntactic-analysis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MateusjsSilva%2Flexical-syntactic-analysis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MateusjsSilva%2Flexical-syntactic-analysis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MateusjsSilva","download_url":"https://codeload.github.com/MateusjsSilva/lexical-syntactic-analysis/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246290581,"owners_count":20753724,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["antlr4","java","parser"],"created_at":"2025-02-05T09:54:06.031Z","updated_at":"2025-03-30T07:43:13.604Z","avatar_url":"https://github.com/MateusjsSilva.png","language":"ANTLR","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SimpAlg Language Parser\n\nThis project defines a simple programming language called **SimpAlg**, which supports basic variable declarations, control structures, and arithmetic/boolean expressions. The project uses ANTLR to generate a lexer and parser based on the defined grammar.\n\n## Overview\n\nThe **SimpAlg** language consists of two main sections:\n1. **Variable Declarations** - where variables of type `int` and `float` are declared.\n2. **Program Commands** - where the main logic of the program is defined with commands such as printing, reading input, conditional statements (`if`), loops (`while`), and assignments.\n\nThe language supports arithmetic and boolean expressions, basic I/O operations, and standard control flow structures.\n\n## Grammar Structure\n\nThe grammar for **SimpAlg** is written in ANTLR and defines the following:\n- Variable declarations (supporting `int` and `float` types).\n- Basic commands including `print`, `scan`, assignments, conditionals (`if`), and loops (`while`).\n- Arithmetic and boolean expressions with standard operators.\n\n## Installation\n\n### Prerequisites\n\n- **Java** (version 8 or higher)\n- **ANTLR** (version 4)\n\n### Steps\n\n1. **Install ANTLR:**\n   Follow the official installation guide for [ANTLR](https://www.antlr.org/).\n\n2. **Generate Lexer and Parser:**\n   After cloning the repository, generate the lexer and parser using ANTLR:\n   ```bash\n   antlr4 SimpAlg.g4\n   ```\n\n3. **Compile the Java Code:**\n   ```bash\n   javac Main.java\n   ```\n\n4. **Run the Main Program:**\n   ```bash\n   java Main\n   ```\n\n## Usage\n\n1. Write your SimpAlg program in a file, for example teste.txt.\n2. Run the main program to parse and analyze the code.\n3. The program will output the parse tree in the console.\n\n## Contribution\n\nFeel free to open issues or submit pull requests. All contributions are welcome!\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmateusjssilva%2Flexical-syntactic-analysis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmateusjssilva%2Flexical-syntactic-analysis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmateusjssilva%2Flexical-syntactic-analysis/lists"}