bison-patches
[Top][All Lists]
Advanced

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

[PATCH 10/16] doc: hacking tricks


From: Akim Demaille
Subject: [PATCH 10/16] doc: hacking tricks
Date: Sun, 26 Apr 2020 16:40:45 +0200

* README-hacking.md: Here.
---
 README-hacking.md | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/README-hacking.md b/README-hacking.md
index 5e64f95b..4019faa9 100644
--- a/README-hacking.md
+++ b/README-hacking.md
@@ -37,6 +37,14 @@ Only user visible strings are to be translated: error 
messages, bits of the
 assert/abort), and all the --trace output which is meant for the maintainers
 only.
 
+## Syntax highlighting
+It's quite nice to be in C++ mode when editing lalr1.cc for instance.
+However tools such as Emacs will be fooled by the fact that braces and
+parens do not nest, as in `[[}]]`.  As a consequence you might be misguided
+by its visual pairing to parens.  The m4-mode is safer.  Unfortunately the
+m4-mode is also fooled by `#` which is sees as a comment, stops pairing with
+parens/brackets that are inside...
+
 ## Coding Style
 Do not add horizontal tab characters to any file in Bison's repository
 except where required.  For example, do not use tabs to format C code.
@@ -395,6 +403,12 @@ again, since some early failures may stop latter tests 
from being run.  Yet
 at some point, you'll have to fix remaining issues by hand...
 
 
+## Running Java parsers
+Use the `javaexec.sh` script.  For instance to run the parser of test case
+504:
+
+    $ sh ./_build/javaexec.sh -cp ./_build/tests/testsuite.dir/504 Calc
+
 ## make maintainer-check-valgrind
 This target uses valgrind both to check bison, and the generated parsers.
 
-- 
2.26.2




reply via email to

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