npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

toy-lisp

v0.0.2

Published

a toy lisp implement by JavaScript

Downloads

14

Readme

use JavaScript to implement my lisp

Build Status Coverage Status

This project is a js-version of "buildyourownlisp" from http://www.buildyourownlisp.com/contents

Your can study how to implement a toy lisp in Javascript, i list some interesting technique which i used in the project here:

  1. use antlr to produce AST for mylisp
  2. reduce antlr's AST levels to get a new tree
  3. implement semantic by JS
  4. add mocha, chai, sinon to test
  5. add ci and coverage

so if you dig into the code, you will get skills to use JS.

#directory structure of source code

1.date_example

use antlr to parse date.

grammar Simple;

date : month year ;
month : MONTH ;
year : YEAR ;

MONTH : 'January' | 'February' | 'March' | 'April' | 'May' | 'June' | 'July' | 'August' | 'September' | 'October' | 'November' | 'December' ;
YEAR : [1-9][0-9][0-9][0-9] ;

WS : [ \t\r\n]+ -> skip ;

if you do not know antlr, you can have a look at the-definitive-antlr-4-reference_p2_0, the book is at doc directory. this book sales at http://www.antlr.org/.

antlr prepare grammars for a lot of language, please see https://github.com/antlr/grammars-v4/blob/master/clojure/Clojure.g4

2.polish_notation

you can study to parse polish notation.

this chapter discuss parsing polish notation very well. http://www.buildyourownlisp.com/chapter6_parsing

8.string

this is the last chapter to implement your own lisp. you can study step by step because my code is total following http://www.buildyourownlisp.com/

why re-implement

The best way to study coding is to do a project, i want to have my own lisp because every developer want to know how compiler working. If you have question to ask me when you read the code, please report a bug and i will discuss with you.

if you use wechat, you can add me and discuss software problems with me. my wechat number is benhaben.