Doug Coleman
8c19602ae9
assocs: Add of and ?of. Change all the things at once! Fixes #701 .
2013-03-23 14:59:07 -07:00
Doug Coleman
10a2288ed4
peg: Qualify use of replace. Fix some spacing.
2013-01-03 18:33:48 -08:00
John Benediktsson
d8e8eee935
peg.ebnf: fix usage of replace.
2013-01-03 18:13:20 -08:00
John Benediktsson
4e72d80256
Using "same?" in more places.
2012-07-21 10:22:44 -07:00
John Benediktsson
0cfc78c37c
"filter empty?" is "any? not".
2012-07-19 16:33:01 -07:00
John Benediktsson
16b046af76
more cleanup of with-scope.
2012-07-19 15:11:33 -07:00
Doug Coleman
42f4dc36b2
namespaces: Rename ``bind`` to ``with-variables``. Update a few places that called ``global [ ] with-variables`` to use ``with-global``.
2012-07-19 00:02:47 -07:00
John Benediktsson
5cc30f46f5
using if-zero in more places.
2012-07-16 15:45:21 -07:00
Doug Coleman
f9257959fd
Rename class to class-of
2011-10-24 06:47:42 -05:00
Doug Coleman
986ff071b4
Fix help-lint for editors, peg.ebnf
2011-10-19 00:57:20 -07:00
John Benediktsson
80e1c8e3f2
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
John Benediktsson
c8732657b7
Cleanup more lint warnings.
2011-10-16 13:01:58 -07:00
John Benediktsson
6f1c44b46d
Cleanup some lint warnings.
2011-10-15 19:19:44 -07:00
John Benediktsson
d61de12011
Cleanup more lint warnings.
2011-10-14 12:31:46 -07:00
John Benediktsson
1987deb359
Fix M: stack effects.
2011-10-13 16:41:17 -07:00
Doug Coleman
76580da5d5
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
9f34c9c676
Spelling fixes to documentation.
2011-08-26 16:20:31 -07:00
Joe Groff
27f5f07dbc
peg.ebnf: add rule~ syntax to discard a matching subrule from the AST; document (grouping) and {grouping} syntax
2011-06-06 16:32:19 -07:00
Keita Haga
073eda332a
In several documentation, remove whitespace before or after the colon or period
2011-02-10 01:51:13 +09:00
Keita Haga
904d85860a
peg.ebnf: fix minor typo in docs
2011-01-20 23:39:30 +09:00
Keita Haga
0048670ad7
peg.ebnf: fix a couple of typos in docs
2011-01-15 01:11:37 +09:00
Slava Pestov
c34639293a
peg.ebnf: minor fix
2010-07-26 12:40:32 -04:00
Slava Pestov
627295f094
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
Doug Coleman
8ccb56c924
C-style identifiers in peg.ebnf
2010-05-03 23:52:37 -05:00
Doug Coleman
fa07f5d85f
Allow - in peg.ebnf identifiers. Eating still not allowed...
2010-05-03 23:40:50 -05:00
Doug Coleman
c7351595e5
Allow a-zA-Z0-9_ in identifiers for peg.ebnf
2010-05-03 23:36:29 -05:00
Daniel Ehrenberg
aa6158b366
Changing require-when usages to the new syntax for require-when
2010-04-18 14:29:24 -05:00
Daniel Ehrenberg
eb060443db
Updating code to use require-when rather than vocab [ require ] when
2010-03-18 01:13:37 -04:00
Daniel Ehrenberg
7074979745
Moving new-sets to sets
2010-02-26 16:01:01 -05:00
Slava Pestov
f0aa694c7e
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
df4fb4a3ee
Removing integers-as-sequences
2010-01-15 07:15:33 +13:00
Doug Coleman
daf3094b8c
use $subsections instead of $subsection
2009-11-18 16:40:18 -06:00
Joe Groff
3fbe722561
Merge branch 'master' of http://factorcode.org/git/factor
...
Conflicts:
basis/locals/locals.factor
basis/peg/peg.factor
extra/infix/infix.factor
2009-10-28 16:17:24 -05:00
Joe Groff
6e1bffb1c5
update existing code to use :> ( ) when possible
2009-10-28 16:11:33 -05:00
Doug Coleman
93de179c2f
over push -> suffix!, over push-all -> append!
2009-10-28 15:29:01 -05:00
Doug Coleman
7ce4b746e5
parsed -> suffix!, add append!
2009-10-28 13:38:27 -05:00
Joe Groff
2ecf3fb568
fix load errors from bootstrapping
2009-10-28 12:51:03 -05:00
Joe Groff
f1d9201cb2
update peg for [let change
2009-10-27 22:29:20 -05:00
Slava Pestov
b6a0324be6
peg: fix unit test failures
2009-10-19 06:01:20 -05:00
Slava Pestov
191e3cf2fb
peg.ebnf: fix
2009-10-19 04:05:26 -05:00
Slava Pestov
bf5d0de840
peg.ebnf: turn $unchecked-examples into $examples
2009-10-19 03:44:50 -05:00
Chris Double
10b8976379
peg.ebnf doc fixes to appease help.lint
2009-10-19 18:26:19 +13:00
Chris Double
06a70fd3c6
Tweak what EBNF words are private
2009-10-19 18:14:13 +13:00
Chris Double
040a4e732a
Basic peg.ebnf docs
2009-10-19 18:12:24 +13:00
Chris Double
77216b9d68
Fix cpu.8080 bitrot
2009-10-15 17:33:44 +13:00
Doug Coleman
eceed177d6
replace usages of <" with """
2009-09-20 22:42:40 -05:00
Doug Coleman
3f3d57032b
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
Doug Coleman
407377fc98
rename peek -> last and update all usages
2009-05-25 16:38:33 -05:00
Slava Pestov
a0eb60906d
Fix even more usings
2009-05-16 10:45:17 -05:00
Slava Pestov
66a9416473
Update documentation for stricter vocabulary search path semantics
2009-05-16 00:29:21 -05:00
Slava Pestov
b62630b5ac
Updating code in basis and extra for stricter vocab search path semantics
2009-05-14 23:23:06 -05:00
Slava Pestov
fb6df472a2
Cleaning up USING: lists for new strict semantics
2009-05-14 16:54:16 -05:00
Slava Pestov
0c1e519dcb
Rename use+ to add-use, move search to vocabs.parser, EXCLUDE: bombs out if word doesn't exist
2009-05-13 22:15:48 -05:00
Slava Pestov
e9e095f240
Rename enable/disable-compiler to enable/disable-optimizer, and add with-optimizer and without-optimizer combinators
2009-05-01 05:52:05 -05:00
Slava Pestov
3353a777f7
Fixing some unit test failures
2009-04-22 07:05:00 -05:00
Slava Pestov
05f3f9dcb9
Fixing unit tests for stack effect inference changes
2009-04-20 21:15:19 -05:00
Doug Coleman
7a1841f59b
(( -- )) eval -> eval( -- )
2009-04-17 15:49:21 -05:00
Doug Coleman
dba4c0d589
fixing compiler errors in basis
2009-04-17 12:46:04 -05:00
Slava Pestov
99b8400e56
Documentation updates
2009-04-06 03:00:46 -05:00
Chris Double
087a7acfba
Fix peg left recursion handling
2009-03-31 23:59:52 -05:00
Doug Coleman
6b6de2b8aa
refactor some error handling in peg, more unit tests
2009-03-30 19:42:04 -05:00
Slava Pestov
f8d7fec17f
Faster PEG compile times; inline less, use execute( instead
2009-03-23 19:23:18 -05:00
Slava Pestov
c0154c1391
Change (:) to parse effect immediately, and remove ( parsing word
2009-03-21 03:17:35 -05:00
Slava Pestov
ea60f8ae93
Changing : foo ; parsing to SYNTAX: foo ;
2009-03-21 01:27:50 -05:00
Slava Pestov
be4fb1e7d9
Move call( and execute( to core
2009-03-16 20:11:36 -05:00
Slava Pestov
f1197fe327
peg.ebnf gives better stack effects
2009-03-16 03:29:04 -05:00
Slava Pestov
7ed56a3cef
Make peg compilation infer
2009-03-14 00:34:04 -05:00
Slava Pestov
9696661ef5
Use 1|| instead of 0|| where appropriate in peg.ebnf to remove some stack shuffling
2009-03-12 21:21:32 -05:00
Slava Pestov
1951d739a0
Stack effect declarations are mandatory on all words now
...
define-temp now takes an effect parameter
Fix compiler bug that Dan found
Stricter enforcement of * effects
Move compile-call from compiler.units to compiler
2009-02-23 20:27:05 -06:00
Slava Pestov
6b25e99470
Add summary for heaps more vocabs
2009-02-16 21:05:13 -06:00
Doug Coleman
3c408342ef
renaming: contain? -> any?, deep-contains? -> deep-any?, pad-left -> pad-head, pad-right -> pad-tail, trim-left -> trim-head, trim-right -> trim-tail
2009-01-29 22:19:07 -06:00
Slava Pestov
3adaa7a18e
Add unit tests for non-optimizing compiler regression found by doublec
2009-01-22 21:22:28 -06:00
Slava Pestov
058ba127cb
Cleaning up more -rot usages
2008-12-22 05:41:01 -06:00
Slava Pestov
5bfa17d962
Split off error. methods into sub-vocabs in a few places
2008-12-08 20:04:13 -06:00
Slava Pestov
3673a3e7c7
Use stack effect literals instead of <effect> in PEG, and don't use smart combinators
2008-12-05 23:53:16 -06:00
Slava Pestov
e5ed7447ed
Removing more >r/r> usages
2008-12-03 08:46:16 -06:00
Slava Pestov
ab53e7ce7a
peg and peg.parsers doesn't need to load shuffle vocabulary
2008-11-23 01:00:12 -06:00
Slava Pestov
acc1dc23fa
More usages of $quotation
2008-11-16 09:08:38 -06:00
Slava Pestov
b8eebd5c2b
swap over == tuck; dupd swap == over
2008-11-10 00:16:11 -06:00
Slava Pestov
c19f2257f4
Fix permission bits
2008-10-02 08:34:49 -05:00
Slava Pestov
0c8e2584b4
Fixing unit tests for make, fry changes
2008-09-11 00:20:06 -05:00
Slava Pestov
cf80dd122a
Updating code for make and fry changes
2008-09-10 22:11:40 -05:00
Slava Pestov
44f53de164
Move make to its own vocabulary, remove fry _ feature
2008-09-10 20:07:00 -05:00
Doug Coleman
7bcdf16a71
fix peg
2008-09-05 20:14:37 -05:00
Slava Pestov
bcc8483b5b
Move match to basis since compiler.tree.debugger uses it, fix conflict
2008-09-05 19:48:44 -05:00
Slava Pestov
aea0fed14c
Fixing basis -> extra dependencies
2008-09-05 19:29:14 -05:00
Doug Coleman
9af12d96cf
left-trim -> trim-left
2008-09-05 18:56:35 -05:00
Slava Pestov
724fae53e9
Move web framework to basis
2008-09-04 18:15:13 -05:00
Slava Pestov
0c304b8fc6
Removing old accessor usages from core and basis
2008-08-31 07:45:33 -05:00
Doug Coleman
2d1b642f53
new accessors
2008-08-29 17:00:19 -05:00
Slava Pestov
a4ac751605
Starting to remove delegation
2008-08-22 23:20:49 -05:00
Slava Pestov
59f902f673
Moving parts of extra/peg to basis
2008-08-22 23:04:24 -05:00