Commit Graph

59 Commits (8574b25a96721bca55dbacf4ebfef85d4d243101)

Author SHA1 Message Date
Doug Coleman da5eedce32 functors: Learn to use git. 2013-04-14 14:32:04 -07:00
Doug Coleman 6e2291886d functors: Add a modern functors file that doesn't have the FUNCTOR-SYNTAX: words. 2013-04-13 17:36:29 -07:00
Doug Coleman 5fab749dcc words: Change word -> last-word, set-word -> set-last-word. 2013-03-23 16:12:03 -07:00
John Benediktsson 559b5bfa5b using the new H{ } make. 2012-07-19 09:50:09 -07:00
Doug Coleman c731dc6edb Rename lookup to lookup-word. 2011-11-06 16:00:00 -08:00
Doug Coleman f21fee3b73 Rename complete-effect to scan-effect 2011-10-17 10:25:27 -07:00
John Benediktsson d61de12011 Cleanup more lint warnings. 2011-10-14 12:31:46 -07:00
Doug Coleman 685fc2f86f Rename method -> lookup-method in three places. 2011-10-04 20:37:23 -07:00
Doug Coleman 671f19d70f Remove all non-core uses of (scan-token)
Add scan-datum
Add scan-number
Document more words
Fixes #225.
2011-10-02 12:00:08 -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
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 029719f757 functors: fix unit test 2010-05-05 00:44:21 -04:00
Slava Pestov 4b76e2a61d functors: make 'final' declarations work in functors 2010-02-18 03:56:41 +13:00
Slava Pestov 01824d41be Add support for final tuple classes which cannot be subclassed: TUPLE: foo ... ; final 2010-02-18 02:19:57 +13:00
Slava Pestov df55fed478 generic: rename method-body predicate class to method 2010-02-03 23:11:24 +13: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
Doug Coleman 93de179c2f over push -> suffix!, over push-all -> append! 2009-10-28 15:29:01 -05:00
Doug Coleman 7ce4b746e5 parsed -> suffix!, add append! 2009-10-28 13:38:27 -05:00
Joe Groff 22afae8734 update functors for [let change 2009-10-28 00:30:09 -05:00
Doug Coleman 5cb34724b7 Merge branch 'master' of git://factorcode.org/git/factor
Conflicts:
	basis/classes/struct/struct-tests.factor
	basis/functors/functors-tests.factor
	basis/specialized-arrays/specialized-arrays-tests.factor
2009-09-20 23:02:49 -05:00
Doug Coleman eceed177d6 replace usages of <" with """ 2009-09-20 22:42:40 -05:00
Joe Groff d1c69efc0f fix functors tests 2009-09-16 17:38:01 -05:00
Joe Groff c880d3fff3 update functors tests 2009-09-16 15:41:38 -05:00
Joe Groff 3b4330fcf6 get things to a point where they bootstrap again 2009-09-15 21:43:18 -05:00
Slava Pestov 6b5e40b2fc functors: support private words with DEFINES-PRIVATE; use this to make some words generated by math.vectors.simd.functor private 2009-09-04 01:21:59 -05:00
Joe Groff 7276fe44d7 refactor functors so that new functor syntax words can be added outside of functors vocab, and move STRUCT: functor syntax to classes.struct to break a circular dependency 2009-08-29 21:04:19 -05:00
Joe Groff 2e3f75fd87 fix STRUCT: functor when a slot name is the same as a non-lexical word name 2009-08-29 20:19:47 -05:00
Joe Groff 4cc2330a2a add STRUCT: support to functors 2009-08-29 19:56:42 -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
Sam Anklesaria cc38d1ada6 Merge branch 'master' of git://factorcode.org/git/factor
Conflicts:
	basis/functors/functors.factor
	basis/io/launcher/launcher.factor
	basis/ui/gadgets/tables/tables.factor
2009-07-22 10:02:09 -05:00
Slava Pestov dce020ca71 functors: add MIXIN:, SINGLETON: 2009-07-22 02:06:24 -05:00
Slava Pestov c171527b8d Add vectors.functor for generating vector types from arrays; re-implement bit-vectors and specialized-vectors using this. Add DEFERS directive to functors 2009-07-07 14:34:08 -05:00
Sam Anklesaria a6f65a483b Merge branch 'master' of git://factorcode.org/git/factor 2009-06-26 15:52:48 -05:00
Slava Pestov 37b01357ec Remove unused words discovered by Samuel Tardieu 2009-06-16 16:38:39 -05:00
Sam Anklesaria 3b10d4d86e Merge branch 'master' of git://factorcode.org/git/factor
Conflicts:
	basis/ui/gadgets/tables/tables.factor
	core/vocabs/parser/parser.factor
2009-05-24 18:57:22 -05:00
Sam Anklesaria 27b745dcc8 modulization of ui.frp 2009-05-24 09:36:24 -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
Joe Groff 65b33c145c GENERIC: support in functors 2009-05-01 16:16:40 -05:00
Joe Groff a2c7074a6b Merge branch 'master' of git://factorcode.org/git/factor 2009-04-27 14:02:24 -05:00
Joe Groff 49771779c1 symbols in functors 2009-04-27 14:02:14 -05:00
Slava Pestov 58cba832a0 functors: add support for call-next-method 2009-04-26 21:22:20 -05:00
Slava Pestov 05f3f9dcb9 Fixing unit tests for stack effect inference changes 2009-04-20 21:15:19 -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 786475102d Make more code infer 2009-03-17 02:19:50 -05: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 1951d739a0 Stack effect declarations are mandatory on all words now
define-temp now takes an effect parameter
Fix compiler bug that Dan found
Stricter enforcement of * effects
Move compile-call from compiler.units to compiler
2009-02-23 20:27:05 -06:00
Slava Pestov 4adef7db09 Fix functors bug where changing a hand-written method into one generated by a functor would forget the method; also associate functor-generated methods with the source file they're in.
Add DEFINES-CLASS, to parallel DEFINES.
Update math.blas and specialized-arrays/vectors to use DEFINES-CLASS where appropriate
2009-02-06 02:45:21 -06:00
Slava Pestov 4de41f94e9 Fixing wrappers with locals 2009-01-28 17:07:31 -06:00