monke
所属分类:编程语言基础
开发工具:GO
文件大小:0KB
下载次数:0
上传日期:2023-06-22 11:03:13
上 传 者:
sh-1993
说明: 用go编写的解释编程语言
(Interpreted programming language written in go)
文件列表:
LICENSE (35149, 2023-09-11)
ast/ (0, 2023-09-11)
ast/ast.go (3715, 2023-09-11)
go.mod (22, 2023-09-11)
lexer/ (0, 2023-09-11)
lexer/lexer.go (2582, 2023-09-11)
lexer/lexer_test.go (2436, 2023-09-11)
main.go (288, 2023-09-11)
parser/ (0, 2023-09-11)
parser/parser.go (6081, 2023-09-11)
parser/parser_test.go (10245, 2023-09-11)
repl/ (0, 2023-09-11)
repl/repl.go (431, 2023-09-11)
token/ (0, 2023-09-11)
token/token.go (847, 2023-09-11)
# Monke programming language
## Tokenizer (lexer)
Extract keywords, literals and identifiers
## Parser
A parser is a software component that takes input data (frequently text) and builds
a data structure – often some kind of parse tree, abstract syntax tree or other
hierarchical structure – giving a structural representation of the input, checking for
correct syntax in the process. […] The parser is often preceded by a separate lexical
analyser, which creates tokens from the sequence of input characters;
# TODO
- [x] Lexer
- [ ] Parser
- [ ] Compiler
_Based on the book: "writing an interpreter in go"_
近期下载者:
相关文件:
收藏者: