{"id":18006330,"url":"https://github.com/lukakerr/sea","last_synced_at":"2025-09-07T14:09:34.536Z","repository":{"id":85632496,"uuid":"158030494","full_name":"lukakerr/Sea","owner":"lukakerr","description":"A simple lexer, parser and evaluator for a C like language","archived":false,"fork":false,"pushed_at":"2019-01-01T09:00:16.000Z","size":67,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-14T01:06:37.217Z","etag":null,"topics":["evaluator","lexer","parser","recursive-descent-parser"],"latest_commit_sha":null,"homepage":"","language":"Haskell","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/lukakerr.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,"publiccode":null,"codemeta":null}},"created_at":"2018-11-17T22:33:35.000Z","updated_at":"2019-06-10T05:25:57.000Z","dependencies_parsed_at":"2023-03-06T22:30:22.606Z","dependency_job_id":null,"html_url":"https://github.com/lukakerr/Sea","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lukakerr/Sea","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukakerr%2FSea","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukakerr%2FSea/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukakerr%2FSea/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukakerr%2FSea/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lukakerr","download_url":"https://codeload.github.com/lukakerr/Sea/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukakerr%2FSea/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274046000,"owners_count":25212982,"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-09-07T02:00:09.463Z","response_time":67,"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":["evaluator","lexer","parser","recursive-descent-parser"],"created_at":"2024-10-30T01:07:58.057Z","updated_at":"2025-09-07T14:09:34.507Z","avatar_url":"https://github.com/lukakerr.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sea\n\nA simple evaluator for a C like language, currently a work in progress.\n\nBuilt to learn Haskell and the process of writing a lexer, parser and evaluator.\n\nA recursive descent parser is used for parsing.\n\nCurrently in the very early stages of development.\n\n### Running\n\nFirst build `sea`\n\n```bash\n$ stack build\n```\n\nYou can write a `.sea` program and evaluate, lex or parse it:\n\n```bash\n# Run the evaluator\n$ stack run sea tests/evaluator/2.sea\n\n# Run the lexer\n$ stack run sea tests/evaluator/2.sea --lexer\n\n# Run the parser\n$ stack run sea tests/evaluator/2.sea --parser\n```\n\nOr you can run the interactive REPL:\n\n```bash\n$ stack run sea repl\n\n# Sea\u003e 1 + 2\n# 3\n# Sea\u003e str n = \"Hello Sea\" n\n# Hello Sea\n# Sea\u003e :q\n```\n\n### Testing\n\n```bash\n$ ./test.sh\n```\n\n### Examples\n\nBelow is an example `.sea` program to demonstrate the syntax.\nThis will be updated as the parser and evaluator progress.\n\n```assembly\n;; sea only supports a single main {} function currently\nfn main {} (\n  num n = 3 * 4\n  str s = \"Hello world\"\n  str ss = s + \" again\"\n\n  if {n \u003e 10} (\n    ret ss\n  ) else (\n    ret s\n  )\n)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukakerr%2Fsea","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukakerr%2Fsea","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukakerr%2Fsea/lists"}