Slava Pestov
8b855b2445
Help lint fixes
2008-08-22 23:00:35 -05:00
Slava Pestov
3eb0476811
Add declaration
2008-08-22 18:09:38 -05:00
Slava Pestov
f7c69e0018
peg doesn't need combinators.lib
2008-07-11 17:27:47 -05:00
Chris Double
9fc2175403
peg refactorings
2008-07-11 11:37:02 +12:00
Chris Double
46b0df2631
Use || in peg choice code generation
2008-07-11 11:37:02 +12:00
Chris Double
51faed0945
Make pegs seq parser use short circuiting &&
2008-07-11 11:37:02 +12:00
Chris Double
b720bc16a8
Fix peg equals? method
2008-07-10 17:17:36 +12:00
Chris Double
2ed0d561ae
Store peg rules by their id rather than word in left recursion handling
2008-07-10 13:56:07 +12:00
Chris Double
9e78bb70f2
packrat refactoring
2008-07-10 13:56:07 +12:00
Chris Double
4135f81514
Fix comment in peg eval-rule
2008-07-10 13:56:07 +12:00
Chris Double
ec896eeba8
peg fixes
2008-07-10 13:56:06 +12:00
Chris Double
d92c19f694
Remove delegate usage from pegs
2008-07-10 13:56:06 +12:00
Chris Double
72bd6b4dc8
Fix peg tests
2008-07-10 13:56:06 +12:00
Chris Double
e47f944cca
Print error message nicely
2008-07-10 13:56:06 +12:00
Chris Double
b5cef674b1
Pegs throw exceptions on error now
2008-07-10 13:56:06 +12:00
Chris Double
e14bb84a5a
More error handling for pegs
2008-07-10 13:56:06 +12:00
Chris Double
00827d3b12
Throw error on failed parse, returning relevant error information
2008-07-10 13:56:05 +12:00
Slava Pestov
e55c674a2b
Fix again
2008-06-18 01:18:39 -05:00
Slava Pestov
83099e01d4
Fixing PEG:
2008-06-18 00:58:29 -05:00
Slava Pestov
dc3929f3db
Improve PEG: word
2008-06-18 00:35:19 -05:00
Doug Coleman
4d0ba8c3c1
reverse args for assoc-diff, diff
...
fix lots of usings
fix help lint
2008-04-26 02:01:43 -05:00
Doug Coleman
b7c1f9dbe8
extra changes:
...
index* -> index-from
last-index* -> last-index-from
1 tail -> rest
1 tail-slice -> rest-slice
subset -> filter
prepose
find* -> find-from
find-last* -> find-last-from
before, after generic, < for integers
make between? work for timestamps
2008-04-25 23:17:08 -05:00
Slava Pestov
b7037bf46a
Merge commit 'doublec/master'
2008-04-14 05:44:28 -05:00
Chris Double
9f0f2d0bbc
peg delay parsers now infer
2008-04-14 22:42:45 +12:00
Doug Coleman
72080fda4a
construct-boa -> boa
...
construct-empty -> new
2008-04-13 15:06:27 -05:00
Chris Double
688cbfaafa
Delocalise grow-lr
2008-04-11 14:46:11 +12:00
Chris Double
0dd8e462c6
Minor peg refactorings
2008-04-09 14:09:30 +12:00
Slava Pestov
9d8062aa46
Remove *.lib from using
2008-04-07 22:16:51 -05:00
Chris Double
463a1991ca
Fix peg help
2008-04-07 13:02:56 +12:00
Chris Double
00d09d20e2
Remove MATCH-VARS not used in pegs
2008-04-07 12:07:44 +12:00
Chris Double
e00a392736
Refactor delay parser
2008-04-05 18:41:28 +13:00
Chris Double
2744313ac1
Refactor sp peg parser
2008-04-05 18:36:17 +13:00
Chris Double
d93c7958fd
Refactor action peg parser
2008-04-05 18:33:50 +13:00
Chris Double
247bf2137b
Refactor ensure and ensure-not parsers
2008-04-05 18:30:11 +13:00
Chris Double
796981e192
Refactor semantic peg parser
2008-04-05 18:19:11 +13:00
Chris Double
3123654a84
Refactor optional peg parser
2008-04-05 18:05:09 +13:00
Chris Double
d4897fa007
Refactor repeat0 and repeat1 peg parsers
2008-04-05 18:01:18 +13:00
Chris Double
226d211342
Refactor choice peg parser
2008-04-05 17:54:18 +13:00
Chris Double
102178f787
Refactor seq peg parser
2008-04-05 17:51:42 +13:00
Chris Double
7b73d2734f
Refactor range peg parser
2008-04-05 17:33:39 +13:00
Chris Double
80d11405a9
Refactor token peg parser
2008-04-05 17:25:04 +13:00
Chris Double
8b16816bf8
Refactor satisfy peg parser
2008-04-05 17:17:52 +13:00
Chris Double
a6b160c447
apply-memo-rule doesn't need to be inline
2008-04-05 02:26:41 +13:00
Chris Double
72dbac6a29
delocalise apply-memo-rule
2008-04-05 02:07:17 +13:00
Chris Double
a4700e072e
delocalise apply-rule
2008-04-05 01:56:37 +13:00
Chris Double
9d0485cd8a
Merge commit 'origin/master'
2008-04-02 13:02:47 +13:00
Chris Double
6b454eed36
Various peg/ebnf fixes
...
- Box parsers were broken when involved in left recursion detection
- ebnf no longer implicitly ignores white space between terminates/non-terminals
- ebnf now handles \t and \n in grammars so productions to detect white space work
- reset-delegates is now reset-pegs
2008-04-02 12:59:12 +13:00
Eduardo Cavazos
4f07aefc97
Merge branch 'master' of git://factorcode.org/git/factor
...
Conflicts:
core/classes/tuple/tuple.factor
2008-03-31 19:42:21 -06:00
Eduardo Cavazos
aa40350aa7
replace add* and add with prefix and suffix
2008-03-31 18:18:05 -06:00
Chris Double
c45eba6898
Add semantic parser
2008-03-31 16:34:59 +13:00