Commit Graph

161 Commits (revert-2214-feature-commandline-documentation)

Author SHA1 Message Date
Doug Coleman 76580da5d5 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 7703d73230 locals: remove trailing whitespace in docs 2011-02-20 09:16:41 +09:00
Slava Pestov 8a0525e5ce 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 ea726f5680 Move remaining sequence operations from generalizations to sequences.generalizations where they belong 2010-05-18 18:36:47 -04:00
Daniel Ehrenberg aa6158b366 Changing require-when usages to the new syntax for require-when 2010-04-18 14:29:24 -05:00
Slava Pestov 1b271f8202 locals: remove some dead code 2010-03-30 21:56:51 -04:00
Daniel Ehrenberg eb060443db Updating code to use require-when rather than vocab [ require ] when 2010-03-18 01:13:37 -04:00
Daniel Ehrenberg 7364608417 Merge branch 'master' of git://factorcode.org/git/factor into bags 2010-03-02 17:04:45 -05:00
Joe Groff 9bf5c76771 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 434605c0b5 Changing some uses of prune to use members 2010-02-27 13:14:03 -05:00
Slava Pestov df55fed478 generic: rename method-body predicate class to method 2010-02-03 23:11:24 +13:00
Brad Christensen 9b9322ea1e A number of documentation fixes and cleanup. 2010-02-03 00:05:03 -07:00
Joe Groff 6ec4f4ef8b more fussing over locals docs grammar 2010-01-24 10:05:56 -08:00
Joe Groff 7d0c67adf0 remove redundant text from docs for locals docs 2010-01-22 18:40:00 -08:00
Slava Pestov 0612bc6177 Factor source files should not be executable 2009-11-21 17:50:43 -06:00
Joe Groff a5d0705b48 patch up locals fry tests 2009-11-08 21:00:35 -06:00
Joe Groff cbf2a2131f reduce number of empty quotations generated by fry 2009-11-07 16:12:22 -06:00
Joe Groff 42b82341eb update M\ lambda condomize 'cause you can't compose a lambda 2009-11-07 13:32:08 -06:00
Joe Groff 28b09d6d57 update terms of fry–locals peace treaty 2009-11-07 13:03:46 -06:00
Joe Groff 91d12ddc22 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 a8b9477fe7 clean up typos and improve synergy between locals and namespaces docs 2009-10-29 14:08:45 -05:00
Joe Groff 3fbe722561 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 c19912241b update :> docs for new :> ( ) feature 2009-10-28 15:59:17 -05:00
Joe Groff d284d963fa :> ( a b c ) syntax to bind multiple variables left-to-right off the stack 2009-10-28 15:40:07 -05:00
Doug Coleman 93de179c2f over push -> suffix!, over push-all -> append! 2009-10-28 15:29:01 -05:00
Doug Coleman bd13e018dd memq? -> member-eq?, sorted-memq? -> sorted-member-eq? 2009-10-28 15:02:00 -05:00
Doug Coleman 7ce4b746e5 parsed -> suffix!, add append! 2009-10-28 13:38:27 -05:00
Joe Groff c4e3c15c28 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 8f0321a0b1 remove [wlet ] 2009-10-26 23:17:40 -05:00
Joe Groff 908d2a12ea missed some grammar in locals docs 2009-10-24 16:36:55 -05:00
Joe Groff 7159474be3 improve locals docs 2009-10-24 15:21:41 -05:00
Keith Lazuka 405e5d015b docs: change $subsection to $subsections 2009-10-02 12:15:48 -04:00
Doug Coleman 3f3d57032b 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 b62630b5ac Updating code in basis and extra for stricter vocab search path semantics 2009-05-14 23:23:06 -05:00
Slava Pestov b31fe9b8f2 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
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 890553b776 Fixing tests for method-sec removal 2009-04-06 05:22:28 -05:00
Slava Pestov 99b8400e56 Documentation updates 2009-04-06 03:00:46 -05:00
Slava Pestov ed26f1921f Condomization wraps lambdas in condoms to protect them from macro-transmitted diseases. cond, case and other macros work better now if lambdas appear where quotations are expected 2009-03-23 18:25:18 -05:00
Slava Pestov 723bfab030 Fixing unit tests for syntax change 2009-03-23 00:34:02 -05:00
Slava Pestov e0d48e3ab6 New utility word: complete-effect 2009-03-22 17:59:40 -05:00
Slava Pestov c0154c1391 Change (:) to parse effect immediately, and remove ( parsing word 2009-03-21 03:17:35 -05:00
Slava Pestov ea60f8ae93 Changing : foo ; parsing to SYNTAX: foo ; 2009-03-21 01:27:50 -05:00
Slava Pestov 667eca9410 Fix unit tests and help lint for 'see' move 2009-03-11 17:33:54 -05:00
Slava Pestov abab72f80c Move 'see' to its own vocabulary, and fix excess newlines after panes change 2009-03-11 07:18:24 -05:00
Slava Pestov d27bbe844c Add test case for old bug dharmatech found that has since been fixed 2009-03-06 20:07:33 -06:00
Slava Pestov e4a0396550 Add parse-quotation hook to parser which locals overrides. '[ and [ use this hook. Fixes locals bug reported by erg 2009-03-06 19:48:04 -06:00
Slava Pestov 790001cd58 Add test case for erg's locals bug 2009-03-05 13:43:33 -06:00
Slava Pestov 6b25e99470 Add summary for heaps more vocabs 2009-02-16 21:05:13 -06:00
Doug Coleman 3c408342ef renaming: contain? -> any?, deep-contains? -> deep-any?, pad-left -> pad-head, pad-right -> pad-tail, trim-left -> trim-head, trim-right -> trim-tail 2009-01-29 22:19:07 -06:00
Slava Pestov 4de41f94e9 Fixing wrappers with locals 2009-01-28 17:07:31 -06:00
Slava Pestov f438bd5157 Better handling of wrappers in locals 2009-01-28 15:04:36 -06:00
Slava Pestov a9ef525aed Help lint fixes for stricter help lint 2009-01-27 04:12:37 -06:00
Slava Pestov 92f9338978 Smart quotes 2009-01-26 23:20:27 -06:00
Slava Pestov 4d080b8785 Fix bug in locals found by littledan: [let inside [let didn't work in top-level forms 2009-01-25 23:04:11 -06:00
Slava Pestov 5fdb474c76 Fixing various test failures and updating some more vocabs for >r/r> removal 2008-12-17 22:29:32 -06:00
Slava Pestov 34792a9f23 Remove >r/r> 2008-12-17 19:17:37 -06:00
Slava Pestov c5160d76e9 Merge qualified, alias, symbols, constants into core 2008-12-17 18:10:01 -06:00
Slava Pestov daf2857d7b define-inline now takes an effect parameter
C: now sets the stack effect of the new word to slot names
add new basis/constants vocab; CONSTANT: foo bar is equivalent to : foo bar ; inline
(going to fold CONSTANT:, ALIAS: and qualified into core soon perhaps)
tighten the screws: inline words now need a stack declaration too
update some usages of inline words
2008-12-15 19:44:56 -06:00
Slava Pestov a90118da5d Add inc-at word to core, and update some usages of at+ to use it instead 2008-12-09 16:54:48 -06:00
Slava Pestov 6286f96379 :> now works 2008-12-09 01:04:22 -06:00
Slava Pestov f6d45158bb Fix locals conflict 2008-12-08 15:28:27 -06:00
Slava Pestov 4f0a9f311e Untangling some dependencies 2008-12-08 14:58:00 -06:00
Slava Pestov 7771a3e511 :> word work in progress, split up llocals 2008-12-06 04:57:38 -06:00
Slava Pestov 90409502e3 Fix [wlet after recent locals refactoring broke it 2008-12-03 06:13:05 -06:00
Slava Pestov 402da00390 Fixing bootstrap with specialized arrays 2008-12-02 02:44:19 -06:00
Slava Pestov 1c382605b2 Fix typo 2008-12-02 00:24:08 -06:00
Slava Pestov e8a69a3aea Fix conflict 2008-11-29 05:14:49 -06:00
Slava Pestov 6dfce7d4e7 load-locals is a primitive now, change semantics of get-locals to bum out 2 instructions from the sub-primitive 2008-11-27 22:30:29 -06:00
Slava Pestov a729e72b7e Fixing some problems with the locals implementation:
- Smart combinators now work with wlet words
- Expansion no longer usees >r/r>
- Hook into fry so that fry and locals can work as expected
- Document limitations of locals with macros in more detail, remove mention of >r/r> limitation since those two words are going away anyway
2008-11-27 21:55:46 -06:00
Slava Pestov d334c60897 Fix literal rewriting for macro expansions that use fry to splice in a quot 2008-11-26 00:59:12 -06:00
Slava Pestov 418353b99e Locals-in-literals rewriting was broken if a lambda was nested inside of an array 2008-11-25 23:03:55 -06:00
Slava Pestov 9628bcd646 New 'expect' word, which is a more correct version of the 'scan assert=' idiom 2008-11-22 17:27:40 -06:00
Eduardo Cavazos e53d02bc5e locals: Allow comments in binding forms 2008-11-22 06:45:12 -06:00
Slava Pestov 6324b4dd65 Fix some bugs in locals, throw a parse time error if usage of >r r> is detected 2008-11-21 05:18:41 -06:00
Slava Pestov 12601b7eb0 Add failing unit test 2008-11-19 13:02:33 -06:00
Slava Pestov 281657dd82 Fix conflict 2008-11-18 22:18:14 -06:00
Slava Pestov 1fa0fb6258 Add unit test for Ed's fix 2008-11-17 21:53:38 -06:00
Eduardo Cavazos 930f3d0edc locals: Allow 'local-reader' in literals 2008-11-17 21:26:16 -06:00
Slava Pestov 2fe364a7bb Specialized arrays work in progress 2008-11-14 20:18:16 -06:00
Slava Pestov 26f309d2ae Trying to make PEGs compile faster by reducing the number of low level IR nodes: merge functionality of #>r and #r> into #shuffle, and generate 1 node instead of 3 for calls to get-local 2008-11-11 18:46:31 -06:00
Slava Pestov 1d630b6cf2 Minor documentation fixes 2008-11-11 10:51:15 -06:00
Slava Pestov fbb958da82 Fix lambda-method forget 2008-11-05 18:59:58 -06:00
Slava Pestov 69a0ad5e42 Ricing locals 2008-10-23 05:49:32 -05:00
Slava Pestov 58a44f12e5 Fix erg's MEMO:: bug 2008-10-17 16:54:45 -05:00
Slava Pestov 225097a5d3 Fix some bugs in locals 2008-10-17 16:54:07 -05:00
Doug Coleman a10fd92a33 fix lambda-macro reset-word bug 2008-10-07 17:18:49 -05:00
Slava Pestov c19f2257f4 Fix permission bits 2008-10-02 08:34:49 -05:00
Doug Coleman b5664733ed Merge branch 'master' of git://factorcode.org/git/factor 2008-09-29 22:54:37 -05:00
Slava Pestov e84dec38ef Doc fixes 2008-09-29 22:39:53 -05:00
Doug Coleman 932d59747d fix typo 2008-09-29 20:20:43 -05:00
Slava Pestov 943ac501a2 Fix typo 2008-09-26 18:23:28 -05:00
Slava Pestov b85a0252d7 Fix typo 2008-09-25 05:41:35 -05:00
Slava Pestov 505eedc34b Fix a macro.expander bug 2008-09-24 20:18:03 -05:00
Slava Pestov 2cc40052bf Rewrite locals-in-literals in idiomatic Factor, and fix a performance regression with locals in tuples 2008-09-13 03:06:36 -05:00
Slava Pestov 44f53de164 Move make to its own vocabulary, remove fry _ feature 2008-09-10 20:07:00 -05:00
Eduardo Cavazos 24b42d4008 locals: Add some tests for locals in literals 2008-09-08 04:22:58 -05:00