pegjs is an actively used grammar language created in 2010.

9Years Old 5,035Users 0Jobs

Example code from the web:

start
 = additive

additive
  = left:multiplicative "+" right:additive { return left + right; }
  / multiplicative

multiplicative
  = left:primary "*" right:multiplicative { return left * right; }
  / primary

primary
  = integer
  / "(" additive:additive ")" { return additive; }

integer "integer"
  = digits:[0-9]+ { return parseInt(digits.join(""), 10); }
Edit

Last updated February 11th, 2019