Sara Itani
de9393f006
update parser contructor
2016-12-28 16:46:00 -05:00
Sara Itani
d0ac8bdc00
simply ElseIfClauseNode parsing
2016-12-28 16:04:08 -05:00
Sara Itani
ebdec8c306
update EmptyStatementNode definition
2016-12-28 16:01:50 -05:00
Sara Itani
4056dab4ae
update compound statement node definition
2016-12-28 15:49:45 -05:00
Sara Itani
1ccff32dcf
extract Node\Statement\*
2016-12-28 15:11:20 -05:00
Sara Itani
e4cc136b02
move Expression nodes to separate namespace
2016-12-28 14:08:13 -05:00
Sara Itani
b8b571515d
update phpdoc comments for DelimitedList
2016-12-28 13:30:59 -05:00
Sara Itani
b2bb689222
clean up parseDelimitedList
2016-12-28 13:22:13 -05:00
Sara Itani
badad2bcf2
extract DelimitedList\ConstElementList
2016-12-28 13:13:31 -05:00
Sara Itani
8cdd74a19a
extract DelimitedList\StaticVariableNameList
2016-12-28 13:09:34 -05:00
Sara Itani
53feccc271
extract DelimitedList\VariableNameList
2016-12-28 13:03:38 -05:00
Sara Itani
c71ec6b04d
extract DelimitedList\TraitSelectOrAliasClauseList
2016-12-28 13:00:06 -05:00
Sara Itani
7f95b6cab6
remove code duplication
2016-12-28 12:57:17 -05:00
Sara Itani
a98b70a79d
extract DelimitedLsit\NamespaceUseGroupClauseList
2016-12-28 12:54:33 -05:00
Sara Itani
2d7c58551d
extract DelimitedList\ArgumentExpressionList
2016-12-28 12:50:12 -05:00
Sara Itani
b1c2a5aee7
extract DelimitedList\QualifiedNameList
2016-12-28 12:46:56 -05:00
Sara Itani
041f9ee703
extract DelimitedList\ArrayElementList, ListExpressionList
2016-12-28 12:42:52 -05:00
Sara Itani
bb8b524ec9
extract DelimitedList\ExpressionList
2016-12-28 12:27:52 -05:00
Sara Itani
1fb91660b9
extract ForExpressionGroup class
2016-12-28 12:19:25 -05:00
Sara Itani
4943557dc8
extract ParameterDeclarationList class
2016-12-28 12:10:54 -05:00
Sara Itani
7b066ec6fb
extract QualifiedNameParts
2016-12-28 12:06:10 -05:00
Sara Itani
b8b059b1af
extract UseVariableNameList to Node
2016-12-28 12:04:48 -05:00
Sara Itani
7d6c3ac301
add position->line/char range helpers
2016-12-27 10:04:28 -05:00
Sara Itani
52a82cbd7c
more informative diagnostic reporting interface
2016-12-26 23:34:20 -05:00
Sara Itani
f7aa3be67e
extract errors to utilities.php, update playground extension
2016-12-26 22:29:46 -05:00
Sara Itani
a642d82425
continue defining parser/node api
2016-12-26 20:36:20 -05:00
Sara Itani
04c1cf9f0b
skip variableName9.php test
2016-12-26 20:30:28 -05:00
Sara Itani
59116ab6fa
make greater use of char code values in lexer, also accept file contents
...
rather than filename
2016-12-26 20:28:40 -05:00
Sara Itani
fee71c3a8e
begin defining Node API
2016-12-24 14:41:12 -08:00
Sara Itani
9abe869565
standardize around InlineHtml, update tests
2016-12-24 01:02:20 -08:00
Sara Itani
d66c20d699
add script section lexical tests
2016-12-23 22:22:12 -08:00
Sara Itani
d948069bc7
add script section start tags to all lexer tests, also do not produce InlineHtml unless it has a length > 0
2016-12-23 22:12:51 -08:00
Sara Itani
843425564d
ScriptSectionPrependedText -> InlineHtml
2016-12-23 21:27:22 -08:00
Sara Itani
a8e2976fdc
add skipped lexical grammar tests
2016-12-23 21:16:41 -08:00
Sara Itani
cf44dd7ab2
add skipped parser tests
2016-12-23 21:02:58 -08:00
Sara Itani
f508259dd5
more "getting started info"
2016-12-23 18:30:30 -08:00
Sara Itani
2d226e6c0d
make parser tests easier to debug
...
- automatically "git checkout ." and write baselines for failing tests - this speeds up development by making it easier to diff the tree on failing tests
- also remove unnecessary test
2016-12-23 16:48:51 -08:00
Sara Itani
446fda915c
update test running configurations, add comments
2016-12-23 14:10:46 -08:00
Sara Itani
ee72416b94
add framework validation tests
2016-12-21 18:32:33 -08:00
Sara Itani
b33bb1b1e1
address major issues based on framework validation
...
- test more frameworks (symfony, codeigniter, cakephp)
- handle cases where reserved words / keywords should be valid names
- add missing VoidReservedWord to lexer
- change script section lexing/parsing (currently work-in-progress: works but the representation isn't finalized) so that script sections are parsed as inline statements rather than a top-level construct. This enables the parse context to be maintained between script sections in a file
- clarify logic around script section start/end tags
- address issues with postfix expression parsing (e.g. could not include increment operators after indexing into an array): be more permissive w/ what constructs are allowed to follow one another
- do not require expression in TernaryExpression->ifExpression, as this should be optional
2016-12-21 17:48:40 -08:00
Sara Itani
a9365f9d97
string literal fixes (improves WP test pass)
...
- dq/sq string literals can span multiple lines
- temporary disable template string parsing
2016-12-19 01:21:57 -08:00
Sara Itani
0cc8874aeb
parser fixes (addresses >100 failing WP tests)
...
- properly parse inline html
- fix if (type 2) statements
- don't require semicolon to end statement if at end of script section
2016-12-19 00:59:33 -08:00
Sara Itani
4e4c0ce023
test output errors on frameworks
2016-12-19 00:55:28 -08:00
Sara Itani
6fdd557bdd
skip invalid spec test cases
2016-12-18 20:25:52 -08:00
Sara Itani
f4807c9095
rename LICENSE -> LICENSE.txt
2016-12-18 14:58:59 -08:00
Sara Itani
ce30fdccd7
add AssignmentExpression
2016-12-18 14:57:20 -08:00
Sara Itani
b523909efe
add copyright headers
2016-12-18 14:49:28 -08:00
Sara Itani
45c483a1a3
Merge branch 'master' of https://github.com/mousetraps/tolerant-php-parser
2016-12-16 11:20:10 -08:00
Sara Itani
3af035013e
add info about running code coverage
2016-12-16 03:55:54 -08:00
Sara Itani
029733f128
add getting started steps to readme
2016-12-16 03:38:28 -08:00