{"id":20764598,"url":"https://github.com/chamini2/alex-happy-testing","last_synced_at":"2025-03-11T18:09:20.557Z","repository":{"id":35280658,"uuid":"39541535","full_name":"chamini2/Alex-Happy-testing","owner":"chamini2","description":"Toy calculators for testing Alex and Happy","archived":false,"fork":false,"pushed_at":"2015-08-12T03:54:30.000Z","size":156,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-18T06:08:07.046Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/chamini2.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}},"created_at":"2015-07-23T02:35:33.000Z","updated_at":"2023-02-22T20:32:50.000Z","dependencies_parsed_at":"2022-09-06T16:40:28.668Z","dependency_job_id":null,"html_url":"https://github.com/chamini2/Alex-Happy-testing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chamini2%2FAlex-Happy-testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chamini2%2FAlex-Happy-testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chamini2%2FAlex-Happy-testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chamini2%2FAlex-Happy-testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chamini2","download_url":"https://codeload.github.com/chamini2/Alex-Happy-testing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243086235,"owners_count":20234004,"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":[],"created_at":"2024-11-17T10:52:54.410Z","updated_at":"2025-03-11T18:09:20.539Z","avatar_url":"https://github.com/chamini2.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Alex-Happy-testing\nToy calculators for testing Alex and Happy\n\n## *Pure calculator*\n\n**Prefix binary** operations with integers. The possible operations are `+`, `-`, `*` and `/`, an end of line can be commented with `# comment`.\n\n#### Example\n\n    \u003e + 10 5\n    15\n    \u003e * + 10 5 20\n    300\n    \u003e * 20 + 10 5       # comments are after `#`\n    300\n    \u003e / 16 * 6 - 20 4   # equivalent to 16 / ((20 - 4) * 6)\n    0\n    \u003e / 1 0             # in case of division by zero\n    -- división entre cero\n    \u003e - 5 * 2           # in case of a parsing error\n    -- error de parseo\n    \u003e                   # control-D to end the program\n\n**Note:** the \"`\u003e `\" at the start of every line should be written by the program, not the user.\n\n## *Stateful calculator*\n\n**Infix binary** operations with integers and identifiers. The possible operations are `+`, `-`, `*` and `/`, parenthesis can be used `(` and `)`, an end of line can be commented with `# comment`.\n\nTo define a new identifier, use the syntax `let \u003cidentifier\u003e = \u003cexpression\u003e`.\n\n#### Example\n\n    \u003e 10 + 5\n    15\n    \u003e let x = 5         # first time `x` was seen\n    -- x creado\n    \u003e (10 + x) * 20\n    300\n    \u003e let x = x + 1     # in case of updating an identifier\n    -- x actualizado\n    \u003e x\n    6\n    \u003e 16 / (x * (20 - 4))\n    0\n    \u003e x / 0\n    -- división entre cero\n    \u003e - 5 * 2\n    -- error de parseo\n    \u003e\n\n**Note:** the \"`\u003e `\" at the start of every line should be written by the program, not the user.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchamini2%2Falex-happy-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchamini2%2Falex-happy-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchamini2%2Falex-happy-testing/lists"}