HivePaaS
Docker Swarm 기반 오픈소스 자체 호스팅 PaaS, SSL·백업·자동 확장 지원
PurePy in MoonBit: 파이썬 3.12 토크나이저·파서·체크·프린터·인터프리터 등 순수 파이 구현
PurePy in MoonBit: a Python 3.12 tokenizer, parser, sieve, well-formedness checker, printer and interpreter, conforming to the pure-py specification
개발 도구MoonBit · PythonGitHub @marianoguerra온라인운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기메이커가 쓴 소개는 위의 한 줄이 전부입니다. 더 자세한 내용은 저장소 README에서 읽을 수 있습니다. 저장소 README ↗
README 전체를 불러오는 중입니다.
README 전문 보기 ↗PurePy in MoonBit: a tokenizer and parser for Python 3.12 producing a CPython-shaped abstract syntax tree, a sieve that rejects the Python PurePy excludes, a well-formedness checker, an interpreter, a printer, a command-line tool and an embedding interface.
PurePy is a pure functional subset of Python with a small-step operational
semantics and a static well-formedness judgement, specified in
pure-py/pure-py-spec. This is a
port of that specification. The reference checker is the specification for
what check decides; CPython is the oracle for what run prints.
Playground: https://marianoguerra.github.io/pure-py-mb/ — the whole
library in a browser tab, with 27 examples. The page is a real embedder: the
host module its examples import is supplied through the embedding
interface.
lib/ | marianoguerra/pure-py | the library — readme |
cli/ | marianoguerra/pure-py-cli | the pure-py command |
docs/ | embedding guide, examples compiled as tests | |
playground/ | the page, built to wasm-gc | |
test/ | the conformance suite, the goldens, the corpora | |
tools/ | the differential harness and the generators |
The repository root is a development module that is never published. It exists so that the harness, the corpora, the documentation and the playground reach the two real modules through their public API only, which is what keeps that API honest — and so that publishing the library does not publish half a megabyte of test fixtures.
moon add marianoguerra/pure-py # the library
moon add marianoguerra/pure-py-cli # the command
Eight oracles, every one compared against something outside this port, over the conformance suite of specification v0.23.0.
| oracle | compared with | result |
|---|---|---|
| tokens | CPython's tokenize | 1005/1005 |
| trees, no positions | CPython's ast | 1005/1005 |
| trees, with positions | CPython's ast | 1005/1005 |
| printer round trip | this parser and CPython's | 1004/1004 |
parse | the reference checker | 982/982 |
check | the reference checker | 982/982 |
check-program | the reference checker | 93/93 |
run | CPython's output | 321/321 |
The conformance suite under test/conformance/ is the reference's own,
copied verbatim, and the expected answers under test/golden/ are the
reference's answers. Both are committed, so the suite runs with nothing but
MoonBit and Python 3.
just lists every task, grouped. The ones that matter:
just quick type-check, format, unit tests, layering, conformance
just conform every oracle, held to its ratchet
just one PATTERN the tests whose name contains PATTERN, in full
just diffrun generated programs, compared against CPython
just playground build the page and serve it on :8000
just publish-dry what would go to mooncakes, without sending it
Regenerating the goldens needs the reference checkout: just reference-fetch,
then just goldens. Neither runs in CI.
Apache-2.0.