What is the difference between an Abstract Syntax Tree and a Concrete Syntax Tree?

A concrete syntax tree represents the source text exactly in parsed form. In general, it conforms to the context-free grammar defining the source language. However, the concrete grammar and tree have a lot of things that are necessary to make source text unambiguously parseable, but do not contribute to actual meaning. For example, to implement … Read more

Parse error: syntax error, unexpected T_STRING in app/design/frontend/base/default/template/catalog/product/new.phtml on line 37 [closed]

This is caused by the third param of your Mage::helper(‘core/string’)->truncate() call, where the ending string delimiter seems to be missing. You get the unexpected T_STRING error, because the interpreter reaches the next string (‘short’), while knowing that the previous string end wasn’t found yet. Replace this line <h3 class=”product-name”><a href=”https://stackoverflow.com/questions/10328245/<?php echo $_product->getProductUrl() ?>” title=”<?php echo … Read more