Inthisbookwewillcreateaprogramminglanguagetogether.We'llstartwith0linesofcodeandendupwithafullyworkinginterpreterfortheMonkey*programminglanguage.Stepbystep.Fromtokenstooutput.Allcodeshownandincluded.Fullytested.Buythisbooktolearn-HowtobuildaninterpreterforaC-likeprogramminglanguagefromscratch-Whatalexer,aparserandanAbstractSyntaxTree(AST)areandhowtobuildyourown-Whatclosuresareandhowandwhytheywork-WhatthePrattparsingtechniqueandarecursivedescentparseris-Whatotherstalkaboutwhentheytalkaboutbuilt-indatastructures-WhatREPLstandsforandhowtobuildoneWhythisbookThisisthebookIwantedtohaveayearago.ThisisthebookIcouldn'tfind.Iwrotethisbookforyouandme.Sowhyshouldyoubuyit?What'sdifferentaboutit,comparedtootherinterpreterorcompilerliterature?-Workingcodeisthefocus.Codeisnotjustfoundintheappendix.Codeisthemainfocusofthisbook.-It'ssmall!Ithasaround200pagesofwhichagreatdealarereadable,syntax-highlighted,workingcode.-Thecodepresentedinthebookiseasytounderstand,easytoextend,easytomaintain.-No3rdpartylibraries!You'renotleftwondering:"ButhowdoestoolXdothat?"Wewon'tuseatoolX.WeonlyusetheGostandardlibraryandwriteeverythingourselves.-Tests!Theinterpreterwebuildinthebookisfullytested!SometimesinTDDstyle,sometimeswiththetestswrittenafter.Youcaneasilyruntheteststoexperimentwiththeinterpreterandmakechanges.Thisbookisforyouifyou...-learnbybuilding,lovetolookunderthehood-loveprogrammingandtoprogramforthesakeoflearningandjoy!-areinterestedinhowyourfavorite,interpretedprogramminglanguageworks-nevertookacompilercourseincollege-wanttogetstartedwithinterpretersorcompilers…-...butdon'twanttoworkthroughatheory-heavy,800pages,4poundscompilerbookasabeginner-keptscreaming"showmethecode!"whenreadingaboutinterpretersandcompilers-alwayswantedtosay:"Holyshit,Ibuiltaprogramminglanguage!"TableofContentsAcknowledgmentsIntroductionLexingParsingEvaluationExtendingtheInterpreterResourcesFeedbackChangelog
2024/8/9 4:05:27 381KB Writing Go Interpreter
1
jspicl是PICO-8Lua转译器的Javascript。
它使用JavaScript代码创建AST,然后将其转换为PICO-8支持的LUA子集。
访问获取文档,指南,API等!
2024/8/8 12:29:12 185KB javascript lua ast transpiler
1
PDF版用Go实现一门解释型语言。
Buythisbooktolearn:HowtobuildaninterpreterforaC-likeprogramminglanguagefromscratchWhatalexer,aparserandanAbstractSyntaxTree(AST)areandhowtobuildyourownWhatclosuresareandhowandwhytheyworkWhatthePrattparsingtechniqueandarecursivedescentparserisWhatotherstalkaboutwhentheytalkaboutbuilt-indatastructuresWhatREPLstandsforandhowtobuildone
2023/12/10 16:03:26 14.72MB go 解释型语言
1
使用opensips可以构建大容量的voip系统。
opensips是开源的,稳定的服务器,非常适合做前端proxy。
一般与asterisk、freeswith等配合使用,opensips做前端代理,ast等做网关,实现普通voip通话、电话会议、语音留言、语音导航等各种应用。
2023/11/13 18:15:30 1.48MB sip opensips 通信系统 通信
1
NULL博文链接:https://lym6520.iteye.com/blog/747840
2023/9/17 14:52:50 6.12MB 源码 工具
1
1、拓朴和关键术语介绍WAS的拓朴,包括单节点、网络部署单元拓朴介绍WAS的术语等2、ND安装安装概览和增强WAS产品包WAS运行时安装非ROOT安装卸载问题诊断摘要和相关引用3、IHS安装IHS安装管理概览使用管理控制台创建Webserver定义4、Plugin安装Webserverplug-in安装IHSplug-in安装管理插件配置文件5、系统管理-体系架构系统管理任务系统架构WebServer定义WASV5与V6系统管理相关主题比较6、系统管理-配置库单元配置库单节点配置库配置变更审计7、系统管理-ND文件同步DMGR到受管节点的文件同步配置节点的文件同步系统管理8、应用程序管理应用程序管理概览应用程序安装和配置应用程序局部更新EAR增强应用程序服务器工具(AST)9、安全WAS安全模型JACC规范WASgnTAM客户端集成10、负载管理负载管理概览负载管理新特性配置数据复制服务(DRS)高可用性11、功能工具WAS应用服务器环境功能监控基础(PMI)Tivoli功能察看器功能顾问
2023/1/26 16:34:57 5.75MB IBM webSphere WAS
1
没有不为空ninny-json是一项实验,旨在查看JSON类型类在不存在的JSON字段和具有null值的字段之间进行区分时的外观。
该项目确实包含其自己的AST,但是这里的重点实际上不是引入新的AST或研究直接操纵AST的人体工程学。
因此,包含的AST保持简单。
为什么不使用json4s这个项目创建来提供一个统一的AST?继续阅读。
为什么这么重要?原则上,我们希望我们的库尽可能具有表现力。
实际上,当今库的局限性使得很难或不可能实现或。
能否将字段包含在最终JSON中还取决于JSON序列化程序的配置(能否包含空值),而不是AST。
当AST与JSON输出不匹配时,就会出现可测试性问题。
图书馆今天做什么?让我们看一下三个流行的库,看看它们如何处理Option[A]与JSON之间的转换。
json4sjson4s使用以下类型类traitReader[T]{
2020/6/23 22:07:53 70KB json scala ast typeclasses
1
在日常工作中,钉钉打卡成了我生活中不可或缺的一部分。然而,有时候这个看似简单的任务却给我带来了不少烦恼。 每天早晚,我总是得牢记打开钉钉应用,点击"工作台",再找到"考勤打卡"进行签到。有时候因为工作忙碌,会忘记打卡,导致考勤异常,影响当月的工作评价。而且,由于我使用的是苹果手机,有时候系统更新后,钉钉的某些功能会出现异常,使得打卡变得更加麻烦。 另外,我的家人使用的是安卓手机,他们也经常抱怨钉钉打卡的繁琐。尤其是对于那些不太熟悉手机操作的长辈来说,每次打卡都是一次挑战。他们总是担心自己会操作失误,导致打卡失败。 为了解决这些烦恼,我开始思考是否可以通过编写一个全自动化脚本来实现钉钉打卡。经过一段时间的摸索和学习,我终于成功编写出了一个适用于苹果和安卓系统的钉钉打卡脚本。
2024-04-09 15:03 15KB 钉钉 钉钉打卡