Commit Graph

58 Commits (f8387a08aede7494388ca03fa17eac9480bdae91)

Author SHA1 Message Date
Doug Coleman 031543fed3 delegate: Rename consult-method. 2013-03-23 16:51:34 -07:00
Doug Coleman 6c4043bb25 io: Make stream-contents call stream-contents* and do the disposal in the top-level. Fixes #645. 2012-08-25 17:03:51 -07:00
John Benediktsson 934b307ba2 make some predicates return t/f instead of something/f. 2012-07-29 10:52:46 -07:00
John Benediktsson d1009d74f4 delegate: not sure why protocols can be defined with arrays, but... 2011-10-18 20:40:14 -07:00
John Benediktsson faf556f971 delegate: verify generics on protocol definition. Fixes #260. 2011-10-18 16:31:15 -07:00
Joe Groff e589f58163 delegate.protocols: clean up input-stream-protocol 2011-10-17 21:23:08 -07:00
Joe Groff 7caed69d26 delegate.protocols: update input-stream-protocol
Add stream-read-unsafe and stream-read-partial-unsafe to input-stream-protocol.
2011-10-17 21:23:04 -07:00
Doug Coleman c14f217300 Fix delegate vocab for lookup-method change. 2011-10-03 16:42:24 -07:00
Doug Coleman 181f11faa8 Make M\ throw an error upon lookup failure. Change method -> ?lookup-method, lookup-method is the throwing version of ?lookup-method. Fixes #229. 2011-10-03 15:49:49 -07:00
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
Joe Groff 8e36e0221d words: move change-word-prop from delegate.private to words 2011-09-15 15:55:54 -07:00
John Benediktsson 9f34c9c676 Spelling fixes to documentation. 2011-08-26 16:20:31 -07:00
Slava Pestov 4995d9153e delegate: fix delegation to tuples with read only slots 2010-09-04 18:48:54 -07:00
Joe Groff b5cc5ef4a7 classes.struct: implement "group-words" method on struct-class so that struct classes can be used as a CONSULT: protocol 2010-06-08 12:52:46 -07:00
Slava Pestov 627295f094 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
Joe Groff f6561f3c03 delegate: add BROADCAST: syntax, delegate generic with no outputs to an array of multiple delegates 2010-03-22 22:32:00 -07: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
Slava Pestov 7826543d2e sequences: add cartesian-each, cartesian-map, cartesian-product words to eliminate some duplication throughout the codebase 2010-02-25 20:54:57 +13:00
Slava Pestov df55fed478 generic: rename method-body predicate class to method 2010-02-03 23:11:24 +13:00
Doug Coleman 0d4b9132d7 fix a bunch of typos in docs 2009-10-21 17:40:43 -05:00
Keith Lazuka 405e5d015b docs: change $subsection to $subsections 2009-10-02 12:15:48 -04:00
Doug Coleman eceed177d6 replace usages of <" with """ 2009-09-20 22:42:40 -05: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
Joe Groff c8739f5430 Merge branch 'master' of http://factorcode.org/git/factor 2009-05-01 13:01:04 -05:00
Slava Pestov a70a2c0e31 Fix some test failures and add an unportable tag 2009-04-30 22:56:15 -05:00
Joe Groff 7857c0c939 typo in delegate docs 2009-04-29 14:59:54 -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 1032e57e8e Fix bootstrap 2009-04-06 23:32:21 -05:00
Slava Pestov 723bfab030 Fixing unit tests for syntax change 2009-03-23 00:34:02 -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 cc9e81f27c Help lint and meta-data fixes 2009-03-08 01:49:06 -06:00
Slava Pestov a472b904eb Fix delegate docs 2009-03-07 00:56:52 -06:00
Slava Pestov 00f586fc33 Fix bootstrap: delegate cannot depend on locals since locals depends on delegate 2009-03-07 00:49:57 -06:00
Slava Pestov bfb6b4642a Consultations now implement the definition protocol; removing one from a source file forgets consulted methods 2009-03-07 00:42:43 -06:00
Slava Pestov bf663e830a Changing a method into a generated slot accessor would result in the generated accessor being forgotten 2009-03-06 20:02:31 -06:00
Slava Pestov 421ee726b8 Merge branch 'master' into new_ui 2009-02-16 21:22:12 -06:00
Slava Pestov 6b25e99470 Add summary for heaps more vocabs 2009-02-16 21:05:13 -06:00
Slava Pestov 43e6a6987a Fix circularity 2009-02-10 16:42:35 -06:00
Slava Pestov 54e4e8873a delegate: add support for single-generic protocols, add failing unit test for bug 2009-02-09 00:25:33 -06:00
Slava Pestov 27daa4b1d4 Split off formatted-output-stream-protocol from output-stream-protocol, and clean up io.streams.duplex 2009-02-06 02:43:55 -06:00
Slava Pestov 1221fb7d55 delegate: fix problem if source file was reloaded and a hand-written method definition was replaced by a consultation; also associate consultation-generated methods with the source file they're in 2009-02-06 02:43:21 -06:00
Slava Pestov f6bc5c0b75 Clean up stack shuffling in basis/delegate/ 2009-01-25 22:57:11 -06:00
Slava Pestov 21f81ab57d Add new SLOT-PROTOCOL: word; shorthand for PROTOCOL: comprised for slot readers and writers 2009-01-16 16:39:24 -06:00
Slava Pestov 4204fd495f Move formatted stream output words to io.styles; they didn't belong in core, and this reduces deployed image size 2009-01-13 17:12:43 -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 10e3e84a5e Remove listener dependency from delegate 2008-12-08 19:45:58 -06:00
Slava Pestov 52c5b53e27 Refactoring usages of >r, r>, -rot, rot 2008-11-30 22:21:37 -06:00