{"id":19252974,"url":"https://github.com/betasu/simple","last_synced_at":"2025-06-12T14:32:23.954Z","repository":{"id":108668991,"uuid":"227376243","full_name":"BetaSu/simple","owner":"BetaSu","description":"用js实现的简易语言","archived":false,"fork":false,"pushed_at":"2020-01-07T11:56:18.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-23T16:54:18.160Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/BetaSu.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":"2019-12-11T13:47:46.000Z","updated_at":"2023-04-23T06:06:18.000Z","dependencies_parsed_at":"2023-05-01T00:48:48.457Z","dependency_job_id":null,"html_url":"https://github.com/BetaSu/simple","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BetaSu/simple","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BetaSu%2Fsimple","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BetaSu%2Fsimple/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BetaSu%2Fsimple/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BetaSu%2Fsimple/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BetaSu","download_url":"https://codeload.github.com/BetaSu/simple/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BetaSu%2Fsimple/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259482625,"owners_count":22864783,"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-11-09T18:29:02.643Z","updated_at":"2025-06-12T14:32:23.937Z","avatar_url":"https://github.com/BetaSu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 介绍\n该仓库为《计算的本质》一书的学习笔记，并用JS（书中为Ruby）实现了书中的代码部分。\n## 学习笔记\n- 小步语义：设计一台抽象机器维护一些执行状态，然后定义一些规约规则，这些规则详细说明了如何才能对每种程序结构循序渐进地求值。特别地、小步语义大部分都带有迭代地味道，他要求抽象机器反复执行规约步骤，这些步骤以及与他们同样类型的信息可以作为自身的输入和输出，这让他们适合这种反复进行的应用程序。\n语句：语句会最终规约成do-nothing与一个环境（可能是个新环境）。\n表达式：表达式最终会被规约成其他不能再被规约的表达式。\n- 大步语义：定义如何从一个表达式或者语句直接得到他的结果。\n- DFA(Deterministic Finite Automaton) 确定性有限状态机\n- NFA(Non-deterministic Finite Automaton) 确定性有限状态机\n### 下推自动机（PushDown Automaton）\n自带栈的有限状态机叫下推自动机PDA。如果这台机器的规则是确定性的，就叫确定性下推自动机DPDA（Deterministic PushDown Automaton）。\n## PDA规则\n组成一个PDA的规则氛围5部分：\n- 机器当前状态\n- 必须从输入读取的字符（可选）\n- 机器的下一个状态\n- 必须从栈中弹出的字符\n- 栈顶字符弹出后需要推入栈中的字符序列\n\n\n## 参考资料\n计算的本质\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbetasu%2Fsimple","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbetasu%2Fsimple","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbetasu%2Fsimple/lists"}