From 7b36cd6a7a6d576c19c60e7842a0d0d0c460702a Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Sat, 18 Jul 2020 23:00:43 -0400 Subject: Add links to html versions at the top of markdown files --- spec/grammar.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'spec/grammar.md') 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. -- cgit v1.2.3