[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/bnf-mode defc412 11/74: Amended description and docs
From: |
Stefan Monnier |
Subject: |
[elpa] externals/bnf-mode defc412 11/74: Amended description and docs |
Date: |
Thu, 9 May 2019 08:27:44 -0400 (EDT) |
branch: externals/bnf-mode
commit defc4129e40999529c814eb0774c7510e20d148f
Author: Serghei Iakovlev <address@hidden>
Commit: Serghei Iakovlev <address@hidden>
Amended description and docs
---
CHANGELOG.org | 1 +
README.org | 11 ++++++++++-
bnf-mode.el | 15 +++++++--------
3 files changed, 18 insertions(+), 9 deletions(-)
diff --git a/CHANGELOG.org b/CHANGELOG.org
index e68ace6..a0d2708 100644
--- a/CHANGELOG.org
+++ b/CHANGELOG.org
@@ -1,4 +1,5 @@
#+TITLE: Change Log
+#+AUTHOR: Serghei Iakovlev
All notable changes to this project will be documented in this file.
diff --git a/README.org b/README.org
index 71d405c..83f4a46 100644
--- a/README.org
+++ b/README.org
@@ -1,12 +1,20 @@
#+TITLE: BNF Mode for GNU Emacs
+#+AUTHOR: Serghei Iakovlev
[[https://www.gnu.org/licenses/gpl-3.0.txt][https://img.shields.io/badge/license-GPL_3-green.svg]]
[[https://travis-ci.com/sergeyklay/bnf-mode][https://travis-ci.com/sergeyklay/bnf-mode.svg]]
A GNU Emacs major mode for editing BNF grammars.
+#+begin_quote
+Precise language is not the problem. Clear language is the problem.
+Richard Feynman
+#+end_quote
+
Currently provides basic syntax and font-locking for BNF files.
-EBNF and ABNF are in my plans for the near future.
+EBNF and ABNF are in my plans for the near future. At this time BNF Mode
+is not an absolutely accurate implementation of the standards and
+recommendations, but I'll try to be as close to them as possible.
When developing this mode, the following RFCs were taken into account:
@@ -81,6 +89,7 @@ To see what has changed in recent versions of BNF Mode, see
the [[https://github
** External Links
- [[https://en.wikipedia.org/wiki/Backus%E2%80%93Naur_form][Wikipedia:
Backus–Naur form]]
+- [[https://www.cl.cam.ac.uk/~mgk25/iso-14977.pdf][ISO/IEC 14977: EBNF]]
- [[https://www.ics.uci.edu/~pattis/ICS-33/lectures/ebnf.pdf][EBNF: A Notation
to Describe Syntax]]
** License
diff --git a/bnf-mode.el b/bnf-mode.el
index 0ebe02e..dd3e1c1 100644
--- a/bnf-mode.el
+++ b/bnf-mode.el
@@ -61,10 +61,10 @@
(declare-function pkg-info-version-info "pkg-info" (package))
(eval-when-compile
- (require 'rx))
+ (require 'rx)) ; `rx'
-(require 'cl-lib)
-(require 'pkg-info)
+(require 'cl-lib) ; `cl-defmacro'
+(require 'pkg-info) ; `pkg-info-version-info'
;;; Customization
@@ -130,8 +130,7 @@ are available:
name itself, that is, a sequence of characters, beginning
with an alphabetic character, and followed by a combination
of alphabetics, digits, and hyphens (dashes).
-
- For more see: https://tools.ietf.org/html/rfc5234#section-2.1
+ For more see RFC5234#2.1
See `rx' documentation for more information about REGEXPS param."
(let ((rx-constituents (append bnf-rx-constituents rx-constituents)))
@@ -183,7 +182,7 @@ See `rx' documentation for more information about REGEXPS
param."
(modify-syntax-entry ?\^m "> b" table)
;; Characters used to delimit string constants
(modify-syntax-entry ?\" "\"" table)
- ;; Comments setup
+ ;; Comments setup (see RFC822#2.8)
(modify-syntax-entry ?\; "<" table)
(modify-syntax-entry ?\n ">" table)
;; Treat ::= as sequence of symbols
@@ -202,7 +201,7 @@ See `rx' documentation for more information about REGEXPS
param."
"A major mode for editing BNF grammars."
:syntax-table bnf-mode-syntax-table
:group 'bnf-mode
- ;; Comment setup
+ ;; Comment setup (for more see RFC822#2.8)
(setq-local comment-use-syntax nil)
(setq-local comment-start "; ")
(setq-local comment-end "")
@@ -213,7 +212,7 @@ See `rx' documentation for more information about REGEXPS
param."
bnf-font-lock-keywords
;; keywords-only
nil
- ;; Regarding RFC5234
+ ;; Regarding to RFC5234#2.1
;; The names <rulename>, <Rulename>, <RULENAME>,
;; and <rUlENamE> all refer to the same rule.
t
- [elpa] externals/bnf-mode a7ea867 32/74: Correct documentation, (continued)
- [elpa] externals/bnf-mode a7ea867 32/74: Correct documentation, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode 1ad5de5 37/74: Amended installation methods, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode b18b10c 05/74: Implemented font locking, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode 388206f 09/74: Correct copyright date, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode 3beded6 15/74: Rule names are case insensitive. Added test., Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode af8cf6d 18/74: Correct change log [ci skip], Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode fd83621 20/74: Bump version, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode f917836 23/74: Change default goal for make, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode ed24bee 21/74: Bumb version, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode a7df2dd 17/74: Fontify sequences, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode defc412 11/74: Amended description and docs,
Stefan Monnier <=
- [elpa] externals/bnf-mode aa2c7a2 30/74: Correct change log formatting [ci skip], Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode c90b14d 26/74: Correct documentation to follow code style guide., Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode a3a77e3 29/74: In the BNF there are no grouping brackets except angle ones. Fixed, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode 1698dc8 39/74: Improved documentation, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode 64a32ba 42/74: Cleaned up Makefile, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode a53ade1 24/74: Fixed BNF rule name definition to follow ALGOL 60 report, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode 65bfadc 65/74: Fixed orthodox comments regexp, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode e2f8bfa 53/74: Added support of ; character to use in terminals, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode 3a46f17 36/74: Correct documentation, Stefan Monnier, 2019/05/09
- [elpa] externals/bnf-mode f99de60 47/74: Cleaned up Makefile, Stefan Monnier, 2019/05/09