{"id":20712407,"url":"https://github.com/lucasmagnum/simple-interpreter","last_synced_at":"2025-08-24T17:47:35.272Z","repository":{"id":72520380,"uuid":"97237378","full_name":"LucasMagnum/simple-interpreter","owner":"LucasMagnum","description":"Simple interpreter for Pascal language.","archived":false,"fork":false,"pushed_at":"2017-08-29T09:35:39.000Z","size":45,"stargazers_count":4,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T06:35:29.199Z","etag":null,"topics":["experiment","interpreter","pascal-interpreter","python","python3"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/LucasMagnum.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2017-07-14T13:35:59.000Z","updated_at":"2023-06-13T22:17:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"1ddee1dd-4eda-43c7-8f83-4c319a28d580","html_url":"https://github.com/LucasMagnum/simple-interpreter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LucasMagnum/simple-interpreter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucasMagnum%2Fsimple-interpreter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucasMagnum%2Fsimple-interpreter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucasMagnum%2Fsimple-interpreter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucasMagnum%2Fsimple-interpreter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LucasMagnum","download_url":"https://codeload.github.com/LucasMagnum/simple-interpreter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucasMagnum%2Fsimple-interpreter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271916235,"owners_count":24843194,"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-24T02:00:11.135Z","response_time":111,"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":["experiment","interpreter","pascal-interpreter","python","python3"],"created_at":"2024-11-17T02:19:40.923Z","updated_at":"2025-08-24T17:47:35.202Z","avatar_url":"https://github.com/LucasMagnum.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Simple Interpreter\n==================\n\n[![CircleCI](https://circleci.com/gh/LucasMagnum/simple-interpreter.svg?style=shield)](https://circleci.com/gh/LucasMagnum/simple-interpreter)\n[![codecov](https://codecov.io/gh/LucasMagnum/simple-interpreter/branch/master/graph/badge.svg)](https://codecov.io/gh/LucasMagnum/simple-interpreter)\n\nSimple interpreter for Pascal language built using Python.\nThis interpreter was built following the `Let's Build a Simple Interpreter` tutorial.\nThis is an experiment project, the aim is have fun and learn more about compilers \u0026 interpreters.\n\n\n### How to use it\n\nThis interpreter can either process a file or run in the REPL mode.\n\nBasically, we have to follow the steps bellow:\n\n1. Clone this repository\n2. Install all dependencies (see [setup](#1-setup))\n3. Process a Pascal file (see [process a file](#3-processing-a-pascal-file))\n4. REPL version (see [REPL version](#4-repl))\n\n\n### Table of Contents\n\n  * [1. Setup](#1-setup)\n  * [2. Running tests](#2-running-tests)\n  * [3. Processing a Pascal file](#3-processing-a-pascal-file)\n  * [4. REPL](#4-repl)\n  * [Useful links](#useful-links)\n\n---\n\n## Development\n\n### 1. Setup\n\nTo properly run this interpreter, we should install the dependencies:\n\n  ```bash\n  make setup\n  ```\n\n### 2. Running tests\n\nWe have two kinds of tests implemented: unit tests and behaviour tests. We can run the tests with the following commands:\n\n  ```bash\n  make tests   # Run both unit and behaviour tests\n  make unit-tests\n  make behaviour-tests\n  ```\n\n### 3. Processing a Pascal file\n  \nWe can run the application and see the web version of this interpreter.\nJust have to run the command bellow:\n  \n  ```bash\n  make run \u003cfilename\u003e.pas\n  ```\n\n### 4. REPL\n\nThis interpreter also has a REPL mode that can be enable with the following command:\n\n  ```bash\n  make run-repl\n  ```\n\n### Running inside docker\n\nTo run this interpreter inside docker, we have to follow the commands bellow:\n\n1. Install docker\n2. Build simple interpreter image\n\n     ```bash\n     docker build -t simple-interpreter\n     ```\n\n3. Run commands using docker\n\n      ```bash\n      docker run -i -v `pwd`:/simple-interpreter make tests\n      ```\n\n\n### Useful links\n\n  1 - [Let's build a simple interpreter](https://ruslanspivak.com/lsbasi-part1/)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasmagnum%2Fsimple-interpreter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucasmagnum%2Fsimple-interpreter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasmagnum%2Fsimple-interpreter/lists"}