Commit Graph

82 Commits (f2741b34a4b82600f7965cfa0f6eae6d4f4ffe24)

Author SHA1 Message Date
John Benediktsson f2741b34a4 Eliminate duplicate syntax for stack effects "(" no longer drops and is identical to the old "((", which is now removed. 2011-10-18 13:19:39 -07:00
John Benediktsson 1097e59026 Cleanup more lint warnings. 2011-10-16 13:01:58 -07:00
John Benediktsson fd853f9958 Cleanup some lint warnings. 2011-10-15 19:19:44 -07:00
John Benediktsson eb55f8575c Cleanup more lint warnings. 2011-10-14 12:31:46 -07:00
John Benediktsson 463c7292d1 Fix M: stack effects. 2011-10-13 16:41:17 -07:00
Doug Coleman 300138eb4d Refactor the lexer/parser to expose friendlier words for scanning tokens. The preferred top-level words now throw an exception on EOF.
CREATE -> scan-new
CREATE-CLASS -> scan-new-class
CREATE-WORD -> scan-new-word
CREATE-GENERIC -> scan-new-generic
scan -> (scan-token)
scan-token now throws on eof
(scan-word) returns word/number/f
scan-word now throws on eof
scan-word-name expects a non-number
Fixes #183.
Fixes #209.
2011-09-29 11:28:28 -07:00
John Benediktsson 248b0df6fc Spelling fixes to documentation. 2011-08-26 16:20:31 -07:00
Joe Groff b94bced2e4 peg.ebnf: add rule~ syntax to discard a matching subrule from the AST; document (grouping) and {grouping} syntax 2011-06-06 16:32:19 -07:00
Keita Haga 2c324b14df In several documentation, remove whitespace before or after the colon or period 2011-02-10 01:51:13 +09:00
Keita Haga 0fb40ff3a5 peg.ebnf: fix minor typo in docs 2011-01-20 23:39:30 +09:00
Keita Haga 035e6eacef peg.ebnf: fix a couple of typos in docs 2011-01-15 01:11:37 +09:00
Slava Pestov 3961c4f657 peg.ebnf: minor fix 2010-07-26 12:40:32 -04:00
Slava Pestov d2d466de29 Language change: tuple slot setter words with stack effect ( value object -- ) are now named FOO<< instead of (>>FOO) 2010-05-06 17:21:02 -04:00
Doug Coleman 03f5dfc14d C-style identifiers in peg.ebnf 2010-05-03 23:52:37 -05:00
Doug Coleman ac2dd7c435 Allow - in peg.ebnf identifiers. Eating still not allowed... 2010-05-03 23:40:50 -05:00
Doug Coleman a5ae116fd9 Allow a-zA-Z0-9_ in identifiers for peg.ebnf 2010-05-03 23:36:29 -05:00
Daniel Ehrenberg d9878f81d7 Changing require-when usages to the new syntax for require-when 2010-04-18 14:29:24 -05:00
Daniel Ehrenberg f2f80dadc7 Updating code to use require-when rather than vocab [ require ] when 2010-03-18 01:13:37 -04:00
Daniel Ehrenberg 0f0571e48a Moving new-sets to sets 2010-02-26 16:01:01 -05:00
Slava Pestov 1f89dc505a effects.parser: throw a proper no-word error if effect references an unknown class word 2010-02-23 23:57:13 +13:00
Slava Pestov 880fb747fc Removing integers-as-sequences 2010-01-15 07:15:33 +13:00
Doug Coleman f29abf5740 use $subsections instead of $subsection 2009-11-18 16:40:18 -06:00
Joe Groff c6761710a6 Merge branch 'master' of http://factorcode.org/git/factor
Conflicts:
	basis/locals/locals.factor
	basis/peg/peg.factor
	extra/infix/infix.factor
2009-10-28 16:17:24 -05:00
Joe Groff 22a9be5ea5 update existing code to use :> ( ) when possible 2009-10-28 16:11:33 -05:00
Doug Coleman ae519868f7 over push -> suffix!, over push-all -> append! 2009-10-28 15:29:01 -05:00
Doug Coleman a57e990af7 parsed -> suffix!, add append! 2009-10-28 13:38:27 -05:00
Joe Groff 33f373162d fix load errors from bootstrapping 2009-10-28 12:51:03 -05:00
Joe Groff 42303f4f4b update peg for [let change 2009-10-27 22:29:20 -05:00
Slava Pestov f6c994da8c peg: fix unit test failures 2009-10-19 06:01:20 -05:00
Slava Pestov 72babc089b peg.ebnf: fix 2009-10-19 04:05:26 -05:00
Slava Pestov e882db0524 peg.ebnf: turn $unchecked-examples into $examples 2009-10-19 03:44:50 -05:00
Chris Double 3fbba4df28 peg.ebnf doc fixes to appease help.lint 2009-10-19 18:26:19 +13:00
Chris Double 99a655830f Tweak what EBNF words are private 2009-10-19 18:14:13 +13:00
Chris Double cfae18bcd2 Basic peg.ebnf docs 2009-10-19 18:12:24 +13:00
Chris Double 980ab7a861 Fix cpu.8080 bitrot 2009-10-15 17:33:44 +13:00
Doug Coleman 47fab85a00 replace usages of <" with """ 2009-09-20 22:42:40 -05:00
Doug Coleman d1ce837569 Delete empty unit tests files, remove 1- and 1+, reorder IN: lines in a lot of places, minor refactoring 2009-08-13 19:21:44 -05:00
Doug Coleman 8da9d0f203 rename peek -> last and update all usages 2009-05-25 16:38:33 -05:00
Slava Pestov 80d6233913 Fix even more usings 2009-05-16 10:45:17 -05:00
Slava Pestov ba04d5af1e Update documentation for stricter vocabulary search path semantics 2009-05-16 00:29:21 -05:00
Slava Pestov daec154817 Updating code in basis and extra for stricter vocab search path semantics 2009-05-14 23:23:06 -05:00
Slava Pestov d7db5edadc Cleaning up USING: lists for new strict semantics 2009-05-14 16:54:16 -05:00
Slava Pestov b1bcc44dd5 Rename use+ to add-use, move search to vocabs.parser, EXCLUDE: bombs out if word doesn't exist 2009-05-13 22:15:48 -05:00
Slava Pestov 6f03366e2b Rename enable/disable-compiler to enable/disable-optimizer, and add with-optimizer and without-optimizer combinators 2009-05-01 05:52:05 -05:00
Slava Pestov 3353a777f7 Fixing some unit test failures 2009-04-22 07:05:00 -05:00
Slava Pestov 05f3f9dcb9 Fixing unit tests for stack effect inference changes 2009-04-20 21:15:19 -05:00
Doug Coleman 7a1841f59b (( -- )) eval -> eval( -- ) 2009-04-17 15:49:21 -05:00
Doug Coleman dba4c0d589 fixing compiler errors in basis 2009-04-17 12:46:04 -05:00
Slava Pestov 99b8400e56 Documentation updates 2009-04-06 03:00:46 -05:00
Chris Double 087a7acfba Fix peg left recursion handling 2009-03-31 23:59:52 -05:00