{"id":24963131,"url":"https://github.com/missipsag/lex-ical-analyzer","last_synced_at":"2026-02-04T08:44:10.976Z","repository":{"id":270324357,"uuid":"910007882","full_name":"missipsag/LEX-ical-Analyzer","owner":"missipsag","description":"This project implements a lexical analyzer using Lex to tokenize and analyze the structure of a given input file. It efficiently identifies tokens such as keywords, identifiers, operators, and literals, serving as the foundational component of a compiler or interpreter.","archived":false,"fork":false,"pushed_at":"2024-12-30T09:46:52.000Z","size":42,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T23:30:24.588Z","etag":null,"topics":["compiler","flex","lex","lexical-analysis","lexical-analyzer","lexical-parser"],"latest_commit_sha":null,"homepage":"","language":"C","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/missipsag.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":"2024-12-30T09:12:12.000Z","updated_at":"2025-01-26T19:02:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"2f140de0-f9d4-48bf-8452-e9fa83f94724","html_url":"https://github.com/missipsag/LEX-ical-Analyzer","commit_stats":null,"previous_names":["missipsag/lex-ical-analyzer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/missipsag%2FLEX-ical-Analyzer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/missipsag%2FLEX-ical-Analyzer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/missipsag%2FLEX-ical-Analyzer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/missipsag%2FLEX-ical-Analyzer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/missipsag","download_url":"https://codeload.github.com/missipsag/LEX-ical-Analyzer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249127541,"owners_count":21216994,"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":["compiler","flex","lex","lexical-analysis","lexical-analyzer","lexical-parser"],"created_at":"2025-02-03T09:54:53.069Z","updated_at":"2026-02-04T08:44:05.950Z","avatar_url":"https://github.com/missipsag.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Lexical Analyzer  \n\nThis project implements a lexical analyzer using **Lex**. It processes defined tokens to analyze a specific language, identifying keywords, operators, and important syntactic structures.\n\n## Tokens Table  \n\nHere are the tokens supported by the lexical analyzer, along with their models and attributes:  \n\n\n| **Token**  | **Model**                      | **Attribute**          |\n|------------|---------------------------------|------------------------|\n| `FIN`      | `EOF` | `\\0`                    | -                      |\n| `PV`       | `;`                             | -                      |\n| `IF`       | `if`                            | -                      |\n| `THEN`     | `then`                          | -                      |\n| `ELSE`     | `else`                          | -                      |\n| `END`      | `end`                           | -                      |\n| `REPEAT`   | `repeat`                        | -                      |\n| `UNTIL`    | `until`                         | -                      |\n| `ID`       | `L(_?\\|(L\\|C))*`                | `NOM`                  |\n| `READ`     | `read`                          | -                      |\n| `WRITE`    | `write`                         | -                      |\n| `OPREL`    | `\u003c \\| =`                         | `COPREL ∈ {INF, EGAL}` |\n| `OPADD`    | `+ \\| -`                         | `COPADD ∈ {PLUS, MOINS}` |\n| `OPMUL`    | `* \\| /`                         | `COPMUL ∈ {PROD, DIV}` |\n| `PARG`     | `(`                             | -                      |\n| `PARD`     | `)`                             | -                      |\n| `ENTIER`   | `C+`                      | `VAL`                  |\n| `AFFECT`   | `:=`                            | -                      |\n\n### Notes  \n- The regular expressions `L` and `C` correspond to `[A-Za-z]` and `[0-9]`, respectively.  \n\n## Features  \n- **Lexical Analysis**: Identifies tokens in a textual input.  \n- **Extended Support**: Handles operators, identifiers, and integers.  \n- **Extensible**: Tokens can be modified or extended to fit other requirements.  \n\n## Usage  \n\n1. **Clone the Repository**  \n   ```bash\n   git clone https://github.com/your_username/lexical-analyzer.git\n   cd lexical-analyzer\n   ```\n\n2. **Compile the Lex File**  \n   ```bash\n   flex lexer.l\n   gcc lex.yy.c -o lexical-analyzer -lfl\n   ```\n\n3. **Run the Lexical Analyzer**  \n   ```bash\n   ./lexical-analyzer \u003c input.txt\n   ```\n\n## License  \nThis project is open-source and available under the [MIT License](LICENSE).  ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmissipsag%2Flex-ical-analyzer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmissipsag%2Flex-ical-analyzer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmissipsag%2Flex-ical-analyzer/lists"}