/peanut

Basic JavaScript to Squirrel transpiler

Primary LanguageC++GNU General Public License v3.0GPL-3.0

peanut

Basic JavaScript to Squirrel transpiler, focusing on compatibility with Portal 2.

Currently implemented:

  • "let" and "var" keywords
  • simulted function closure
  • template literals
  • defining objects

Known issues:

  • "var" definitions cannot span multiple lines
  • ternary operations and switch statements are broken