{"_id":"@adamsy/bhai-lang","_rev":"1-15ee8e1cd53ce817cdac97c7eef64604","name":"@adamsy/bhai-lang","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@adamsy/bhai-lang","version":"0.0.1","private":false,"workspaces":["apps/*","packages/*"],"scripts":{"build":"turbo run build","dev":"turbo run dev --parallel","lint":"turbo run lint","test":"turbo run test --parallel","format":"prettier --write \"**/*.{ts,tsx,md}\""},"devDependencies":{"@parcel/packager-ts":"^2.2.0","@parcel/transformer-typescript-types":"^2.2.0","prettier":"^2.5.1","turbo":"latest","typescript":"^4.5.4"},"keywords":["bhai-lang","programming language","compiler","parser","javascript","typescript"],"contributors":[{"name":"Aniket Singh","url":"https://github.com/aniketsingh0104"},{"name":"Rishabh Tripathi","url":"https://github.com/ristri"}],"engines":{"npm":">=7.0.0","node":">=14.0.0"},"packageManager":"npm@8.1.4","gitHead":"103dd5d8060aa49090afa328edd00d63388d67d0","description":"<h1 align=\"center\">Bhai Lang</h1> <p align=\"center\"> <a href=\"https://lgtm.com/projects/g/DulLabs/bhai-lang/alerts/\"><img alt=\"Total alerts\" src=\"https://img.shields.io/lgtm/alerts/g/DulLabs/bhai-lang.svg?logo=lgtm&logoWidth=18\"/></a> <a href=\"https://lgt","_id":"@adamsy/bhai-lang@0.0.1","_nodeVersion":"17.5.0","_npmVersion":"8.5.1","dist":{"integrity":"sha512-xnPwEE2vDPJfggGeh7qWFuQtSJbvljo+fkULwLSGAiaBcx4mOFLrAiUjOxgg3HxI7M0n5/Ys4p8wH7xwXYWL8w==","shasum":"d45c03332d3922090584b9f87389adc8c5497c07","tarball":"https://registry.npmjs.org/@adamsy/bhai-lang/-/bhai-lang-0.0.1.tgz","fileCount":139,"unpackedSize":240545,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiLdxeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmozbg//SwP6f8epeTi/xA2c/X43EbK5KvV4lBmfkqr4xtavoSxBtQEx\r\nludk+xAYpqCrcjV0P01n966JR9nSe2ViLx6B9rsF2/RHeifOuYFDnly9pcB3\r\nJ6GRpkt0+ISbEUzgVH8MRY4QIqO234+19V1kswTWAKpKVOgXpvy3+t0hfzQP\r\nHs3j1dgYkqGDczWRi1cNcjo6zAsPNnKN1FVwvKwLD96XsrDdxbDhjmdZyuEB\r\nKIGPq90rCl78p9FfFg0Wn6Gm8tZaIhPU8GzfTijGvLP4CfDGTZUhoVgtsOft\r\n88BIHZ6RpQyQulDHUgLq2tdVic2Q82FLnFLwH4ETuZ8RLSzY3B4SeXP4YRsw\r\nME316eS1O+KgDFPxWhWhyZqZHBHLkX0oRttDxBLZSJOImzaSyq5DAVVsyTU6\r\nCiiscDzLLnnGHe7ED6yCym2083K4fY6CU3EHaqmSHjDwk+O9x7qA60C+Zx7F\r\nUb3KtAlATB/Yo0qQXIroA654kDgKtgNufiTWRQANghYQbHY+SqlrNHNQAAEd\r\nIap2gW1KPgrl91tyMuQrLpPDaaku5MuYFeoyLuPZezDYngtYksjAkzyzloKg\r\nbNxeqwSfXTofit7Uob+w9LVV/grE5NDgiE4KK5vrK2jFUjE2AA2A6eAqYowt\r\nCSoHWKC+Z41b9AvvZYcWvC41Ge0s4Zxs2v4=\r\n=ICIS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDBzMHStCmbLZ/SRS1cg6X9xKVpcbRB3dSwCpiQSNSrOAIhAN5b5UKGzslXbbYp6f15Td6rRmn+0p2ehJGwyeiCm7ui"}]},"_npmUser":{"name":"adamsy","email":"adamrubiks@gmail.com"},"directories":{},"maintainers":[{"name":"adamsy","email":"adamrubiks@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bhai-lang_0.0.1_1647172701881_0.561068694388708"},"_hasShrinkwrap":false}},"time":{"created":"2022-03-13T11:58:21.811Z","0.0.1":"2022-03-13T11:58:22.093Z","modified":"2022-04-04T11:25:40.421Z"},"maintainers":[{"name":"adamsy","email":"adamrubiks@gmail.com"}],"description":"<h1 align=\"center\">Bhai Lang</h1> <p align=\"center\"> <a href=\"https://lgtm.com/projects/g/DulLabs/bhai-lang/alerts/\"><img alt=\"Total alerts\" src=\"https://img.shields.io/lgtm/alerts/g/DulLabs/bhai-lang.svg?logo=lgtm&logoWidth=18\"/></a> <a href=\"https://lgt","keywords":["bhai-lang","programming language","compiler","parser","javascript","typescript"],"contributors":[{"name":"Aniket Singh","url":"https://github.com/aniketsingh0104"},{"name":"Rishabh Tripathi","url":"https://github.com/ristri"}],"readme":"<h1 align=\"center\">Bhai Lang</h1>\n<p align=\"center\">\n<a href=\"https://lgtm.com/projects/g/DulLabs/bhai-lang/alerts/\"><img alt=\"Total alerts\" src=\"https://img.shields.io/lgtm/alerts/g/DulLabs/bhai-lang.svg?logo=lgtm&logoWidth=18\"/></a>\n<a href=\"https://lgtm.com/projects/g/DulLabs/bhai-lang/context:javascript\"><img alt=\"Language grade: JavaScript\" src=\"https://img.shields.io/lgtm/grade/javascript/g/DulLabs/bhai-lang.svg?logo=lgtm&logoWidth=18\"/></a>\n<a href=\"https://github.com/DulLabs/bhai-lang/actions/workflows/node.js.yml/badge.svg\"><img alt=\"Build\" src=\"https://github.com/DulLabs/bhai-lang/actions/workflows/node.js.yml/badge.svg\"/></a>\n<a href=\"https://bhailang.js.org/\"><img alt=\"Build\" src=\"https://img.shields.io/badge/website-bhailang.js.org-orange\"/></a>\n<a href=\"https://www.npmjs.com/package/bhailang\"><img alt=\"Build\" src=\"https://img.shields.io/badge/npm-bhailang-orange\"/></a>\n  \n</p>\n<p align=\"center\">\n  This is official repository for bhai-lang.<br><br>\n  <b>Bhai lang is a toy programming language written in Typescript.</b>\n</p>\n<br>\n\n<h2 align=\"center\">Installation</h2>\n\n```\nnpm i -g bhailang\n```\n\n<h2 align=\"center\">Usage</h2>\n\n<h4 align=\"left\">Create a new file (<code>test.bhai</code>)</h4>\n\n\n<h4 align=\"left\">Edit the file with a text editor.\nYou can also try out your code on <a href=\"https://bhailang.js.org/#playground\">Bhai Lang PlayGround</a></h4>\n\n```\nhi bhai\n  bol bhai \"Hello bhai\";\nbye bhai\n\n```\n\n<h4 align=\"left\">Run</h4>\n\n```\nbhailang test.bhai\n```\n\n<h4 align=\"left\">Output</h4>\n\n```\nhello bhai\n```\n\n<h2 align=\"center\">Documentation</h2>\n\n<h3 align=\"center\">General</h3>\n<p align=\"center\"><code>hi bhai</code> is the entrypoint for the program and all program must end with <code>bye bhai</code>. Anything outside of it will be ignored.</p>\n\n```\n\nThis will be ignored\n\nhi bhai\n// Write code here\nbye bhai\n\nThis too\n```\n\n<h3 align=\"center\">Variables</h3>\n<p align=\"center\">Variables can be declared using <code>bhai ye hai</code>.</p>\n\n```\n\nhi bhai\n  bhai ye hai a = 10;\n  bhai ye hai b = \"two\";\n  bhai ye hai c = 15;\n  a = a + 1;\n  b = 21;\n  c *= 2;\nbye bhai\n```\n\n<h3 align=\"center\">Types</h3>\n<p align=\"center\">Numbers and strings are like other languages. Null values can be denoted using <code>nalla</code>. <code>sahi</code> and <code>galat</code> are the boolean values.</p>\n\n```\n\nhi bhai\n  bhai ye hai a = 10;\n  bhai ye hai b = 10 + (15*20);\n  bhai ye hai c = \"two\";\n  bhai ye hai d = 'ok';\n  bhai ye hai e = nalla;\n  bhai ye hai f = sahi;\n  bhai ye hai g = galat;\nbye bhai\n```\n\n<h3 align=\"center\">Built-ins</h3>\n<p align=\"center\">Use <code>bol bhai</code> to print anything to console.</p>\n\n```\n\nhi bhai\n  bol bhai \"Hello World\";\n  bhai ye hai a = 10;\n  {\n    bhai ye hai b = 20;\n    bol bhai a + b;\n  }\n  bol bhai 5, 'ok', nalla , sahi , galat;\nbye bhai\n```\n\n<h3 align=\"center\">Conditionals</h3>\n<p align=\"center\">Bhailang supports simple if else construct , <code>agar bhai</code> block will execute if condition is <code>sahi</code> and <code>warna bhai</code> block will execute if condition is <code>galat</code>.</p>\n\n```\n\nhi bhai\n  bhai ye hai a = 10;\n  agar bhai (a < 25) {\n   bol bhai \"a is less than 25\";\n  } warna bhai {\n   bol bhai \"a is greater than or equal to 25\";\n  }\nbye bhai\n```\n\n<h3 align=\"center\">Loops</h3>\n<p align=\"center\">Statements inside <code>jab tak bhai</code> blocks are executed as long as a specified condition evaluates to sahi. If the condition becomes <code>galat</code>, statement within the loop stops executing and control passes to the statement following the loop. Use <code>bas kar bhai</code> to break the loop.</p>\n\n\n```\n\nhi bhai\n    bhai ye hai a = 0;\n    jab tak bhai (a < 10) {\n      bol bhai a;\n      a += 1;\n      agar bhai (a == 6) {\n        bas kar bhai;\n      }\n    }\n    bol bhai \"done\";\nbye bhai\n```\n\n\n\n\n\n\n\n\n\n\n\n","readmeFilename":"README.md"}