Commit Graph

587 Commits

Author SHA1 Message Date
Ryan Chandler
2b9834964b
chore: Cargo.toml 2022-11-28 17:23:13 +00:00
Saif Eddin Gmati
f9d3f52990
support more types (#120) 2022-11-28 17:20:31 +00:00
Ryan Chandler
9ad5f54a75
parser: parse namespace into single node 2022-11-28 14:19:10 +00:00
Ryan Chandler
807c9e73cd chore: fmt 2022-11-28 13:18:26 +00:00
Ryan Chandler
e7d4900a02 parser/tests: group use with alias 2022-11-28 13:18:26 +00:00
Ryan Chandler
a99b62155a parser: support group use statements 2022-11-28 13:18:26 +00:00
Ryan Chandler
fa820ba296 parser/tests: add coverage for simple use statements 2022-11-28 13:18:26 +00:00
Ryan Chandler
5a5f85e569
chore: add jffnr badge 2022-11-27 16:48:59 +00:00
Ryan Chandler
bccf5f76b8
chore: add jffnr badge 2022-11-27 16:48:12 +00:00
Ryan Chandler
f88c48d6e4
chore: README 2022-11-27 02:51:28 +00:00
Ryan Chandler
b103c34d3e chore: fmt 2022-11-27 02:49:28 +00:00
Ryan Chandler
c831557752 chore: README 2022-11-27 02:49:28 +00:00
Ryan Chandler
e53c9ec6d0 chore: README 2022-11-27 02:49:28 +00:00
Ryan Chandler
e9c4b54d99 chore: rename to php-parser-rs 2022-11-27 02:49:28 +00:00
Ryan Chandler
ca45b213e5 chore: move all code into a single library 2022-11-27 02:49:28 +00:00
Ryan Chandler
c2ffd0cd59
parser: add missing reserved keyword tokens to list of accepted
Closes #50
2022-11-27 02:20:23 +00:00
Ryan Chandler
b26156c008
wip 2022-11-25 18:42:48 +00:00
Ryan Chandler
3ab63ae7c8
wip 2022-11-25 18:41:18 +00:00
Ryan Chandler
5529fa3e84
wip 2022-11-25 18:40:37 +00:00
Ryan Chandler
5775e5964a
wip 2022-11-25 18:39:57 +00:00
Ryan Chandler
f02a8d85e2
wip 2022-11-25 18:39:03 +00:00
Ryan Chandler
9a0bf0db19
wip 2022-11-25 18:07:55 +00:00
Ryan Chandler
c479ab4d6b
wip 2022-11-25 17:22:52 +00:00
Ryan Chandler
2f6adb7a00
chore: use hashbrown 2022-11-25 16:32:50 +00:00
Ryan Chandler
28a1d19711
wip 2022-11-24 21:28:45 +00:00
Ryan Chandler
91276aa2c1
wip 2022-11-24 21:28:38 +00:00
Ryan Chandler
46039ef9de
ffi: basic example 2022-11-24 21:13:24 +00:00
Ryan Chandler
cdaec0b7ca
interpreter: basic support for require 2022-11-24 10:39:12 +00:00
Ryan Chandler
4501905705
interpreter: do enough to get recursive fib working 2022-11-24 01:43:52 +00:00
Ryan Chandler
402814fd95
wip 2022-11-23 19:05:30 +00:00
Ryan Chandler
cea9e8a704
Merge pull request #115 from edsrzf/float-e-sign 2022-09-23 20:40:18 +01:00
Evan Shaw
0ea4d49678 cargo fmt 2022-09-24 07:39:27 +12:00
Evan Shaw
50ecea182a lexer: Handle floats with sign after e 2022-09-23 22:03:12 +12:00
Ryan Chandler
9acb03b606
Merge pull request #114 from ryangjchandler/fix/top-level-statements 2022-09-22 21:13:37 +01:00
Ryan Chandler
ca65f801fb
parser: only allow certain statements at top level 2022-09-22 21:13:17 +01:00
Ryan Chandler
4b437ebe87
Merge pull request #113 from ryangjchandler/feature/remaining-shorthand-statements 2022-09-22 20:57:37 +01:00
Ryan Chandler
b97fd8e86d
chore: format 2022-09-22 20:54:34 +01:00
Ryan Chandler
d0914caffb
parser: shorthand declare 2022-09-22 20:54:23 +01:00
Ryan Chandler
1d377936e0
parser: shorthand switch 2022-09-22 20:38:53 +01:00
Ryan Chandler
af915e4575
parser: shorthand for 2022-09-22 20:32:11 +01:00
Ryan Chandler
b534d2c9d4
parser: support shorthand while 2022-09-22 20:20:56 +01:00
Ryan Chandler
f3b01d1812
Merge pull request #112 from edsrzf/int-upper 2022-09-21 13:00:36 +01:00
Ryan Chandler
54d0901a84
Merge pull request #111 from edsrzf/shorthand-ternary-precedence 2022-09-21 13:00:21 +01:00
Evan Shaw
d6af5b8c0b Handle uppercase letters for int literals 2022-09-21 22:44:54 +12:00
Evan Shaw
46abeec2b8 Add precedence for shorthand ternary operator 2022-09-21 22:29:40 +12:00
Ryan Chandler
723244eca0
Merge pull request #109 from edsrzf/lex-num-literal 2022-09-20 11:22:41 +01:00
Evan Shaw
05a50d3eb8 Lexer: handle all types of numeric literals 2022-09-20 21:56:49 +12:00
Ryan Chandler
8982feef66
Merge pull request #108 from ryangjchandler/feature/short-foreach 2022-09-19 11:29:07 +01:00
Ryan Chandler
1beb4e5634
chore: format 2022-09-19 11:25:15 +01:00
Ryan Chandler
2492a82bcc
parser: support short foreach statement 2022-09-19 11:24:45 +01:00