Commit Graph

331 Commits (2c488736e40435bdff6365a58556023e93032c55)

Author SHA1 Message Date
John Benediktsson 64d835e2bf parser: use ?first. 2019-03-16 20:33:40 -07:00
John Benediktsson ca03896d74 more test IN: cleanup. 2018-02-15 09:20:01 -08:00
Alexander Iljin 2ffa446f5b *-docs: replace double spaces with single spaces
Code examples and other places where multiple spaces were used to align
text were left intact.
2017-06-05 13:16:07 -07:00
Doug Coleman 7c7bb93c55 factor: Rename GENERIC# to GENERIC#:.
Fixes #1670.
2017-06-01 13:58:58 -05:00
Björn Lindqvist 073dc4686a parser.tests: fix test that broke 2016-12-06 09:08:42 +01:00
Björn Lindqvist 1c53e43768 parser: new parsing word parse-array-def
The idea behind this word is that in many cases parsing to an array is
much more convenient than parsing to a quotation.
2016-12-03 12:56:47 +01:00
Alexander Iljin 2fd5654473 Add EOL at EOF for all authors.txt files for consistency
In some instances replaced CR/LF with LF.
2016-07-30 09:25:30 -07:00
Doug Coleman 3fa9ad91f6 effects: Add support for :type as standalone, unnamed types. ( :float -- ) pprints as ( _: float -- ), and ( :( a -- b ) -- ) works, etc. :union{ foo bar } pprints as object but could be improved if the effects parser uses the prettyprinter somehow.
Move ?execute-parsing to parser to avoid circularity.
2016-05-12 16:27:50 -07:00
John Benediktsson 950f42eedd parser: make scan-class assert result is a classoid like it used to. 2016-04-13 16:41:48 -07:00
Doug Coleman c133c16377 core: Trim using lists from -tests and clean up a few irregularities. 2016-03-30 18:43:41 -07:00
John Benediktsson 24d9e3a491 effects.parser: allow generic methods not in current vocabs. 2016-03-30 17:21:58 -07:00
John Benediktsson 0d1f9f9e01 parser: require an IN: for any word definitions (even generics). 2016-03-30 16:14:16 -07:00
John Benediktsson 47ae304ff7 parser: fix docs typo. 2016-03-16 12:36:08 -07:00
John Benediktsson 35ca557ce7 core: use $sequence help-markup in a few places. 2016-03-16 10:13:56 -07:00
John Benediktsson 59caf874a3 syntax: removing #! as a comment character.
We don't need two types of comments and shebang (#!) is handled
natively by the lexer, so the original reason for #! is not valid.
2015-09-09 18:28:08 -07:00
John Benediktsson e477f6996f Fix comments to be ! not #!. 2015-09-08 16:15:10 -07:00
John Benediktsson 18e557785f Revert "parser: split parse-file into (parse-file)."
This reverts commit 18bbe6292a.
2015-08-15 16:05:41 -07:00
John Benediktsson 18bbe6292a parser: split parse-file into (parse-file). 2015-08-15 09:12:06 -07:00
John Benediktsson 2c41c913ee parser: split out check-word-name. 2015-08-14 19:51:52 -07:00
John Benediktsson ceb75057da change ERROR: words from throw-foo back to foo. 2015-08-13 16:13:05 -07:00
Doug Coleman 02008979d9 factor: Change ERROR: foo ; to define ``throw-foo`` instead of having ``foo`` throw implicitly. The old ``foo`` still throws implicitly because this is a big change to get right in one patch, but it should be removed soon. 2015-08-12 15:26:18 -05:00
John Benediktsson 46021e4d77 fix some generic tests. 2015-08-05 18:01:05 -07:00
Doug Coleman 1fcf96cada factor: remove """ string syntax for now. there are HEREDOC:, STRING:, escaping \", and something else soon. 2015-07-25 22:59:56 -07:00
Doug Coleman 117727d444 parser, source-files: you need to bootstrap after this patch.
cleans up some file vs path naming.

file -> current-source-file
file -> current-test-file somewhere else
source-file -> path>source-file
source-file-tuple -> source-file
2015-07-23 22:03:43 -07:00
Doug Coleman 2adeed9cb3 factor: rename classes:members to class-members so it doesn't conflict with sets:members. ugh. 2015-07-20 00:32:42 -07:00
Doug Coleman 43d6f1d3e2 factor: Retrying on the unit tests. Also normalize some syntax with FUNCTION:. 2015-07-02 17:28:17 -07:00
Doug Coleman 59f3b1ea57 Revert "factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool!"
Needs a bit more work.

This reverts commit 7e54cc2824.
2015-07-02 13:47:06 -07:00
Doug Coleman 7e54cc2824 factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool! 2015-07-02 11:36:08 -07:00
Doug Coleman 999aa7c897 factor: clean up spaces in -tests files 2015-07-02 10:34:01 -07:00
Doug Coleman e3cb325040 factor: clean up whitespace in -docs files 2015-07-02 10:31:22 -07:00
Doug Coleman 352e5de16a core, basis, extra: Remove DOS line endings from files.
Remove whitespace from end of lines.
Add a newline to the end of each file.
2015-06-29 17:25:40 -07:00
Björn Lindqvist d32b9f9c90 locals.parser: docs for with-lambda-scope and some random doc additions 2015-06-22 11:15:48 +02:00
Björn Lindqvist 4d47b826bf parser: added helper word use-first-word? to simplify no-word 2015-06-09 13:02:03 +02:00
Doug Coleman f0799a7bc3 core: fix word link.
extra: fix word
2015-06-08 16:53:54 -07:00
Doug Coleman 6e60c811ac core: Rename create to create-word, create-in to create-word-in. 2015-06-08 12:47:35 -07:00
John Benediktsson b366a06c41 use reject instead of [ ... not ] filter. 2015-05-12 18:50:34 -07:00
Doug Coleman 401b57c6b9 Revert "parser: Print "Loading" message as a comment for homoiconicity. See #1221."
This reverts commit 10cf6e3dd2.
2014-11-23 22:41:15 -08:00
Doug Coleman 10cf6e3dd2 parser: Print "Loading" message as a comment for homoiconicity. See #1221. 2014-11-23 16:56:49 -08:00
Doug Coleman 34800e2ae8 parser.notes: Remove trailing whitespace the parser noticed. 2014-10-30 16:19:30 -07:00
Doug Coleman c71c200063 parser: Fix for empty word list. Oops. 2014-10-27 19:38:32 -07:00
Doug Coleman ce3d31014c parser: Cleaner fix, comments. Fixes #1174. 2014-10-27 12:12:55 -07:00
Doug Coleman b83fe1db51 parser: Consider private words now for autocompletes, but to avoid pulling in private words unexpectedly, throw a restart that confirms you really want the private word. Fixes #1174. 2014-10-27 12:01:37 -07:00
John Benediktsson cea47b896d more doc types. 2014-05-26 07:51:19 -07:00
John Benediktsson 57f9d78892 improve help by linking to types directly. 2014-05-23 20:20:15 -07:00
John Benediktsson a38524eb99 lexer/parser: rename (scan-token) to ?scan-token, (scan-datum) to ?scan-datum. 2014-05-20 09:13:58 -07:00
John Benediktsson 98935b7f15 docs: change ``{ $quotation "( x -- y )" }`` to ``{ $quotation ( x -- y ) }``. 2014-05-18 20:09:10 -07:00
John Benediktsson 2b7d53b7d1 parser: add invalid-word-name, use it to check for redefining quotes. 2013-04-25 15:41:20 -07:00
Doug Coleman 31e1fe54e3 core/extra tests: Fix word -> last-word 2013-03-24 01:11:54 -07:00
Doug Coleman 2d9a15c7c1 lexer, parser: Rename unexpected-eof. 2013-03-23 21:35:50 -07:00
Doug Coleman 5fab749dcc words: Change word -> last-word, set-word -> set-last-word. 2013-03-23 16:12:03 -07:00