Commit Graph

49 Commits (d9f9da19607391a05a07a50af876ce242532b46b)

Author SHA1 Message Date
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 564227cc73 functors: fix unit test 2010-05-05 00:44:21 -04:00
Slava Pestov aae74ff4c4 functors: make 'final' declarations work in functors 2010-02-18 03:56:41 +13:00
Slava Pestov 1100861204 Add support for final tuple classes which cannot be subclassed: TUPLE: foo ... ; final 2010-02-18 02:19:57 +13:00
Slava Pestov 29e1d268b7 generic: rename method-body predicate class to method 2010-02-03 23:11:24 +13: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
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 020de67c26 update functors for [let change 2009-10-28 00:30:09 -05:00
Doug Coleman 026761ed62 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 47fab85a00 replace usages of <" with """ 2009-09-20 22:42:40 -05:00
Joe Groff 5f62d6b9c1 fix functors tests 2009-09-16 17:38:01 -05:00
Joe Groff 006d5c4e51 update functors tests 2009-09-16 15:41:38 -05:00
Joe Groff 334e93bbbf get things to a point where they bootstrap again 2009-09-15 21:43:18 -05:00
Slava Pestov fc195f33f1 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 a0f96f3d55 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 be777902f0 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 6a6b662c9b add STRUCT: support to functors 2009-08-29 19:56:42 -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
Sam Anklesaria b310e6fc11 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 8d44994aae functors: add MIXIN:, SINGLETON: 2009-07-22 02:06:24 -05:00
Slava Pestov 94fc4ff42b 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 a1b7553a37 Merge branch 'master' of git://factorcode.org/git/factor 2009-06-26 15:52:48 -05:00
Slava Pestov becaa7985d Remove unused words discovered by Samuel Tardieu 2009-06-16 16:38:39 -05:00
Sam Anklesaria 21d3d12ea1 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 aeb05bfd00 modulization of ui.frp 2009-05-24 09:36:24 -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
Joe Groff f12b452882 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
Slava Pestov 16181f818b Clean up functors so that the generated code looks sane with 'see' 2009-01-28 15:07:16 -06:00
Slava Pestov c5160d76e9 Merge qualified, alias, symbols, constants into core 2008-12-17 18:10:01 -06:00
Slava Pestov 3ed7a56a7f Fix functors for locals changes 2008-12-09 01:42:02 -06:00
Slava Pestov 7940020491 Untangling more dependencies 2008-12-08 16:02:31 -06:00
Joe Groff f990647d67 Renovate math.blas.vectors to build off of functors and specialized-arrays. Add complex and complex-components sequence wrappers. Fix small bug in functors 2008-12-04 13:40:55 -08:00
Slava Pestov f683a76a5e Functor application records location info in generated words 2008-12-02 21:49:51 -06:00
Slava Pestov 25bdb4172a Functor-generated words can now have stack effect declarations; define byte-array>*-array words 2008-12-02 20:35:20 -06:00
Slava Pestov 402da00390 Fixing bootstrap with specialized arrays 2008-12-02 02:44:19 -06:00
Slava Pestov 2fe364a7bb Specialized arrays work in progress 2008-11-14 20:18:16 -06:00