Commit Graph

16 Commits (revert-2214-feature-commandline-documentation)

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 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 b5a671cd88 peg: replace uses of digits>integer with string>number. 2015-07-19 19:18:47 -07:00
Jose A. Ortega Ruiz 408d592c3e FUEL: Font lock and no indentation for EBNF: ... ;EBNF forms. 2009-04-01 05:03:28 +02:00
Chris Double c671ccce99 { ... } whitespace grouping 2008-04-29 14:15:05 +12:00
Chris Double 34a1505d95 PL0 whitespace handling improvement 2008-04-02 15:47:30 +13:00
Chris Double 1b58ba404e Fix peg.pl0 test failures 2008-04-02 13:50:29 +13:00
Chris Double e7980ebc61 More refactoring of EBNF
<EBNF .. EBNF> now produces a quotation that when called does the parsing
EBNF: foo ... ;EBNF creates a 'foo' word with stack effect (string -- result)
when called it parses the string and returns the result.
2008-03-20 17:11:09 +13:00
Chris Double 39c228db6d Update peg.pl0 to use range pattern syntax
This allows removing the words for ident and number, replacing them
with EBNF expressions.
2008-03-20 14:22:14 +13:00
Chris Double ec4f964e4f Fix pl0 for EBNF syntax changes 2008-03-20 14:06:21 +13:00
Chris Double 208c88c449 Update pl0 for ebnf changes, and add more tests 2008-03-19 18:35:45 +13:00
Doug Coleman 6378d38d63 add missing usings 2008-03-03 14:32:37 -06:00
Chris Double 362f2d3436 Fix packrat caching issue 2007-11-29 23:42:46 +13:00
Chris Double d3ac10aefc Redo PL/0 parser using ebnf 2007-11-28 16:07:23 +13:00
Chris Double 9f2f45cd71 More peg.pl0 additions
This parser is currently really ugly. The goal is to tidy up peg
so this parser looks more like the EBNF.
2007-11-27 16:45:32 +13:00
Chris Double ea2d4ea261 Work on PL/0 Grammar as a PEG example 2007-11-27 15:56:26 +13:00