Commit Graph

76 Commits (f2741b34a4b82600f7965cfa0f6eae6d4f4ffe24)

Author SHA1 Message Date
John Benediktsson f2741b34a4 Eliminate duplicate syntax for stack effects "(" no longer drops and is identical to the old "((", which is now removed. 2011-10-18 13:19:39 -07:00
Doug Coleman 300138eb4d 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
John Benediktsson ac8b589f9a Adding stack effects. 2011-09-23 17:46:40 -07:00
Joe Groff 571ef865e6 slots: pre-create the "at", "nth", and "global" slots to make deterministic the currently nondeterministic ambiguity between accessors:change-* and assocs:change-at, sequences:change-nth, and namespaces:change-global 2011-09-19 10:03:43 -07:00
Slava Pestov dbf63db811 ui: cleanup 2010-07-17 16:09:25 -04:00
Slava Pestov b05818c8a4 ui.gadgets.worlds: dispose of the handle after ungrabbing input 2010-07-17 16:08:36 -04:00
Slava Pestov 736530766e cocoa.subclassing: new METHOD: syntax cleans up class definitions 2010-07-06 17:59:35 -04:00
Doug Coleman 05b41789e2 Add a promise to world objects that gets fulfilled when the world is ungrafted 2010-06-16 16:23:30 -05:00
Joe Groff 3864c2b4e9 ui: document non-polymorphic effect of with-ui, and that it doesn't return 2010-06-08 13:54:10 -07:00
Slava Pestov b75d852e10 ui: ditch window restore behavior since it was broken 2010-05-24 16:50:09 -04: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 3e9e4f0969 Finishing eliminating prune as a synonym of members 2010-02-27 14:52:24 -05:00
Joe Groff 9186c3c682 ui: add a "system-alert" hook that can raise a system modal dialog without involving any potentially stripped gadget, io, or debugger code 2010-02-23 19:28:57 -08:00
Joe Groff c2fa6cf6eb GAME: syntax for defining game entry point with game-loop attributes 2010-01-16 12:18:50 -08:00
Joe Groff 4a5cac122c document MAIN-WINDOW: 2010-01-15 17:06:50 -08:00
Joe Groff 1510b1a359 pry off some ui app boilerplate with a MAIN-WINDOW: syntax 2010-01-15 16:55:43 -08:00
Doug Coleman 3323072613 Merge branch 'master' into startup
Conflicts:
	core/bootstrap/primitives.factor
	vm/run.hpp
2009-11-15 02:52:50 -06:00
Slava Pestov b8a51c7eb0 delete-nth -> remove-nth! 2009-10-27 23:41:57 -05:00
Doug Coleman 6fa23d7ea4 change add-init-hook to add-startup-hook, new add-shutdown-hook word 2009-10-19 22:17:02 -04: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
Joe Groff 5c69a6358e destroy window-resources in reverse order 2009-07-04 19:13:53 -05:00
Joe Groff f933d4e27b pardon my dust 2009-07-01 17:57:21 -05:00
Joe Groff 823616ddc6 put a slot on worlds for window-resources which get disposed when window is closed 2009-07-01 13:54:42 -05:00
Joe Groff 57ee79386a some new UI words: handles-gesture? checks whether a gesture will be handled. topmost-window returns the topmost world object 2009-06-22 19:01:50 -05:00
Joe Groff d4ce348c50 stupid mutable state 2009-06-18 22:01:31 -05:00
Joe Groff d6f4c3ae44 null-world class for interactive OpenGL use 2009-06-03 11:03:34 -05:00
Slava Pestov d7db5edadc Cleaning up USING: lists for new strict semantics 2009-05-14 16:54:16 -05:00
Doug Coleman 73f4b0d781 fullscreen* -> (fullscreen?), set-fullscreen* -> (set-fullscreen), fix jamshred screen toggling 2009-05-13 22:28:33 -05:00
Doug Coleman cc35bb1311 rename set-fullscreen? to set-fullscreen, add a toggle-fullscreen word, fix windows backend for fullscreen* 2009-05-13 20:05:22 -05:00
Joe Groff 33dc2fd715 improve error handling when begin-world fails 2009-05-11 12:35:41 -05:00
Joe Groff 3a2a1a6a62 input grabbing support 2009-05-08 15:07:15 -05:00
Slava Pestov 4950ca76c2 find-window: don't bomb if a world has no child. Reported by Joe Groff 2009-05-06 23:40:27 -05:00
Joe Groff 86ec61ff1a add a resize-world generic to handle window resizes 2009-05-03 22:01:35 -05:00
Joe Groff 14504ace4b world API changes: open-window can take a world-attributes tuple with additional parameters besides title. new begin-world, end-world, and draw-world* generics 2009-05-03 15:52:26 -05:00
Slava Pestov fb360498f3 Update usages of global ... change-at to use the new change-global combinator 2009-04-30 21:38:14 -05:00
slava 509869ca70 X11 UI: Fix resize flicker, exception when closing window, unsuccessful attempt at fixing raise-window 2009-04-10 13:29:07 -04:00
Slava Pestov e2c858da34 Add better error check for 'window' word 2009-04-10 06:20:23 -05:00
Slava Pestov 6082a98c7c If (open-window) or similar fails, don't enter an infinite loop of opening error windows, just try to open one and then give up 2009-04-07 22:30:13 -05:00
Slava Pestov 474e74a232 Re-organize things so that bootstrap.ui doesn't load ui.text 2009-03-31 23:44:38 -05:00
Slava Pestov be4fb1e7d9 Move call( and execute( to core 2009-03-16 20:11:36 -05:00
Slava Pestov 36d03dfa08 Use call( so that with-ui infers 2009-03-16 03:01:47 -05:00
Slava Pestov 25a877e50b Merge OneEyed's patch 2009-02-28 17:06:55 -06:00
Slava Pestov 58e55d4f45 Working on documentation 2009-02-19 16:54:27 -06:00
Samuel Tardieu 087d931c36 Remove the tail argument from do/until/while 2009-02-18 02:41:14 +01:00
Slava Pestov 39a4969faa Listener doesn't print a garbage quotation when commands are invoked 2009-02-12 09:48:05 -06:00
Slava Pestov d1a5bf2073 Working on ui.images; change draw-gadget to translate to origin for you 2009-02-10 18:47:34 -06:00
Slava Pestov 5be7a6777b Clean up Core Text rendering code, and factor our basis/cache and basis/opengl/texture-cache 2009-02-10 02:45:43 -06:00
Slava Pestov 7b8e7f8092 Use call( in a bunch of places in the UI; update-ui infers now 2009-02-09 00:49:48 -06:00
Slava Pestov 3045777f02 Fix conflict 2009-02-09 00:34:00 -06:00
Daniel Ehrenberg b65b88364c Updating lots of things to use call( -- ) 2009-02-08 22:12:11 -06:00