- From: Dave Pawson <dave.pawson@gmail.com>
- Date: Wed, 28 Nov 2012 17:07:39 +0000
- To: public-markdown@w3.org
Googling for newline and EBNF
http://forums.newtek.com/archive/index.php/t-129852.html newline := "\n"
http://www.perlmonks.org/?node_id=412384 ditto
http://www.antlr.org/wiki/display/ANTLR3/Quick+Starter+on+Parser+Grammars+-+No+Past+Experience+Required
NEWLINE
: '\r'? '\n'
; whose is this? m$?
http://opensource.apple.com/source/emacs/emacs-70/emacs/lisp/progmodes/ebnf-abn.el
Interesting
CR = %x0D
;; ; carriage return
;;
;; CRLF = CR LF
;; ; Internet standard newline
Mediawiki EBNF
http://www.mediawiki.org/wiki/Markup_spec/EBNF
No definition of line break! We might learn from that?
#win
http://dirkriehle.com/wp-content/uploads/2008/01/a4-junghans.pdf
ESCAPE : '~';
NOWIKI_BLOCK_CLOSE : NEWLINE '}}}';
NEWLINE : ( CR )? LF | CR;
fragment CR : '\r';
fragment LF : '\n';
HTH
--
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk
Received on Wednesday, 28 November 2012 17:08:07 UTC