Skip to content

Instantly share code, notes, and snippets.

Avatar

Andrew Levine DrewML

View GitHub Profile
@betaorbust
betaorbust / README.md
Last active Jul 21, 2018
ES2015 fallback check for Progressive Transpilation
View README.md

ES2015 Syntax Check for use with Progressive Transpilation

The attached file file spits out a string for direct injection into the head of a page, which will be a lightweight test of the ability to parse and run ES2015 syntax.

Unminified version

This is the original source for the test-case below:

class ಠ_ಠ extends Array{
@DmitrySoshnikov
DmitrySoshnikov / Recursive-descent-backtracking.js
Last active Jul 16, 2020
Recursive descent parser with simple backtracking
View Recursive-descent-backtracking.js
/**
* = Recursive descent parser =
*
* MIT Style License
* By Dmitry Soshnikov <dmitry.soshnikov@gmail.com>
*
* In this short lecture we'll cover the basic (non-predictive, backtracking)
* recursive descent parsing algorithm.
*
* Recursive descent is an LL parser: scan from left to right, doing
You can’t perform that action at this time.