{"id":26208668,"url":"https://github.com/seg6/pox","last_synced_at":"2026-02-26T22:04:34.673Z","repository":{"id":140507821,"uuid":"476059179","full_name":"seg6/pox","owner":"seg6","description":"lox ast-walking interpreter","archived":false,"fork":false,"pushed_at":"2022-10-02T13:09:22.000Z","size":110,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-22T11:03:26.875Z","etag":null,"topics":["interpreter","language","lox","programming-language"],"latest_commit_sha":null,"homepage":"","language":"Python","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/seg6.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-03-30T21:37:35.000Z","updated_at":"2025-02-01T13:21:43.000Z","dependencies_parsed_at":"2024-07-25T06:02:16.529Z","dependency_job_id":null,"html_url":"https://github.com/seg6/pox","commit_stats":null,"previous_names":["nullptropy/pox","heaptr/pox","seg6/pox"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seg6%2Fpox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seg6%2Fpox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seg6%2Fpox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seg6%2Fpox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seg6","download_url":"https://codeload.github.com/seg6/pox/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249067779,"owners_count":21207395,"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":["interpreter","language","lox","programming-language"],"created_at":"2025-03-12T06:29:34.398Z","updated_at":"2026-02-26T22:04:29.647Z","avatar_url":"https://github.com/seg6.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pox\n\n[lox programming language](https://craftinginterpreters.com/) ast-walking interpreter\n\n**Note:** some differences compared to the original implementation of lox\n- strings can be denoted with single quotes\n- `/* multi-line comments (nesting them is not supported) */`\n- escape sequences supported by [python](https://github.com/python/cpython/blob/f62ad4f2c4214fdc05cc45c27a5c068553c7942c/Objects/bytesobject.c#L1062) are supported on pox as well\n- truthiness is implemented with python's [bool](https://docs.python.org/3/library/functions.html#bool) function ([truth testing procedure](https://docs.python.org/3/library/stdtypes.html#truth))\n- `fn` instead of `fun`\n- `let` instead of `var`\n- pox has support for else-if (see the examples folder)\n- the `print` statement doesn't exist\n\n**built-in classes**:\n- [`list`](https://github.com/brkp/pox/blob/main/pox/interpreter/native.py#L184) this is a really thin wrapper around python's list type, see the source code for methods it has\n\n[**built-in functions**](https://github.com/fxxf/pox/blob/main/pox/interpreter/native.py):\n- `print(value)` prints the given value to stdout without a trailing new line\n- `println(value)` prints the given value to stdout with a trailing new line\n- `input(prompt)` [python's input function](https://docs.python.org/3/library/functions.html#input), returns `nil` on `EOFError`\n- `chr(int), ord(char)` python's [chr](https://docs.python.org/3/library/functions.html#chr) and [ord](https://docs.python.org/3/library/functions.html#ord) functions, they both return `nil` on `TypeError`\n- `str(object), int(string), float(string)` python's [str](https://docs.python.org/3/library/functions.html#str), [int](https://docs.python.org/3/library/functions.html#int) and [float](https://docs.python.org/3/library/functions.html#float) functions. `int` and `float` returns `nil` on `ValueError`\n- `strlen(string)` returns the length of a given string, `nil` if the passed argument is not a string\n- `strn(string, n)` returns the nth char of a given string, `nil` if n \u003e len(string) or if `string` is not a string\n- `exit(value)` calls [sys.exit](https://docs.python.org/3/library/sys.html#sys.exit) with the given `value`\n- `time()` returns the time in seconds since the epoch as a floating point number \n- `sleep(secs)` suspend execution of the program for the given number of seconds\n- `pow(a, b)` returns `a**b`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseg6%2Fpox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseg6%2Fpox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseg6%2Fpox/lists"}