Snapshot của chidiwilliams/glox: 50★ · Go. Go implementation of the Lox programming language from Crafting Interpreters
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
An implementation of the tree-walking interpreter from Crafting Interpreters
written in Go.
Installation
To install, run:
go get github.com/chidiwilliams/glox
Usage
To start a new REPL session:
glox
To run a Lox file:
glox -filePath [filePath]
Parser grammar
glox implements the original Lox definition as well as some features
from the Challenges sections in the book: series expressions, function expressions, anonymous functions, and getter
methods.
var a = 1;
while (a < 10) {
print a;
a = a + 1;
}
for (var a = 1; a < 10; a = a + 1) {
print a;
}
Functions and closures:
fun printSum(a, b) {
print a + b;
}
printSum(1, 2);
fun returnFunction() {
var outside = "outside";
fun inner() {
print outside;
}
return inner;
}
var fn = returnFunction();
fn();
TopGit chưa ghi nhận license cho chidiwilliams/glox. Phần lớn repo public trên GitHub là mã nguồn mở, nhưng điều khoản khác nhau từng repo — mở file LICENSE để xác nhận.
chidiwilliams/glox là gì?
chidiwilliams/glox (chidiwilliams/glox) là dự án Go trên GitHub. Theo mô tả gốc: Go implementation of the Lox programming language from Crafting Interpreters
Đọc thêm về chidiwilliams/glox ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/chidiwilliams/glox là nguồn chính thức.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về glox?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về glox.