Commit Graph

29 Commits (ba10e893b0f1348ad06a51a3a5bd48358f3b18e0)

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
Doug Coleman 5484d2ee41 parse-here doesn't consume an extra line now, and it checks that once a line has started there are no extra characters 2011-09-03 12:17:30 -05:00
Keita Haga 1a809dc641 combinators.smart, multiline: few $examples turn into $codes 2011-01-15 00:22:29 +09:00
Keita Haga a1579b4be6 multiline: fix typo in docs 2010-12-23 04:42:56 +09:00
Doug Coleman a57e990af7 parsed -> suffix!, add append! 2009-10-28 13:38:27 -05:00
Keith Lazuka 8f79ea91ba docs: change $subsection to $subsections 2009-10-02 12:15:48 -04:00
Doug Coleman 073c6cadd6 remove <" from multiline tests 2009-09-23 16:24:32 -05:00
Doug Coleman f26156ef2a remove usage of <" in multiline 2009-09-21 23:01:28 -05:00
Doug Coleman 0e9e0e1032 remove <" and friends 2009-09-21 17:59:37 -05:00
Doug Coleman 8a87e95c6b clarify docs 2009-08-19 04:41:33 -05:00
Doug Coleman daf0f1f925 fix HEREDOC:s, add DELIMITED: which is like a HEREDOC: where the terminator can appear anywhere 2009-08-18 03:44:54 -05:00
Doug Coleman 3b6d622bb9 fix multiline docs 2009-08-17 20:47:27 -05:00
Mitchell N Charity ea44aebfc5 multiline: add HEREDOC: , slightly refactoring privates 2009-08-17 17:05:14 -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
Slava Pestov ea60f8ae93 Changing : foo ; parsing to SYNTAX: foo ; 2009-03-21 01:27:50 -05:00
Daniel Ehrenberg 465ed2fca8 New delimiter choices for multiline 2009-01-21 18:17:06 -06:00
Daniel Ehrenberg ef569240d0 Fixing multiline error 2009-01-21 00:44:43 -06:00
Daniel Ehrenberg 5221193034 Multiline cleanup and bug fix 2009-01-20 16:12:09 -06:00
Slava Pestov daf2857d7b define-inline now takes an effect parameter
C: now sets the stack effect of the new word to slot names
add new basis/constants vocab; CONSTANT: foo bar is equivalent to : foo bar ; inline
(going to fold CONSTANT:, ALIAS: and qualified into core soon perhaps)
tighten the screws: inline words now need a stack declaration too
update some usages of inline words
2008-12-15 19:44:56 -06:00
Slava Pestov e5ed7447ed Removing more >r/r> usages 2008-12-03 08:46:16 -06:00
Slava Pestov c19f2257f4 Fix permission bits 2008-10-02 08:34:49 -05:00
Slava Pestov eae7e95d9b Fix <" 2008-09-24 19:04:44 -05:00
Slava Pestov cf80dd122a Updating code for make and fry changes 2008-09-10 22:11:40 -05:00
Doug Coleman 055d9dbed5 cleanup multiline 2008-09-06 22:48:41 -05:00
Doug Coleman b9932828f0 add article for multiline, more docs 2008-09-04 21:38:23 -05:00
Slava Pestov cbc5bc1412 Fix multiline 2008-08-31 02:28:58 -05:00
Doug Coleman 01fee5a1f4 new accessors 2008-08-30 21:58:20 -05:00
Slava Pestov d66f887736 Create basis vocab root 2008-07-28 22:03:13 -05:00