Skip to content

Instantly share code, notes, and snippets.

@leostera
Created December 4, 2020 12:18
Show Gist options
  • Save leostera/5578ff23639418a89feec832156b6cef to your computer and use it in GitHub Desktop.
Save leostera/5578ff23639418a89feec832156b6cef to your computer and use it in GitHub Desktop.
./node_modules/.bin/prettier --write grammar.js
grammar.js 61ms
tree-sitter generate
tree-sitter test
s_expressions:
✗ atom
✓ empty
✓ single line
✓ multiple parts
✓ nested s-expressions
✓ field-like atoms
✓ real-life example
1 failure:
expected / actual
1. atom:
(sexp
 (list
(atom)
(atom)
(list
(atom)
(atom)
(atom)
(atom)
(list
(atom)
(atom)
(atom)
(atom)
(atom)
(atom)
(list
(atom)
(atom))))
(atom)
(atom)))
 (atom))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment