Commit Graph

284 Commits (2a8af325347d5e90ce874f706f5746cd0ddaac9b)

Author SHA1 Message Date
Doug Coleman f5ad5bcac5 core/extra tests: Fix word -> last-word 2013-03-24 01:11:54 -07:00
Doug Coleman 179296005e lexer, parser: Rename unexpected-eof. 2013-03-23 21:35:50 -07:00
Doug Coleman 9a22d35cb7 words: Change word -> last-word, set-word -> set-last-word. 2013-03-23 16:12:03 -07:00
John Benediktsson d34cab2ffd parser: fix docs for filter-moved. 2013-03-10 20:40:40 -07:00
John Benediktsson 7ddd1d956e Fix some tests broken by recent definitions change. 2013-03-10 20:22:18 -07:00
John Benediktsson 44ca5784fe compiler.units: more use of hash-sets. 2013-03-10 18:04:37 -07:00
John Benediktsson ca4cb44f7e compiler: more use of hash-sets. 2013-03-10 16:13:31 -07:00
John Benediktsson 5d146aa648 parser: fix tests for hash-set change. 2013-03-08 14:57:21 -08:00
John Benediktsson 3337401551 core: cleanup USING lists. 2013-03-05 10:34:47 -08:00
John Benediktsson 93624a821b parser: make sure lines is an array. 2012-07-27 19:06:22 -07:00
Doug Coleman c44e48615b docs: vm says to read "command-line" but it was called "cli". change the article title in the docs. 2012-07-25 23:49:19 -07:00
Doug Coleman b9babdfa48 parser: Drunk coding is buzzed coding. 2012-06-21 17:35:24 -07:00
Doug Coleman 13b1c184a7 parser: last fix. 2012-06-21 14:18:55 -07:00
Felix Kaiser 3cdbfe8e42 parser: fix typo in docs 2012-05-20 00:34:51 +02:00
Doug Coleman c3dcf43e03 core/basis: trim down using lists 2011-11-30 23:15:42 -08:00
Joe Groff cd5f4f9b35 lexer: skip #! as a single token at front of line
Fixes #370
2011-11-27 14:59:54 -08:00
Joe Groff 12a0fdf293 parser: remove parse-base dead code 2011-11-23 22:33:31 -08:00
Joe Groff 2ff5e76690 let's pretend BIN: HEX: OCT: never happened 2011-11-23 19:22:37 -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 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 d3ba70a7d8 Remove the lexer-factory because nothing uses it. Update usages. 2011-10-29 01:11:19 -07:00
Doug Coleman 9ce1f894a2 Change prompt to something we can copy/paste back into the Factor repl. Add auto-use word. Fixes #301. 2011-10-29 01:05:38 -07:00
Doug Coleman f05e33fa37 Fix all failures in the linux64 build email 2011-10-24 19:33:09 -07:00
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 064d7fd311 Clean up a parser docs as per suggestions. 2011-10-02 20:08:23 -07:00
Doug Coleman 94f3ca3b8c 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 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 433dc02702 Make "quiet" true by default. Disable quiet mode for listener, bootstrap, and deploy tool.
Move "quiet" to parser-quiet? in parser.notes. Change a few places where quiet was handle wrong.
2011-09-06 17:58:12 -07:00
John Benediktsson c5243a079b parser: fix a typo in the docs. 2011-08-26 21:07:16 -07:00
Keita Haga b043e48e9e remove useless whitespace in several documentation 2011-01-05 15:55:34 +09:00
Keita Haga c9c1d89bfa classes.algebra, grouping, parser: replace 'seqence' with 'sequence' in docs 2011-01-04 21:02:11 +09:00
Slava Pestov f3ae3b7fc8 parser: update unit test 2010-07-08 15:41:28 -04:00
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
Joe Groff e8dc04746e catch merge conflicts in source and report them as such 2010-04-06 13:34:26 -07:00
Slava Pestov a3413060bb lexer: each-token and map-tokens did not handle EOF properly 2010-03-26 03:42:07 -04:00
Slava Pestov 517da6e538 Merge branch 'lexer-parsing-word-errors' of git://factorcode.org/git/factor into lexer-parsing-word-errors 2010-03-03 17:35:12 +13:00
Joe Groff a282a8dd26 lexer, parser: update docs on "parse-tokens" and add docs for "each-token", "map-tokens" 2010-03-01 11:47:57 -08:00
Joe Groff 5a653d4473 lexer, parser: show initial parsing word line as part of lexer-errors 2010-02-28 13:01:03 -08:00
Slava Pestov 1f89dc505a effects.parser: throw a proper no-word error if effect references an unknown class word 2010-02-23 23:57:13 +13:00
Slava Pestov 31c467cf52 parser: auto-use prefers non-private words to private words 2010-02-22 19:25:08 +13:00
Slava Pestov 74891bc02a Update documentation for new help lint check 2010-02-19 12:31:52 +13:00
Slava Pestov 06fb9aac4f Fix unit test failures 2010-02-18 04:58:30 +13:00
Brad Christensen c37b4f5f61 A number of documentation fixes and cleanup. 2010-02-03 00:05:03 -07:00
Slava Pestov 871eb5fd74 vocabs.parser: The manifest is now a definition observer, and updates itself when compilation units complete. This helps keep listener's search path up to date if vocabularies and words are renamed, defined, and undefined
- This makes forget-vocab more reliable in the listener
- It also fixes the problem of listener sessions where QUALIFIED: was used referring to outdated words if the vocabulary in question was reloaded
2010-01-27 20:49:26 +13:00
Slava Pestov 34f40c3a72 Various documentation improvements 2010-01-26 01:01:12 +13:00
Slava Pestov e5044c38bc parser: make 'CONSTANT: foo<newline>3' work in the listener 2010-01-15 08:30:26 +13:00
Joe Groff c967641f5c actually, no, it doesn't provide warnings for references to forgotten words 2009-11-06 15:25:33 -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