Doug Coleman
d635604026
modern: Removing ch'a syntax.
...
It's cool but I don't like it right now.
2019-09-28 10:59:07 -05:00
Doug Coleman
5963f3a520
Merge remote-tracking branch 'origin/master' into modern-harvey3
2019-09-27 17:26:09 -05:00
John Benediktsson
06b72b8a0d
peg: less stack shuffling in define-parser-word.
2019-09-27 08:24:53 -07:00
Doug Coleman
e7c10e22b7
Merge remote-tracking branch 'origin/master' into modern-harvey3
2019-09-27 08:14:30 -05:00
John Benediktsson
f2e4a36c2c
peg: reuse code in compile-parsers-quots.
2019-09-26 08:56:42 -07:00
John Benediktsson
e643afa168
peg.parsers: use splitting.
2019-09-26 07:57:31 -07:00
John Benediktsson
0150e4c303
peg.parsers: simplify range-pattern.
2019-09-25 21:34:28 -07:00
John Benediktsson
c1ebf5451f
peg.ebnf: minor cleanup.
2019-09-25 20:38:19 -07:00
John Benediktsson
c3bee31342
peg: some cleanup.
2019-09-25 20:26:12 -07:00
Doug Coleman
fdb5383f19
Merge remote-tracking branch 'origin/master' into modern-harvey3
2018-08-24 16:49:34 -05:00
Alexander Iljin
0637557cca
*-docs: remove extra space character at the end of paragraghs
2018-08-21 10:45:52 -07:00
Doug Coleman
f05c7e8cd8
factor: char: a -> ch'a.
...
Also all contractions are not allowed in word names anymore. Even Data cannot use contractions...
2018-08-09 18:02:38 -04:00
Doug Coleman
0a77f6c679
factor: fixing [[ ]] and some unit tests
2018-08-02 18:29:04 -04:00
Doug Coleman
924b434336
Revert "factor: vocab:word -> vocab::word"
...
This reverts commit 354f1cbd34 .
2018-08-02 08:21:52 -04:00
Doug Coleman
53b1a81049
Merge branch 'master' into modern-harvey2
2018-06-20 00:26:12 -05:00
Doug Coleman
9f213f96f6
core: Add the shuffler words but without primitives.
...
The nipd branch slowed bootstrap by a minute, this patch does not.
sorry about changing the fjsc line endings...
2018-06-19 22:52:58 -05:00
Doug Coleman
4c164b1ae6
factor: change some spacing with ; on its own line
2018-03-19 00:03:27 -05:00
Doug Coleman
a2e8fb9050
Merge remote-tracking branch 'origin/master' into modern-harvey2
2018-02-18 11:29:09 -06:00
John Benediktsson
ca03896d74
more test IN: cleanup.
2018-02-15 09:20:01 -08:00
John Benediktsson
bd9676e152
core/basis/extra: use none?.
2018-02-14 11:56:31 -08:00
Doug Coleman
354f1cbd34
factor: vocab:word -> vocab::word
2017-12-29 00:43:25 -08:00
Doug Coleman
bc285f7072
core: Move multiline and interpolate to core.
...
caveats: peg.ebnf needs to find :> and let[ in "syntax" not locals anymore.
- You have to define a word ``IN: syntax`` before Factor picks up syntax changes
- You have to add a syntax word to core/bootstrap/syntax.factor
2017-11-24 19:12:04 -06:00
Doug Coleman
baa6af4831
factor: All RENAME: and FROM: and EXCLUDE: to have \foo as word names.
...
Grab bag of other cleanups. tests and docs parse!
2017-08-31 21:21:14 -05:00
Doug Coleman
3aa096e2e5
docs: Update docs.
2017-08-31 21:21:14 -05:00
Doug Coleman
5507c2b676
factor: [let to let[, [| to |[
2017-08-31 21:21:13 -05:00
Doug Coleman
147ae66ab5
factor: SYNTAX: \foo
2017-08-31 21:21:13 -05:00
Doug Coleman
c436f6dbad
factor: char: postpone: color: hexcolor: flexhexcolor: decimal:
2017-08-31 21:21:13 -05:00
Doug Coleman
eb173e2caa
factor: Add more character escapes.
2017-08-31 21:21:12 -05:00
Doug Coleman
fad9e9d002
peg.ebnf: Add EBNF-PARSER: to define a word that returns an EBNF parser
...
This is in contrast to defining a word that parser.
2017-08-06 00:17:25 -05:00
Doug Coleman
15b13870ae
peg.ebnf: Clean up EBNF: syntax.
...
The syntax for an EBNF parser is now ``EBNF: identifier string``. The
inline syntax went from [EBNF ... EBNF] to EBNF[[ ]], EBNF[=[ ]=], etc.
<EBNF looked for a main word, but this functionality is just EBNF[[ ]]
now.
2017-08-05 22:23:57 -05: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
John Benediktsson
48c69cb8ea
use reject instead of [ ... not ] filter.
2017-01-05 13:29:58 -08:00
John Benediktsson
dadff2f062
some cleanup.
2016-11-26 22:01:03 -08:00
Alexander Iljin
9a3a3c0170
peg.ebnf-docs: add note on including "-" in the character classes
2016-10-28 09:34:53 -07:00
Björn Lindqvist
20711a0fd3
Adding escaping to CHAR: " -> CHAR: \"
...
It is not necessary to escape the " character, but it doesn't hurt and
is necessary for syntax-highlighting (FUEL) to work correctly.
2016-09-04 06:40:43 +02:00
John Benediktsson
498285d7dd
unicode: make this the API for all unicode things.
2016-03-30 23:29:48 -07:00
John Benediktsson
0f4f1058ce
peg.ebnf: different (better) error for peg.ebnf.semantic-action.
2016-03-30 13:55:21 -07:00
John Benediktsson
c4f67577f1
peg.ebnf: add a note for bug #23 and prefix articles with EBNF.
2016-03-30 13:30:30 -07:00
John Benediktsson
4138ac0654
peg: simplify parse-satisfy.
2016-03-30 10:30:36 -07:00
Doug Coleman
26689c3d75
peg: Throw an error if nothing at all matches at position 0.
2016-03-30 10:16:15 -07:00
Doug Coleman
e49d721374
peg: Don't need to add empty errors here. It breaks the real error message.
2016-03-30 10:16:15 -07:00
John Benediktsson
71ef8a22c2
disambiguate namespaces:set and sets:set.
2016-03-29 17:14:42 -07:00
John Benediktsson
9f37936f53
peg.ebnf: whoops, fix using for some reason not included in previous patch.
2016-03-28 17:24:57 -07:00
John Benediktsson
7ab8a787b0
peg.ebnf: fix and a better fix.
2016-03-28 17:04:03 -07:00
John Benediktsson
e7fa8fbc2f
peg.ebnf: reset qualified-vocabs so FROM: statements don't leak.
2016-03-28 16:41: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
2435307fb3
peg: some cleanup.
2015-09-02 13:14:01 -07:00
John Benediktsson
b28a24c7df
peg: fix some old docs that referred to "p1".
2015-09-02 10:34:59 -07:00
Jon Harper
03630e8100
peg.ebnf: support escaped double quote in a string
2015-08-30 18:43:58 +02:00