stephens2424 / php

Parser for PHP written in Go
BSD 3-Clause "New" or "Revised" License
529 stars 77 forks source link

mathematical expressions are not parsing correctly #32

Closed imiskolee closed 7 years ago

imiskolee commented 7 years ago
<?php

echo 2 * (2 - 3);
(ast.EchoStmt)Echo
        (ast.BinaryExpr)-
            (*ast.Literal)Literal-float: 2
            (*ast.Literal)Literal-float: 3