Commit Graph

124 Commits (2a8af325347d5e90ce874f706f5746cd0ddaac9b)

Author SHA1 Message Date
John Benediktsson 8edab41922 locals.parser: check for valid locals names. 2013-03-20 09:48:55 -07:00
Doug Coleman 11464e10bd core: in-definition -> with-definition. 2012-08-24 16:07:31 -07:00
Doug Coleman a335710021 core: rename in-word-definition to in-definition 2012-08-24 16:04:49 -07:00
Doug Coleman 1973ca3af1 core: Don't allow nested defintions in :, ::, M:, M::. Fixes #469. 2012-08-24 15:53:45 -07:00
John Benediktsson 7104c2d7b9 using the new H{ } make. 2012-07-19 09:50:09 -07:00
Doug Coleman 9a220ef78c namespaces: Rename ``bind`` to ``with-variables``. Update a few places that called ``global [ ] with-variables`` to use ``with-global``. 2012-07-19 00:02:47 -07:00
Doug Coleman d3af3dcdcf memoize: implement identity memoize, trim using lists so bootstrap continues to work 2011-11-30 14:41:32 -08:00
Doug Coleman 664239e1ba generalizations: Refactor stack-checker so that smart combinators can be used with curry and compose. 2011-11-27 20:25:22 -08:00
Doug Coleman 96da8df16e Rename class to class-of 2011-10-24 06:47:42 -05:00
Doug Coleman 2530cf5657 Rename complete-effect to scan-effect 2011-10-17 10:25:27 -07:00
John Benediktsson f3a70c2a99 Change method parsing to validate stack effects. Fixes #236. 2011-10-13 16:41:17 -07:00
Doug Coleman 54ada3d943 Rename method -> lookup-method in three places. 2011-10-04 20:37:23 -07:00
Doug Coleman e1678b928a Rename spread>quot to deep-spread>quot, and spread>quot-shallow to shallow-spread>quot. 2011-10-02 20:25:39 -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
Keita Haga 3b21317e9a locals: remove trailing whitespace in docs 2011-02-20 09:16:41 +09:00
Slava Pestov e935681743 Add a scan-token word which is like scan, except throws an error on EOF; document scan-object word; mention that scan-token/scan-object are preferred over scan/scan-word 2010-07-06 16:20:08 -04:00
Slava Pestov c0f39aa99d Move remaining sequence operations from generalizations to sequences.generalizations where they belong 2010-05-18 18:36:47 -04:00
Daniel Ehrenberg d9878f81d7 Changing require-when usages to the new syntax for require-when 2010-04-18 14:29:24 -05:00
Slava Pestov 6ad12e7345 locals: remove some dead code 2010-03-30 21:56:51 -04: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 4f1819f632 Merge branch 'master' of git://factorcode.org/git/factor into bags 2010-03-02 17:04:45 -05:00
Joe Groff 0c71fcccc7 lexer: add "each-token" and "map-tokens", which are equivalent to "parse-token _ each/map" but incremental. update a smattering of parsing words (such as USING:, SYMBOLS:, etc.) to use each-token/map-tokens 2010-02-28 22:19:43 -08:00
Daniel Ehrenberg bf73129238 Changing some uses of prune to use members 2010-02-27 13:14:03 -05:00
Slava Pestov 29e1d268b7 generic: rename method-body predicate class to method 2010-02-03 23:11:24 +13:00
Brad Christensen c37b4f5f61 A number of documentation fixes and cleanup. 2010-02-03 00:05:03 -07:00
Joe Groff 451c0b8a5b more fussing over locals docs grammar 2010-01-24 10:05:56 -08:00
Joe Groff ce026c5cfe remove redundant text from docs for locals docs 2010-01-22 18:40:00 -08:00
Slava Pestov 08b6ebc7fa Factor source files should not be executable 2009-11-21 17:50:43 -06:00
Joe Groff 4bea896be9 patch up locals fry tests 2009-11-08 21:00:35 -06:00
Joe Groff b7a59240c7 reduce number of empty quotations generated by fry 2009-11-07 16:12:22 -06:00
Joe Groff 5f55092f49 update M\ lambda condomize 'cause you can't compose a lambda 2009-11-07 13:32:08 -06:00
Joe Groff 1af1d4f5f6 update terms of fry–locals peace treaty 2009-11-07 13:03:46 -06:00
Joe Groff e613396d38 touch up locals documentation, unify terminology, and put a link to "limitations of locals" in MACRO:: docs 2009-10-31 16:41:11 -05:00
Joe Groff 2986ad1258 clean up typos and improve synergy between locals and namespaces docs 2009-10-29 14:08:45 -05: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 5177328c14 update :> docs for new :> ( ) feature 2009-10-28 15:59:17 -05:00
Joe Groff fd4276b9c4 :> ( a b c ) syntax to bind multiple variables left-to-right off the stack 2009-10-28 15:40:07 -05:00
Doug Coleman ae519868f7 over push -> suffix!, over push-all -> append! 2009-10-28 15:29:01 -05:00
Doug Coleman b5fd809209 memq? -> member-eq?, sorted-memq? -> sorted-member-eq? 2009-10-28 15:02:00 -05:00
Doug Coleman a57e990af7 parsed -> suffix!, add append! 2009-10-28 13:38:27 -05:00
Joe Groff f9bf427291 remove [let* ] and change [let ] to only establish a scope, leaving :> as the one true way of binding locals 2009-10-27 14:19:05 -05:00
Joe Groff 80b7e97e18 remove [wlet ] 2009-10-26 23:17:40 -05:00
Joe Groff dfdfe996be missed some grammar in locals docs 2009-10-24 16:36:55 -05:00
Joe Groff b7661ba442 improve locals docs 2009-10-24 15:21:41 -05:00
Keith Lazuka 8f79ea91ba docs: change $subsection to $subsections 2009-10-02 12:15:48 -04: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
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 3ebd4594e8 Implement stricter vocab search path semantics, with a new API for vocabs.parser. Add map-find-last to sequences vocab 2009-05-14 22:31:29 -05:00
Slava Pestov 5f6c074edd Split up types.c/h into smaller files, remove optimized slot from F_WORD struct 2009-04-28 17:26:11 -05:00
Slava Pestov 05f3f9dcb9 Fixing unit tests for stack effect inference changes 2009-04-20 21:15:19 -05:00