TechNewsHeaven {{source.name}}




mgechev/tiny-compiler
2018-01-21T07:52:31.1916058Z - mgechev / Hacker News
*/const eval = ast => {const opAcMap = {sum : args => args . reduce (( a , b ) => a + b, 0 ),sub : args => args . */const transpile = ast => {const opMap = { sum : ' + ' , mul : ' * ' , sub : ' - ' , div : ' / ' };const transpileNum = ast => ast . val ;const transpileOp = ast => ` ( ${ ast . val ] + ' ' ) } ) ` ;const transpile = ast => ast .

Your favorite news


Popular news




Recommended news