{"id":18855257,"url":"https://github.com/fogus/baysick","last_synced_at":"2025-10-08T14:19:53.677Z","repository":{"id":521879,"uuid":"150246","full_name":"fogus/baysick","owner":"fogus","description":"An embedded Insane-specific Language for Scala implementing the BASIC programming language","archived":false,"fork":false,"pushed_at":"2019-04-30T12:01:32.000Z","size":73,"stargazers_count":246,"open_issues_count":5,"forks_count":39,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-04-24T04:17:56.493Z","etag":null,"topics":["langdev"],"latest_commit_sha":null,"homepage":"http://blog.fogus.me/2009/03/26/baysick-a-scala-dsl-implementing-basic/","language":"Scala","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/fogus.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-03-13T17:07:34.000Z","updated_at":"2024-06-14T09:21:02.000Z","dependencies_parsed_at":"2022-07-07T22:04:46.886Z","dependency_job_id":null,"html_url":"https://github.com/fogus/baysick","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fogus/baysick","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fogus%2Fbaysick","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fogus%2Fbaysick/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fogus%2Fbaysick/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fogus%2Fbaysick/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fogus","download_url":"https://codeload.github.com/fogus/baysick/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fogus%2Fbaysick/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278956630,"owners_count":26075290,"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-10-08T02:00:06.501Z","response_time":56,"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":["langdev"],"created_at":"2024-11-08T03:53:21.024Z","updated_at":"2025-10-08T14:19:53.648Z","avatar_url":"https://github.com/fogus.png","language":"Scala","readme":"## BAYSICK - an embedded Insane-specific Language for Scala implementing a subset of BASIC\n\n### Here is a small example:\n\n```scala\n    object SquareRoot extends Baysick {\n      def main(args:Array[String]) = {\n        10 PRINT \"Enter a number\"\n        20 INPUT 'n\n        30 PRINT \"Square root of \" % \"'n is \" % SQRT('n)\n        40 END\n    \n        RUN\n      }\n    }\n```\n\n### Here is a larger example\n\n```scala\n    object Lunar extends Baysick {\n      def main(args:Array[String]) = {\n        10 PRINT \"Welcome to Baysick Lunar Lander v0.0.1\"\n        20 LET ('dist := 100)\n        30 LET ('v := 1)\n        40 LET ('fuel := 1000)\n        50 LET ('mass := 1000)\n    \n        60 PRINT \"You are a in control of a lunar lander.\"\n        70 PRINT \"You are drifting towards the surface of the moon.\"\n        80 PRINT \"Each turn you must decide how much fuel to burn.\"\n        90 PRINT \"To accelerate enter a positive number, to decelerate a negative\"\n    \n        100 PRINT \"Distance \" % 'dist % \"km, \" % \"Velocity \" % 'v % \"km/s, \" % \"Fuel \" % 'fuel\n        110 INPUT 'burn\n        120 IF ABS('burn) \u003c= 'fuel THEN 150\n        130 PRINT \"You don't have that much fuel\"\n        140 GOTO 100\n        150 LET ('v := 'v + 'burn * 10 / ('fuel + 'mass))\n        160 LET ('fuel := 'fuel - ABS('burn))\n        170 LET ('dist := 'dist - 'v)\n        180 IF 'dist \u003e 0 THEN 100\n        190 PRINT \"You have hit the surface\"\n        200 IF 'v \u003c 3 THEN 240\n        210 PRINT \"Hit surface too fast (\" % 'v % \")km/s\"\n        220 PRINT \"You Crashed!\"\n        230 GOTO 250\n        240 PRINT \"Well done\"\n    \n        250 END\n    \n        RUN\n      }\n    }\n```\n\nEnjoy.\n\n*note: [The BASIC programming language is 50 years old](https://www.dartmouth.edu/basicfifty/)*\n\n## License\n\nCopyright 2010-2014, [Michael Fogus](http://www.fogus.me)\nLicensed under the MIT License.  \nRedistributions of files must retain the above copyright notice.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffogus%2Fbaysick","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffogus%2Fbaysick","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffogus%2Fbaysick/lists"}