{"id":15707814,"url":"https://github.com/ericlbuehler/falcon-programming-language","last_synced_at":"2025-05-12T19:49:30.907Z","repository":{"id":45788965,"uuid":"514590577","full_name":"EricLBuehler/Falcon-Programming-Language","owner":"EricLBuehler","description":"Falcon is a powerful, interpreted programming language.","archived":false,"fork":false,"pushed_at":"2023-01-22T16:11:51.000Z","size":191076,"stargazers_count":10,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-01T02:52:10.490Z","etag":null,"topics":["bytecode","cpp","falconpl","interpreter","programming-language"],"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/EricLBuehler.png","metadata":{"files":{"readme":"README.md","changelog":"changelog","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-16T13:49:17.000Z","updated_at":"2025-02-16T01:07:01.000Z","dependencies_parsed_at":"2023-02-12T17:01:24.550Z","dependency_job_id":null,"html_url":"https://github.com/EricLBuehler/Falcon-Programming-Language","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/EricLBuehler%2FFalcon-Programming-Language","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EricLBuehler%2FFalcon-Programming-Language/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EricLBuehler%2FFalcon-Programming-Language/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EricLBuehler%2FFalcon-Programming-Language/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EricLBuehler","download_url":"https://codeload.github.com/EricLBuehler/Falcon-Programming-Language/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253810750,"owners_count":21967965,"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":["bytecode","cpp","falconpl","interpreter","programming-language"],"created_at":"2024-10-03T20:41:28.334Z","updated_at":"2025-05-12T19:49:30.880Z","avatar_url":"https://github.com/EricLBuehler.png","language":"C++","readme":"# Falcon Programming Language - Version 1.2.4\n### Eric Buehler 2022 ###\n\n\u003cimg src=\"logo.png\"/\u003e\n\nFalcon is a multithreaded, multi-paradigm interpreted programming language, with a strong focus on readability and simplicity. It is both strongly and dynamically typed, and has automatic garbage collection based on reference counting and a tri-generational garbage collector. In comparison to other languages, it a hybrid of Python and C, with the benefits of Python and the syntax of C.\n\n### Documentation ##\n- [Dunder Attributes](https://github.com/EricLBuehler/Falcon-Programming-Language/blob/main/docs/DUNDER_ATTRS.md)\n- [Types of functions](https://github.com/EricLBuehler/Falcon-Programming-Language/blob/main/docs/FUNCTIONS.md)\n- [Equivalent C++ Types to Falcon Types](https://github.com/EricLBuehler/Falcon-Programming-Language/blob/main/docs/TYPE_CPPBASE.md)\n- [Builtin type methods](https://github.com/EricLBuehler/Falcon-Programming-Language/blob/main/docs/TYPE_DOCS.md)\n- [Conventions](https://github.com/EricLBuehler/Falcon-Programming-Language/blob/main/docs/CONVENTIONS.md)\n- [Builtin Functions](https://github.com/EricLBuehler/Falcon-Programming-Language/blob/main/docs/BUILTINS.md)\n- [Builtin Modules](https://github.com/EricLBuehler/Falcon-Programming-Language/blob/main/docs/builtin_module_docs/BUILTIN_MODULES.MD)\n- [Syntax](https://github.com/EricLBuehler/Falcon-Programming-Language/blob/main/docs/SYNTAX.md)\n- [Config Files](https://github.com/EricLBuehler/Falcon-Programming-Language/blob/main/docs/CONFIG.md)\n\n### Sample Program ###\n\n\u003cdetails\u003e\n\u003csummary\u003eProgram\u003c/summary\u003e\n\n```js\nm=\"Placeholder value\"\n\nclass Falcon{\n    var=m\n    func sound(self){\n        print(\"Sound!\")\n    }\n}\n\n\nclass Peregrine(Falcon){\n    var=m\n    func __new__(self){\n        print(\"__new__ called\")\n        return super(self).__new__(self)\n    }\n    func __init__(self){\n        print(self)\n    }\n    func f(self){\n        print(self.var)\n    }\n}\n\nx=Peregrine()\n\ny=Peregrine()\n\na=Peregrine.var\nx.var=5\ny.var=\"Value\"\nb=x.var\n\nx.f()\ny.f()\n\nx.sound()\n\nprint(x.__bases__)\n\nfunc f(x,c=\"A\"){\n    print(\"Function f says: \",\"\")\n    print(c)\n}\n\nf(1)\n\n\n\ndictionary={1:[1,2,3], 2:{1:\"A\"}, \"Hello\":\"World\", [123]:2}\n\nl=list(1,2,3,4,5)\n\nx=object()\ny=object()\n\n\ntrue = x == y\nmaybe = x is y\nsame = x is x\nprint(500==500)\n\n\nprint(\"Done\")\n\nprint(l[3])\nprint(dictionary[[123]])\n\n\ntry{\n    if 500 is 200{\n        raise Exception(\"500 is not the same object as 200\")\n    }\n    elif 500 is 500{\n        raise TypeError(\"500 is not the same object as 200, but is the same as 500\")\n    }\n    else{\n        raise NameError(\"Else condition reached\")\n    }\n}\nexcept Exception e{\n    print(e)\n}\n\ni=0\n\nfunc x(){\n    i=i+1\n\n    print(i)\n    if (i==3){\n        raise ValueError(\"I is 50!\")\n    }\n    x()\n}\n\ntry{\n    x()\n}\nexcept Exception e{\n    print(e)\n}\n\nval=2\nprint(val.__mul__(5))\n\nfunc fib(n){\n    if (n\u003c=1){\n        return n\n    }\n    else{\n        return fib(n-1)+fib(n-2)\n    }\n}\n\nprint(fib(10))\n\npi=238649.2131693410000000\nx=pi*100\nprint(str(pi))\nprint(int(\"1234\"))\nprint(float(\"10.222\"))\n\nfor n in [10,20,30]{\n    print(n)\n}\n\ni=0\nwhile i\u003c10{\n    print(i)\n    i+=1\n}\n\nprint(True and False)\nprint(True or False)\nprint(not 1==1)\n\nprint(100^2)\nprint(100^2*3)\nprint(100^6)\n```\n\n\u003c/details\u003e\n\nWhen run with ```./fpl.exe program.fpl```\n\n\u003cdetails\u003e\n\u003csummary\u003eOutput\u003c/summary\u003e\n\n```\n__new__ called        \n\u003cPeregrine @ 0xba7a98\u003e\n__new__ called        \n\u003cPeregrine @ 0xba7b40\u003e\n5\nValue\nSound!\n[\u003cclass 'Falcon'\u003e, \u003cclass 'object'\u003e]\nFunction f says:  \nA\nTrue\nDone\n4\n2\n500 is not the same object as 200, but is the same as 500\n1\n2\n3\nI is 50!\n10\n55\n238649.213169341\n1234\n10.222\n10\n20\n30\nFalse\nTrue\nFalse\n102\n98\n98\n```\n\n\u003c/details\u003e\n\nClick [here](https://github.com/EricLBuehler/Falcon-Programming-Language/tree/main/example) for more example programs.\n\n### Usage ###\nBuild Falcon in debug mode\n```./build.cmd```\n\nBuild Falcon in release mode\n```./release.cmd```\n\nRun a script\n```falcon program```\n\nManual compilation\n```g++ main.cpp -o falcon -static-libstdc++ -static -lws2_32 -O3 -fno-gcse```\n\nEnter REPL\n```falcon```\n\nHelp\n```falcon -h```\n\n### Links ###\n- \u003ca href='https://github.com/dannyvankooten/pepper-lang'\u003ePepper Lang\u003c/a\u003e\n- \u003ca href='https://github.com/davidcallanan/py-myopl-code'\u003epy-myopl-code\u003c/a\u003e\n- \u003ca href='https://github.com/faheel/BigInt'\u003eBigInt\u003c/a\u003e (Used for ```int``` type)\n- \u003ca href='https://github.com/python/cpython'\u003eCPython\u003c/a\u003e\n- \u003ca href='https://eli.thegreenplace.net/2012/07/12/computed-goto-for-efficient-dispatch-tables'\u003eComputed GOTOs\u003c/a\u003e\n- \u003ca href='https://github.com/thestr4ng3r/nxjson'\u003eNXJSON\u003c/a\u003e\n\n### Licenses ###\n- [MIT License](LICENSE)\n- [BigInt - MIT License](https://github.com/EricLBuehler/Falcon-Programming-Language/blob/main/object/BigInt.hpp)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericlbuehler%2Ffalcon-programming-language","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericlbuehler%2Ffalcon-programming-language","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericlbuehler%2Ffalcon-programming-language/lists"}