Sara Itani
a642d82425
continue defining parser/node api
2016-12-26 20:36:20 -05: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
b523909efe
add copyright headers
2016-12-18 14:49:28 -08:00
Sara Itani
3c8a3aef7e
cast-expression support
2016-12-14 01:41:10 -08:00
Sara Itani
b82126bee8
include error coverage stats after spec test run
2016-12-11 12:30:09 -08:00
Sara Itani
266a40ee29
add json serialize options
2016-12-10 22:55:12 -08:00
Sara Itani
c1383bb640
represent MissingToken, SkippedToken as classes
2016-11-23 15:31:14 -08:00
Sara Itani
aed5c19e15
ternary expression support
2016-11-18 16:27:08 -08:00
Sara Itani
fd8946ec76
support reserved words in expressions
2016-11-16 16:34:07 -08:00
Sara Itani
f3270b4291
unary-op-expression support, update tests
2016-11-13 13:25:33 -08:00
Sara Itani
623a90b29e
support remaining binary expressions
2016-11-13 11:30:42 -08:00
Sara Itani
e4dd643ba6
variadic parameter support, clean up functions
2016-11-06 19:42:48 -08:00
Sara Itani
61b430da80
foreach-statement support
2016-11-05 16:06:10 -07:00
Sara Itani
a0f6b8181c
add script section tags
2016-11-01 15:33:15 -07:00
Sara Itani
9e09c55c6c
more wip
2016-10-15 15:02:00 -07:00
Sara Itani
8b625589c3
work in progress
2016-10-15 13:02:41 -07:00
Sara Itani
a578447080
finish dq string literals
2016-10-13 18:23:57 -07:00
Sara Itani
0b3ba63110
initial progress on template expressions
2016-10-13 10:49:39 -07:00
Sara Itani
c007c3ff38
lexer supports single quote literals
2016-10-11 17:29:10 -07:00
Sara Itani
02ce24faf5
support numeric literals
2016-10-11 15:30:00 -07:00
Sara Itani
ed600caddd
Node/Token json serialization, fix node kind issue
2016-10-08 23:25:29 -07:00
Sara Itani
409404b7af
add parser skeleton and invariants, refactor
2016-10-06 01:01:41 -07:00
Sara Itani
ea5fa4f733
add php language subset test for parser demo
2016-10-02 23:17:20 -07:00
Sara Itani
f228d22a92
support non-compound tokens
2016-10-02 20:51:00 -07:00
Sara Itani
1f684e2450
add keyword and operator mappings
2016-10-02 20:26:01 -07:00
Sara Itani
24a7bbb26e
add names and keywords
2016-10-02 17:21:02 -07:00
Sara Itani
b33b835df8
add variable names
2016-10-02 16:34:50 -07:00
Sara Itani
4e42222c95
add whitespace chars
2016-10-02 15:11:15 -07:00
Sara Itani
72dd4d1d4a
support '/' character
2016-10-02 15:08:32 -07:00
Sara Itani
b3186f066d
add newline chars
2016-10-02 13:40:16 -07:00
Sara Itani
4adee608b4
add comments support, update tests
2016-10-02 13:01:18 -07:00
Sara Itani
23f9404121
support eof token kind, add more invariant tests
2016-10-02 11:01:57 -07:00
Sara Itani
2774595818
Initial commit
2016-10-02 00:28:13 -07:00