- Fixed bug with compile context and global variables (reported by @gallir)
commit7ed8661fb9d21a3ea7a0761ebf589229f4ad3137
authorCésar D. Rodas <crodas@php.net>
Mon, 9 Aug 2010 20:30:01 +0000 (9 16:30 -0400)
committerCésar D. Rodas <crodas@php.net>
Mon, 9 Aug 2010 20:30:01 +0000 (9 16:30 -0400)
tree77629985cba7393839d3f5f6bc31abf3189e0011
parent343be429b1cb668249b12071292ac83dedac6e8c
- Fixed bug with compile context and global variables (reported by @gallir)
    + Added global variables to current context (useful to resolve foo.bar as variable or object)
- Changed "string" for 'string' (to measure if there is any performance gain)
46 files changed:
Makefile
lib/Haanga/Compiler.php
lib/Haanga/Compiler/Lexer.lex
lib/Haanga/Compiler/Lexer.php
lib/Haanga/Compiler/Parser.php
lib/Haanga/Compiler/Parser.y
lib/Haanga/Generator/PHP.php
tests/TestSuite.php
tests/assert_templates/global.html [new file with mode: 0644]
tests/assert_templates/global.php [new file with mode: 0644]
tests/assert_templates/global.tpl [new file with mode: 0644]
tests/tmp/assert_templates/autoescape.tpl.php
tests/tmp/assert_templates/base.tpl.php
tests/tmp/assert_templates/custom_tag.tpl.php
tests/tmp/assert_templates/cycle.tpl.php
tests/tmp/assert_templates/dummy.tpl.php
tests/tmp/assert_templates/empty_loop.tpl.php
tests/tmp/assert_templates/exec.tpl.php
tests/tmp/assert_templates/filter.tpl.php
tests/tmp/assert_templates/first_of.tpl.php
tests/tmp/assert_templates/global.tpl.php [copied from tests/tmp/assert_templates/exec.tpl.php with 59% similarity]
tests/tmp/assert_templates/if_else_simple.tpl.php
tests/tmp/assert_templates/ifchanged.tpl.php
tests/tmp/assert_templates/ifequals.tpl.php
tests/tmp/assert_templates/in.tpl.php
tests/tmp/assert_templates/inheritence_nested_block.tpl.php
tests/tmp/assert_templates/inheritence_nested_block_duplicated.tpl.php
tests/tmp/assert_templates/join.tpl.php
tests/tmp/assert_templates/load.tpl.php
tests/tmp/assert_templates/loop.tpl.php
tests/tmp/assert_templates/nested_block.tpl.php
tests/tmp/assert_templates/nested_block_second_parent.tpl.php
tests/tmp/assert_templates/nested_block_second_parent_override.tpl.php
tests/tmp/assert_templates/object.tpl.php
tests/tmp/assert_templates/partial.tpl.php
tests/tmp/assert_templates/pluralize.tpl.php
tests/tmp/assert_templates/regroup.tpl.php
tests/tmp/assert_templates/spaceless.tpl.php
tests/tmp/assert_templates/strip_whitespace.tpl.php
tests/tmp/assert_templates/subtemplate.tpl.php
tests/tmp/assert_templates/templatetag.tpl.php
tests/tmp/assert_templates/title.tpl.php
tests/tmp/assert_templates/trans.tpl.php
tests/tmp/assert_templates/truncatewords.tpl.php
tests/tmp/assert_templates/variable_existe.tpl.php
tests/tmp/assert_templates/with.tpl.php