Differences

This shows you the differences between two versions of the page.

Link to this comparison view

cpl-atm:laboratoare:laborator5.1 [2013/11/15 13:56]
laura.vasilescu
cpl-atm:laboratoare:laborator5.1 [2013/11/15 13:58] (current)
laura.vasilescu
Line 28: Line 28:
  
 Prelucrați arborele AST și realizați adnotări de calcule intermediare pentru a evalua expresia. Prelucrați arborele AST și realizați adnotări de calcule intermediare pentru a evalua expresia.
 +
 +<​note>​
 +<​code>​
 +var file=require('​./​jison.js'​).parser;​
 +var tree=file.parse("​1+3+4"​);​
 +console.log(JSON.stringify(tree,​null,​ 4));
 +</​code>​
 +</​note>​
 +
 Pentru expresia ''​1+3''​ ar trebui să arate de forma: Pentru expresia ''​1+3''​ ar trebui să arate de forma:
 <​code>​ <​code>​
cpl-atm/laboratoare/laborator5.1.1384516604.txt.gz · Last modified: 2013/11/15 13:56 by laura.vasilescu
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0