Commit Graph

45 Commits (clean-linux-x86-32)

Author SHA1 Message Date
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
John Benediktsson 9c7655d286 infix: adding support for constants and ( -- x ) words.
Also speed up subseq steps with negative steps.
2017-03-18 13:27:33 -07:00
John Benediktsson 2e43bc6b90 infix: add support for string literals.
Rename ast-number to ast-value (to represent any literal value).
2017-03-16 16:14:51 -07:00
John Benediktsson 8e87696719 infix: don't shadow ``t`` even though we can. 2017-03-16 15:50:58 -07:00
John Benediktsson aa05fca37f infix: add a test for nested local scopes. 2017-03-16 15:49:07 -07:00
John Benediktsson 2b23d75544 infix: fix to allow nested local scopes. 2017-03-16 15:36:07 -07:00
John Benediktsson ceb75057da change ERROR: words from throw-foo back to foo. 2015-08-13 16:13:05 -07:00
Doug Coleman 66147f27b4 extra: use throw-foo for ERROR: change 2015-08-13 01:56:32 -07:00
Doug Coleman e264c26b53 infix: fix infix syntax 2015-07-21 18:00:01 -07:00
John Benediktsson cd6ccdadc3 peg: use escaped character classes. 2015-07-16 08:44:59 -07:00
Doug Coleman 892c62e1dc factor: second stab at [ ] [ ] unit-test -> { } [ ] unit-test 2015-07-03 09:39:59 -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
John Benediktsson 950cbc5e7d infix: fix bug with recent locals refactor. 2015-06-09 09:59:29 -07:00
John Benediktsson 9cb7c1e42d infix: update docs for recent changes. 2013-05-01 11:57:20 -07:00
John Benediktsson db81422ff4 infix: crazy infix methods idea, dunno if it is awesome yet. 2013-04-15 11:27:09 -07:00
John Benediktsson 3c4dbf6ed5 infix: removing alternate syntax due to use of multiline strings... 2013-04-04 15:17:50 -07:00
John Benediktsson 6f2f681ae8 infix: adding alternate syntax. 2013-04-04 15:05:49 -07:00
John Benediktsson 5d73e84dae infix: adding pow(). 2013-04-04 15:04:14 -07:00
John Benediktsson 480b57029a infix: fixing issue with confusing negative steps. 2013-03-19 18:51:21 -07:00
John Benediktsson e172a081a4 infix: adding slice step notation. 2013-03-19 16:52:33 -07:00
John Benediktsson c8732657b7 Cleanup more lint warnings. 2011-10-16 13:01:58 -07:00
John Benediktsson d61de12011 Cleanup more lint warnings. 2011-10-14 12:31:46 -07:00
John Benediktsson 7103dfab6b infix: using "if-empty" makes it cleaner. 2011-09-21 19:31:26 -07:00
John Benediktsson 0dc5d57862 infix: adding support for "seq[from:to]" slice notation. 2011-03-17 22:42:23 -07:00
Philipp Brüschweiler aec0243f83 infix: part about integers as sequences doesn't apply anymore 2010-02-19 11:26:01 +01:00
Doug Coleman 9356da6fb3 Fix a few integers-as-sequences in docs 2010-01-14 17:20:43 -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
Doug Coleman 93de179c2f over push -> suffix!, over push-all -> append! 2009-10-28 15:29:01 -05:00
Joe Groff b0362f8011 fix help-lint failures 2009-10-28 14:05:23 -05:00
Doug Coleman 7ce4b746e5 parsed -> suffix!, add append! 2009-10-28 13:38:27 -05:00
Joe Groff 935c0797c3 update existing code for [let change 2009-10-27 22:05:37 -05:00
Keith Lazuka 405e5d015b docs: change $subsection to $subsections 2009-10-02 12:15:48 -04: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 b31fe9b8f2 Implement stricter vocab search path semantics, with a new API for vocabs.parser. Add map-find-last to sequences vocab 2009-05-14 22:31:29 -05:00
Slava Pestov 05f3f9dcb9 Fixing unit tests for stack effect inference changes 2009-04-20 21:15:19 -05:00
Slava Pestov df18c0b6e7 Making more code infer 2009-04-15 19:03:44 -05:00
Slava Pestov 723bfab030 Fixing unit tests for syntax change 2009-03-23 00:34:02 -05:00
Slava Pestov ea60f8ae93 Changing : foo ; parsing to SYNTAX: foo ; 2009-03-21 01:27:50 -05:00
Slava Pestov 2cd0ebb98d Update infix for locals change 2009-03-07 03:21:03 -06:00
Doug Coleman f7165e115e remove extra ?at definition 2009-02-22 17:52:04 -06:00
Philipp Brüschweiler aba1dbabcf infix: added meta information and fixed up docs somewhat 2009-02-11 20:56:09 +01:00
Philipp Bruschweiler 8097b52b12 initial infix vocab 2009-02-08 01:03:35 +01:00