{"id":23789832,"url":"https://github.com/dudesoccer123/java-syntax-validator","last_synced_at":"2025-08-16T10:39:45.433Z","repository":{"id":227833424,"uuid":"772503419","full_name":"dudesoccer123/JAVA-Syntax-Validator","owner":"dudesoccer123","description":"This project aims to develop a custom lexer and parser in Python using PLY (Python Lex-Yacc) to validate common syntax in the Java programming language.","archived":false,"fork":false,"pushed_at":"2024-03-15T10:24:29.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-21T12:43:19.939Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dudesoccer123.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-03-15T10:17:38.000Z","updated_at":"2024-03-15T10:18:31.000Z","dependencies_parsed_at":"2024-03-15T11:49:54.885Z","dependency_job_id":null,"html_url":"https://github.com/dudesoccer123/JAVA-Syntax-Validator","commit_stats":null,"previous_names":["dudesoccer123/java-syntax-validator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dudesoccer123/JAVA-Syntax-Validator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dudesoccer123%2FJAVA-Syntax-Validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dudesoccer123%2FJAVA-Syntax-Validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dudesoccer123%2FJAVA-Syntax-Validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dudesoccer123%2FJAVA-Syntax-Validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dudesoccer123","download_url":"https://codeload.github.com/dudesoccer123/JAVA-Syntax-Validator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dudesoccer123%2FJAVA-Syntax-Validator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270702484,"owners_count":24630870,"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","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-01-01T17:16:56.978Z","updated_at":"2025-08-16T10:39:45.383Z","avatar_url":"https://github.com/dudesoccer123.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JAVA-Syntax-Validator\nThis project aims to develop a custom lexer and parser in Python using PLY (Python Lex-Yacc) to validate common syntax in the Java programming language.\n\n## Features\n\n- **Custom Lexer**: Tokenizes input Java code according to defined regular expressions.\n- **Custom Parser**: Parses tokenized input according to specified grammar rules to validate syntax.\n- **Modular Design**: Easily extendable for adding more syntax validations.\n\n## Installation\n\n1. Clone this repository:\n\n    ```bash\n    git clone https://github.com/your_username/java-syntax-validator.git\n    ```\n\n2. Install the required Python packages:\n\n    ```bash\n    pip install ply\n    ```\n## Usage\n\n### Running the Array Declaration Syntax Validation\n\n1. Navigate to the project directory.\n2. Run the following command:\n\n    ```bash\n    python code_array.py\n    ```\n\n3. Enter a sample array declaration statement when prompted, e.g. `int[] arr = new int[50];`.\n4. The program will output whether the input statement is a valid Java array declaration or not.\n\n### Running Other Syntax Validations\n\n1. Repeat steps 2-4 from the above section, replacing `code_array.py` with the corresponding validator script (e.g., `code_construct.py`).\n\n---\n\n**Note:** This project is intended for educational purposes and may not cover the full spectrum of Java syntax. Use at your discretion.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdudesoccer123%2Fjava-syntax-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdudesoccer123%2Fjava-syntax-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdudesoccer123%2Fjava-syntax-validator/lists"}