Skip to content

Releases: SerhiiCho/goodbye-html

v2.9.5

06 Mar 17:28
Compare
Choose a tag to compare
  • Refactored match statement in Evaluator.php file

v2.9.4

22 Jan 16:37
Compare
Choose a tag to compare
  • Add comment description to the case in ParserOption ENUM

v2.9.3

12 Jan 11:30
Compare
Choose a tag to compare
  • Moved phpunit from "require" to "require-dev" in composer.json file

v2.9.2

12 Jan 11:20
Compare
Choose a tag to compare
  • Added more tests to EvaluatorTest.php for checking if/elseif/else statements logic
  • Fixed wrong printing of the expression statement when calling a String() method on it

v2.9.1

11 Jan 17:29
Compare
Choose a tag to compare
  • Inline one method in CoreParserTest.php because it was used only in one place
  • Change IfStatement ast node to a better implementation

v2.9.0

23 Dec 09:47
Compare
Choose a tag to compare
  • Simplified Lexer code
  • Add support for grouped expressions. Now you can use them like this: {{ (1 + 2) * 3 }}

v2.8.0

22 Nov 13:06
Compare
Choose a tag to compare
  • Added support for comparison operators like ==, ===, !==, !=, <, >, <=, >=. Now you can use them like this: {{ if 1 == 1 }}, {{ if 1 === 1 }}, {{ if 1 !== 1 }}, {{ if 1 != 1 }}, {{ if 1 < 1 }}, {{ if 1 > 1 }}, {{ if 1 <= 1 }}, {{ if 1 >= 1 }}
  • Improved error handling for operators

v2.7.0

22 Nov 08:06
Compare
Choose a tag to compare
  • Added more tests to make sure that everything works as expected
  • Added more info to the README.md file
  • Added added assign statement to the BNF grammar
  • Added a third parameter to a Parser.php which excepts ParserOption ENUM

v2.6.0

21 Nov 19:09
Compare
Choose a tag to compare
  • Added elseif statements to a BNF grammar
  • Added .gitattributes file to ignore HTML files in tests/files directory
  • Updated code to level 9 of the PHP Stan static analysis tool
  • Fixed a typo in the change log file
  • Added variable declaration statement support. Now you can declare variables like this: {{ $name = 'Anna' }}. Variable declaration is a statement, and must be surrounded with curly braces
  • 🐛 Bug fix, $index variable was accessible outside of the loop. Now, it will throw an error that variable $index is undefined.

v2.5.0

19 Nov 15:51
Compare
Choose a tag to compare
  • Added support for elseif (<expression>) and else if (<expression>) statements like we have in PHP. You can use them like this: {{ if true }}<h1>True</h1>{{ elseif false }}<h1>False</h1>{{ else }}<h1>Something else</h1>{{ endif }}
  • Added PHP Stan static analysis tool
  • Added CS Fixer code style fixer
  • 🐛 Bug fixes in the Parser.php class related to readonly properties being set later in the code
  • Improved error handling
  • Changed tests back to PHPUnit from Pest, because Pest is kinda sucks and doesn't work as I want. It lacks of error descriptive error messages when tests fail. It's hard to debug. So, I decided to go back to PHPUnit
  • 🐛 Bug fix of the error that was happening when you condition of the if statement was false
  • Installed CS Fixer to the project