CanJS CanJS是一个JavaScript解释器,可以在JS中运行JS代码。 相关文章: 安装 git clone https://github.com/jrainlau/canjs.git 用法 直接在字符串中运行JS代码是可以的。 const Canjs = require ( './dist/index.js' ) new Canjs ( ` console.log('Hello World!') ` ) . run ( ) CanJS使用ES5标准库,但您也可以为其提供自定义变量: const Canjs = require ( './dist/index.js'
1
Impala:简单,可扩展的字节码解释器
2021-01-28 22:15:39 5KB clojure vm bytecode-interpreter ClojureClojure
1
母狮•• 母狮编程语言 Lioness是一种专为数学目的而设计的高级动态编程语言。 该项目包括一个词法分析器,解析器,编译器和解释器。 所有这些都是100%用Swift编写的,没有依赖项。 Lioness的语法受Swift启发,其功能集类似于诸如GLSL之类的着色器语言。 标准库(缩写为:stdlib)包含用于数字处理的基本函数,包括:max / min,ceil,floor,trigonometry等。但是,更多琐碎的函数(例如计算质数)与标准库不相关。 来源范例 以下Lioness代码以递归方式计算阶乘: func factorial (x) returns { if x > 1 { return x * factorial (x - 1 ) } return 1 } a = factorial ( 5 ) // a = 120 以下Lioness代码使用do times循环: a = 1 n = 10 do n times { a += a } // a = 1024 在可以找到更多示例。 特征 简约但
2021-01-28 22:15:34 234KB parser interpreter bytecode compiler
1
分离了lexer和语法树的构造,把AST构造放到了Parser内,这样第一遍扫描就把所有的token扫描出来
2021-01-28 00:26:01 16KB compiler interpreter
1
G代码解释器,包含.NC格式测试用例,编译环境为VS2010
2020-03-26 03:11:34 8.1MB G代码解释器 VS2010
1
PDF版 用Go实现一门解释型语言。 Buy this book to learn: How to build an interpreter for a C-like programming language from scratch What a lexer, a parser and an Abstract Syntax Tree (AST) are and how to build your own What closures are and how and why they work What the Pratt parsing technique and a recursive descent parser is What others talk about when they talk about built-in data structures What REPL stands for and how to build one
2020-01-03 11:17:05 14.72MB go 解释型语言
1
In this book we will create a programming language together. We'll start with 0 lines of code and end up with a fully working interpreter for the Monkey* programming language. Step by step. From tokens to output. All code shown and included. Fully tested. Buy this book to learn - How to build an interpreter for a C-like programming language from scratch - What a lexer, a parser and an Abstract Syntax Tree (AST) are and how to build your own - What closures are and how and why they work - What the Pratt parsing technique and a recursive descent parser is - What others talk about when they talk about built-in data structures - What REPL stands for and how to build one Why this book This is the book I wanted to have a year ago. This is the book I couldn't find. I wrote this book for you and me. So why should you buy it? What's different about it, compared to other interpreter or compiler literature? - Working code is the focus. Code is not just found in the appendix. Code is the main focus of this book. - It's small! It has around 200 pages of which a great deal are readable, syntax-highlighted, working code. - The code presented in the book is easy to understand, easy to extend, easy to maintain. - No 3rd party libraries! You're not left wondering: "But how does tool X do that?" We won't use a tool X. We only use the Go standard library and write everything ourselves. - Tests! The interpreter we build in the book is fully tested! Sometimes in TDD style, sometimes with the tests written after. You can easily run the tests to experiment with the interpreter and make changes. This book is for you if you... - learn by building, love to look under the hood - love programming and to program for the sake of learning and joy! - are interested in how your favorite, interpreted programming language works - never took a compiler course in college - want to get started with interpreters or compilers… - ... but don't want to work through a theory-heavy, 800 pages, 4 pounds compiler book as a beginner - kept screaming "show me the code!" when reading about interpreters and compilers - always wanted to say: "Holy shit, I built a programming language!" Table of Contents Acknowledgments Introduction Lexing Parsing Evaluation Extending the Interpreter Resources Feedback Changelog
2019-12-21 20:59:16 381KB Writing Go Interpreter
1
OVALDi可以利用OVAL定义文件扫描系统漏洞、配置缺陷、补丁等 使用方法: ovaldi -m -o definintion.xml
2019-12-21 20:05:24 2.86MB 安全扫描
1
用go语言写解释器,图书(Pdf,mobi,epub格式),还有代码。这些资源,我都放在了压缩包里。
2019-12-21 19:35:34 1.88MB Writing An I 编译器
1