{"id":17865913,"url":"https://github.com/arocks/punchscript-specs","last_synced_at":"2026-02-23T18:08:44.819Z","repository":{"id":137288688,"uuid":"159331227","full_name":"arocks/punchscript-specs","owner":"arocks","description":"Punchscript Language specifications","archived":false,"fork":false,"pushed_at":"2018-11-27T12:22:50.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-08T12:26:02.483Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arocks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING.txt","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-27T12:21:15.000Z","updated_at":"2021-01-11T17:22:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"c462f2a7-b4d3-4142-86c6-41f80c8c90be","html_url":"https://github.com/arocks/punchscript-specs","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/arocks%2Fpunchscript-specs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arocks%2Fpunchscript-specs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arocks%2Fpunchscript-specs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arocks%2Fpunchscript-specs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arocks","download_url":"https://codeload.github.com/arocks/punchscript-specs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246899658,"owners_count":20851898,"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-10-28T09:25:49.375Z","updated_at":"2025-10-25T06:46:06.184Z","avatar_url":"https://github.com/arocks.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"This repository only maintains the Punchscript language specs\n\n\u003cp align=\"center\"\u003e \n\u003cimg width=\"210\" height=\"298\" src=\"https://raw.githubusercontent.com/arocks/punchscript/master/web/img/logo-full.png\"\u003e\n\u003c/p\u003e\n\nLanguage Reference\n------------------\n\nPunchscript is an interpreted scripting language based on punch dialoges of the Indian superstar [Rajninikanth](https://en.m.wikipedia.org/wiki/Rajinikanth). It is an imperative language with infix operators inspired by [ArnoldC](https://github.com/lhartikk/ArnoldC) and [Python](https://www.python.org/). It was developed as a fun exercise and to learn compiler design.\n\nHere are a set of constructs in Punchscript. If you are already familiar with programming then you should be able quickly get up to speed with this.\n\n\n|Keyword|Equivalent in other languages|Remarks|\n|--- |--- |--- |\n|`\u003cexpr\u003e SOLRAN \u003cvar\u003e SEIRAN`|`LET \u003cvar\u003e = \u003cexpr\u003e`|Assignment statement|\n|`MEHHH! \u003ccomment\u003e`|`COMMENT \u003ccomment\u003e`|Must be at the beginning of a line|\n|`NOORU THADAVA SONNA MAADIRI \u003ccond\u003e`\u003cbr\u003e`\u003cloop body\u003e`\u003cbr\u003e`MAGIZHCHI`|`WHILE \u003ccond\u003e`\u003cbr\u003e`\u003cloop body\u003e`\u003cbr\u003e`END WHILE`|If the condition evaluates to non-zero then enter loop body|\n|`MALAI DA ANNAMALAI \u003ccondition\u003e`\u003cbr\u003e`\u003cif condition true body\u003e`\u003cbr\u003e`EN VAZHI THANI VAZHI`\u003cbr\u003e`\u003celse body\u003e`\u003cbr\u003e`KATHAM, KATHAM`|`IF \u003ccondition\u003e`\u003cbr\u003e`\u003cif condition true body\u003e`\u003cbr\u003e`ELSE`\u003cbr\u003e`\u003celse body\u003e`\u003cbr\u003e`END IF`|True means condition evaluates to non-zero. Else part is optional.|\n|`IDHU EPADI IRUKU \u003cexpr or string\u003e`|`PRINT \u003cexpr or string\u003e`|Only place where literal strings (in double quotes) are allowed|\n|`I AM CHITTI \u003cver number\u003e`|`SPEC \u003cver number\u003e`|Must be first line (lang ver no.) Optional|\n\n\n#### Syntax\n\n```\n\n\u003cvar\u003e = [A-Z a-z][A-Z a-z 0-9 _]*\n\n\u003cexpr\u003e = \u003cexpr\u003e \u003cop\u003e \u003cexpr\u003e\n\n\u003cop\u003e = + - * / % (modulo) \u003e \u003c == \u003c\u003e\n\n```\n\nKeywords: Keywords are in capital letters and may comprise of multiple words.\n\nVariables: All variables are of type Integers. Variable names are case sensitive alphanumeric (including underscores) and starts with alphabet (upper or lowercase).\n\nExpressions: All expressions get evaluated to integers including logical operations. True is represented as 1 and False is 0. For example, 4 \u003e 5 will be evaluated to 0 implying False.\n\nWhitespace: There are no end of line markers like semicolons. So each statement must be on a seperate line. But leading spaces or indentation of a line does not matter.\n\n#### Builtins\n\nCertain variables have special meaning when evaluated\n\n*   BILLA - Generates a different random number (between 0 and MAXINT) when evaluated\n*   GURU - Maximum value of integer or MAXINT (currently 55,555)\n*   SISHYAN - Minimum value of integer or MININT (currently -MAXINT)\n\n#### Errors\n\nYou might get any of these cryptic replies from the language interpreter\n\n|Error Type|What Punchscript Says|\n|--- |--- |\n|Syntax Error|ENNAMMA KANNU, SOWKIYAMA? \u003cchar\u003e|\n|Parse Error|THILLU MULLU|\n|Runtime Error|KANNA, PANNI DHAN KOOTAMA VARUM... \u003cmsg\u003e|\n|Divide by zero|DIVIDE BY ZERO? JUJUBE.|\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farocks%2Fpunchscript-specs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farocks%2Fpunchscript-specs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farocks%2Fpunchscript-specs/lists"}