[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
- [PATCH 00/16] Returning the error token from the scanner does not trigger an error message, Akim Demaille, 2020/04/26
- [PATCH 07/16] c++: fix a few style issues, Akim Demaille, 2020/04/26
- [PATCH 03/16] style: glr.c: fix indentation issue, Akim Demaille, 2020/04/26
- [PATCH 04/16] style: prefer b4_has_translations_if, Akim Demaille, 2020/04/26
- [PATCH 02/16] style: fix a few remaining 'type' instead of 'kind', Akim Demaille, 2020/04/26
- [PATCH 01/16] skeletons: make the warning about implementation details clearer, Akim Demaille, 2020/04/26
- [PATCH 06/16] all: prefer YYERRCODE to YYERROR, Akim Demaille, 2020/04/26
- [PATCH 08/16] c++: always define symbol_name, Akim Demaille, 2020/04/26
- [PATCH 09/16] c++: make valid to print the empty symbol, Akim Demaille, 2020/04/26
- [PATCH 11/16] examples: bistromathic: comment changes, Akim Demaille, 2020/04/26
- [PATCH 10/16] doc: hacking tricks,
Akim Demaille <=
- [PATCH 05/16] style: glr.c: clarify, Akim Demaille, 2020/04/26
- [PATCH 13/16] examples: bistromathic: demonstrate error recovery, Akim Demaille, 2020/04/26
- [PATCH 12/16] examples: bistromathic: when quitting, close the current line, Akim Demaille, 2020/04/26
- [PATCH 15/16] all: don't emit an error message when the scanner returns YYERRCODE, Akim Demaille, 2020/04/26
- [PATCH 16/16] todo: update, Akim Demaille, 2020/04/26
- [PATCH 14/16] c: don't emit an error message when the scanner returns YYERRCODE, Akim Demaille, 2020/04/26