emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/parser-generator e447145 402/434: Added notes about set


From: ELPA Syncer
Subject: [elpa] externals/parser-generator e447145 402/434: Added notes about setting to allow default conflict resolution
Date: Mon, 29 Nov 2021 16:00:25 -0500 (EST)

branch: externals/parser-generator
commit e4471458484ffcccd8f604ab7abaefa131b2f52c
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>

    Added notes about setting to allow default conflict resolution
---
 docs/Syntax-Analysis/LR0.md | 8 ++++++++
 docs/Syntax-Analysis/LRk.md | 8 ++++++++
 2 files changed, 16 insertions(+)

diff --git a/docs/Syntax-Analysis/LR0.md b/docs/Syntax-Analysis/LR0.md
index e031b2f..e6df7bc 100644
--- a/docs/Syntax-Analysis/LR0.md
+++ b/docs/Syntax-Analysis/LR0.md
@@ -21,6 +21,14 @@ Example with grammar with production: S -> SaSb and S is 
non-terminal and a, b a
 * A is the production LHS
 * B, C is parts of the production RHS, if the dot is at the left B is nil and 
C is the entire RHS. If the dot is at the right then B is the production RHS 
and C is nil, otherwise B and C contains parts of the RHS
 
+## Declare default conflict resolution
+
+If two items A and B both lack precedence values you can allow a default shift 
action with:
+
+``` emacs-lisp
+(setq parser-generator-lr--allow-default-conflict-resolution t)
+```
+
 ## Declaring operator precedence
 
 You can set global symbol operator precedence and also context-sensitive 
precedence, like in GNU Bison. Example
diff --git a/docs/Syntax-Analysis/LRk.md b/docs/Syntax-Analysis/LRk.md
index 388695f..8cbeb51 100644
--- a/docs/Syntax-Analysis/LRk.md
+++ b/docs/Syntax-Analysis/LRk.md
@@ -22,6 +22,14 @@ Example with grammar with production: S -> SaSb and S is 
non-terminal and a, b a
 * B, C is parts of the production RHS, if the dot is at the left B is nil and 
C is the entire RHS. If the dot is at the right then B is the production RHS 
and C is nil, otherwise B and C contains parts of the RHS
 * L is the item look-ahead
 
+## Declare default conflict resolution
+
+If two items A and B both lack precedence values you can allow a default shift 
action with:
+
+``` emacs-lisp
+(setq parser-generator-lr--allow-default-conflict-resolution t)
+```
+
 ## Declaring operator precedence
 
 You can set global symbol operator precedence and also context-sensitive 
precedence, like in GNU Bison. Example



reply via email to

[Prev in Thread] Current Thread [Next in Thread]