aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcolin <colin@cicadas.surf>2023-08-04 08:04:32 -0700
committercolin <colin@cicadas.surf>2023-08-04 08:04:32 -0700
commit0ed3ee0fe326c5259effa1456ac58e0d26e38c4b (patch)
treecfb811d6865d5c939d7353dcf5165fb3e33d8409
parent477bb1041bdb89877867312c1249126f7a2988b9 (diff)
moved start rule section in readme
-rw-r--r--README.org11
1 files changed, 6 insertions, 5 deletions
diff --git a/README.org b/README.org
index ca98579..e345bcf 100644
--- a/README.org
+++ b/README.org
@@ -105,6 +105,12 @@ looks like this:
A nonterminal is a symbol whose name is surrounded by angle brackets:
e.g. ~<RULE1>~ or ~<FOOBAR>~.
+*** The start rule
+
+The very first rule in a ~deflanguage~ body is the ~START-RULE~. On a
+successful parse of the ~TOKENS~, whatever the start rule results in is
+what the macro being defined by ~deflanguage~ will expand in to.
+
*** Pattern Expressions
There are two kinds of patterns. First, any nonterminal counts as a
@@ -207,8 +213,3 @@ clause, it can be either a function designator or an arbitrary expression.
When ~<rule3>~ succeeds, it returns a list of two values.
-*** The start rule
-
-The very first rule in a ~deflanguage~ body is the ~START-RULE~. On a
-successful parse of the ~TOKENS~, whatever the start rule results in is
-what the macro being defined by ~deflanguage~ will expand in to.