{"id":18721149,"url":"https://github.com/notmax6677/pine-script","last_synced_at":"2025-06-17T02:33:20.495Z","repository":{"id":112387769,"uuid":"497622467","full_name":"notmax6677/pine-script","owner":"notmax6677","description":"Simple, customizable markdown language for Go","archived":false,"fork":false,"pushed_at":"2022-05-29T15:32:52.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-28T11:41:51.478Z","etag":null,"topics":["database","golang","language","markdown-language"],"latest_commit_sha":null,"homepage":"","language":"Go","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/notmax6677.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-29T14:58:44.000Z","updated_at":"2024-06-15T21:59:25.000Z","dependencies_parsed_at":"2023-04-30T01:02:43.104Z","dependency_job_id":null,"html_url":"https://github.com/notmax6677/pine-script","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/notmax6677%2Fpine-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notmax6677%2Fpine-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notmax6677%2Fpine-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notmax6677%2Fpine-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/notmax6677","download_url":"https://codeload.github.com/notmax6677/pine-script/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239585538,"owners_count":19663587,"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":["database","golang","language","markdown-language"],"created_at":"2024-11-07T13:33:49.793Z","updated_at":"2025-02-19T02:33:29.590Z","avatar_url":"https://github.com/notmax6677.png","language":"Go","readme":"# pine-script\n\npine-script is a language developed in Go, for Go, so far it is kept pretty minimal, but it's open to everyone to build off and modify!\n\n## overview\nthis is a small language that allows you to create objects and variables in pine-script, then run an interpreter to convert the objects to Go code, which you can then use freely to your liking\n\nthe language currently features only two object types (strings and numbers) and support for comments\n\ndue to it's small scale and somewhat simple self-documented code, it's pretty easy to modify the syntax, whether changing keys, adding features, or removing some you don't like\n\n## how to use\nfor starters, you would need to have a `.pine` file in your project folder, idk how to make this a proper module so just download it lol\n\ne.g:\n```go\nimport \"pine/src/interpreter\" // import the interpreter\n\nfunc main() {\n  interpreter.RunScript(\"./script.pine\") // run your script\n  \n  objects := interpreter.ExportObjects() // get objects that were created with your pine script\n}\n```\n\nwithin objects you will find two fields; Numbers \u0026 Strings\n\nlet's use the example pine script as an example, if i wanted to get its name i would write\n\n`objects.Strings[0].Name`\n\nor if i wanted the year's value, i could do\n\n`objects.Numbers[0].Value`\n\nboth strings and numbers have a Name and Value field, but the value is either `string` or `float64` depending on the type\n\ncreating a variable is pretty simple;\n\n`var:type:name:value;`\n\ne.g:\n```\nvar:str:MyName:Max;\n\nvar:num:MyAge:14;\n```\n\nthe language filters out all spaces and newlines upon the start of interpretation\nso something like\n`var:st r:ca r: mer c e d es;`\nwould convert to\n`var:str:car:mercedes;`\n\nif you want to use spaces within the string's value, you may use an alias, named `\"SPACECHAR\"` in `keys.go`, it defaults to `#`\n\nso\n\n`var:str:car:hello#world`\n\nthe value of this variable named `car` would be `\"hello world\"`\n\nps: i don't really care if it doesn't do anything useful, i just wanted to see if i could make something of this sort lmao\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotmax6677%2Fpine-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnotmax6677%2Fpine-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotmax6677%2Fpine-script/lists"}