Commit Graph

156 Commits (eccf5890dbde6d81f74dceb3cda6f4362fabf084)

Author SHA1 Message Date
John Benediktsson 6b81afa1a7 prettyprint: fix length limit to be 'maximum length before truncation'. 2013-03-20 15:30:29 -07:00
Doug Coleman 8273e8fbf6 prettyprint: Don't print ~1 more~ when there is only one element left. Fixes #524. 2013-03-20 14:26:05 -07:00
John Benediktsson 6ef0e711c8 prettyprint.sections: more use of hash-sets. 2013-03-08 16:32:09 -08:00
John Benediktsson bf2f776390 prettyprint.backend: fix docs. 2012-07-29 11:52:36 -07:00
John Benediktsson 6703616b36 prettyprint: print unprintables by hex escaping. 2012-07-29 10:14:54 -07:00
Doug Coleman 39f46f3b5e prettyprint.sections: Rename text tuple to text-section 2012-07-20 12:30:14 -07:00
John Benediktsson 918c643469 prettyprint.config: string-limit? shouldn't be a global. 2012-07-19 15:31:08 -07:00
John Benediktsson 09d972018d cleanup some use of with-scope. 2012-07-19 13:55:34 -07:00
John Benediktsson b05a59afd8 more use of H{ } make. 2012-07-19 11:24:45 -07:00
John Benediktsson e4b4f1522a using if-zero in more places. 2012-07-16 15:45:21 -07:00
Doug Coleman dce69faa59 issue #358: change line-break to add-line-break 2012-06-21 08:38:04 -07:00
John Benediktsson 12262a500c listener: move pprint error catching to stack. 2012-06-01 17:54:58 -07:00
John Benediktsson 58617f10be prettyprint: document "~1 more~" behavior (funny because it takes as much as room as... 1 more). 2012-06-01 15:15:29 -07:00
Doug Coleman fbf85898de prettyprint: Fix unit tests. Remove useless line. 2012-05-04 09:09:39 -07:00
Doug Coleman cb42258144 classes:
- Allow methods to dispatch off union{ } and intersection{ } classes.
- Add not{ } anonymous-complement syntax.
- Define class-name for anonymous-union/intersection/complement and maybes, and clean up pprint.
- Change maybe: foo to maybe{ foo }
- Call sort-classes when making anonymous-union/anonymous-intersection classes so that they are canonicalized.
2012-05-03 19:45:30 -07:00
Joe Groff 3f8d5d0ab4 prettyprint.backend: can't use locals 2011-11-23 20:20:27 -08:00
Joe Groff a41eb0c527 prettyprint: use radix prefixes for number-base 2011-11-23 20:05:23 -08:00
Joe Groff eee483654a use radix literals 2011-11-23 19:03:40 -08:00
Doug Coleman d7aee3256e classes.maybe: Change the type of maybe's class slot. As a result, maybe: maybe: integer is valid now, so fix the unit tests and its prettyprinting. 2011-11-23 01:43:02 -08:00
Doug Coleman e09de9d6a1 classes.maybe: make maybe's slot type a classoid so you can do maybe: union{ }. Fix prettyprinting of anonymous-union/intersection. Fixes #427, fixes #428. 2011-11-23 01:19:09 -08:00
Doug Coleman 388e80f770 compiler.tree.propagation.transforms: fix infinite recursion that was breaking prettyprint 2011-11-23 00:48:05 -08:00
Doug Coleman 30ade9023c classes: add syntax for intersection{ and union{ anonymous classes. make classoid a mixin. 2011-11-22 18:49:42 -08:00
Doug Coleman 627bce6615 classes: Make methods dispatch on maybes. Fix a couple bugs in the implementation of maybe. classoid? is now a dumb test if an object could be a well-formed classoid; valid-classoid? tests for well-formedness. Move maybe tests. Make pprint* work better on methods. 2011-11-22 15:12:20 -08:00
Doug Coleman d3a4e72f95 classes.maybe: move maybe definition from classes.union to classes.maybe 2011-11-22 02:46:36 -08:00
Doug Coleman 14dbf929ee classes.union: Define a maybe: word that makes a tuple that acts as an anonymous union for a type and f. Updated all the places we define UNION: ?foo foo POSTPONE: f ;. Fixes #416 and lots of headaches. 2011-11-22 01:56:13 -08:00
Doug Coleman be9f8a99f0 Rename lookup to lookup-word. 2011-11-06 16:00:00 -08:00
Doug Coleman 96da8df16e Rename class to class-of 2011-10-24 06:47:42 -05:00
John Benediktsson e9bb14397c Fix stack effect to not print "(( -- ))", remove stray effect from smtp. 2011-10-18 13:25:47 -07:00
John Benediktsson 419f40f4ed math.parser: cleanup uses of 16/8/2 >base/base>. 2011-10-14 10:09:12 -07:00
Keita Haga e0cbe556b2 prettyprint.sections: fix typo in docs 2011-01-17 04:23:17 +09:00
Joe Groff 879c71a1b3 prettyprint.backend: leave nesting-limit unset when prettyprinting hashtables without a nesting limit, fixing the bug where it would get set to 1 and print nothing (reported by Blei) 2010-06-28 09:10:16 -07:00
Joe Groff 72e0fce0e4 prettyprint.backend: add 1 to nesting-limit while pprinting hashtables 'cause H{ ~array~ ~array~ } is kind of useless 2010-06-14 16:13:30 -07:00
Slava Pestov d2d466de29 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
Daniel Ehrenberg 1b61e2e5cf Merge branch 'bags' of git://github.com/littledan/Factor
Conflicts:

	basis/compiler/cfg/ssa/construction/tdmsc/tdmsc.factor
	basis/furnace/auth/auth.factor
	basis/stack-checker/backend/backend.factor
2010-03-16 13:28:00 -04:00
Slava Pestov 4d2122a9f4 prettyprint.config: short. should not print structs as pointers 2010-03-13 19:07:34 +13:00
Daniel Ehrenberg 0f0571e48a Moving new-sets to sets 2010-02-26 16:01:01 -05:00
Daniel Ehrenberg d0e7d8198e Moving new-sets and hash-sets to core 2010-02-26 11:01:57 -05:00
Slava Pestov 88071b0869 prettyprint.config: set some output limits by default. Use the new without-limits combinator to get the old behavior 2010-02-20 12:18:16 +13:00
Slava Pestov 0ad3285185 see: show final declaration on tuples 2010-02-18 03:01:26 +13:00
Slava Pestov 4154742755 Small cleanups 2010-02-16 04:04:09 +13:00
Slava Pestov 45a54882b9 prettyprint: make callstack output needlessly fancier 2010-02-03 23:11:26 +13:00
Slava Pestov 29e1d268b7 generic: rename method-body predicate class to method 2010-02-03 23:11:24 +13:00
Slava Pestov 7fa61addcd words: undefined error now contains the word in question 2010-02-03 23:11:23 +13:00
Slava Pestov 34f40c3a72 Various documentation improvements 2010-01-26 01:01:12 +13:00
Slava Pestov 880fb747fc Removing integers-as-sequences 2010-01-15 07:15:33 +13:00
Slava Pestov d2baa6dde5 vm: move c_to_factor, lazy_jit_compile_impl, throw_impl, set_callstack assembly routines into non-optimizing compiler for x86-64 2010-01-06 15:47:36 +13:00
Doug Coleman 995952389b use surround/glue instead of 3append 2009-11-12 03:01:09 -06:00
Slava Pestov 40a82aba19 tools.time: overhaul 2009-11-05 01:07:59 -06: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