aboutsummaryrefslogtreecommitdiff
path: root/spec/grammar.md
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2020-07-18 23:00:43 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2020-07-18 23:00:43 -0400
commit7b36cd6a7a6d576c19c60e7842a0d0d0c460702a (patch)
tree8c66983cc29babe5f24df783dab1db879b802ebc /spec/grammar.md
parent2366e5a6275d39c1bd9cab2ada26bea00394820d (diff)
Add links to html versions at the top of markdown files
Diffstat (limited to 'spec/grammar.md')
-rw-r--r--spec/grammar.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/grammar.md b/spec/grammar.md
index 58544ce8..5b411000 100644
--- a/spec/grammar.md
+++ b/spec/grammar.md
@@ -1,3 +1,5 @@
+*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/spec/grammar.html).*
+
BQN's grammar is given below. Terms are defined in a [BNF](https://en.wikipedia.org/wiki/Backus%E2%80%93Naur_form) variant. However, handling special names properly is possible but difficult in BNF, so they are explained in text along with the braced block grammar.
The symbols `s`, `F`, `_m`, and `_c_` are identifier tokens with subject, function, 1-modifier, and 2-modifier classes respectively. Similarly, `sl`, `Fl`, `_ml`, and `_cl_` refer to literals and primitives of those classes. While names in the BNF here follow the identifier naming scheme, this is informative only: syntactic classes are no longer used after parsing and cannot be inspected in a running program.