diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2020-04-06 14:12:24 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2020-04-06 18:43:34 +0200 |
commit | 79f967ac0d1720bf36f1120a0f8cc6dd090fe0d0 (patch) | |
tree | f15676dd1002f54a2bce888ba1a73cf8bdcfcc6c /README-hacking.md | |
parent | 0f6ab8e6929c89b56874a2fe2eb18004bb139327 (diff) | |
download | bison-79f967ac0d1720bf36f1120a0f8cc6dd090fe0d0.tar.gz |
java: use getExpectedTokens, not yyexpectedTokens
* data/skeletons/lalr1.java, examples/java/calc/Calc.y, tests/local.at:
here.
Diffstat (limited to 'README-hacking.md')
-rw-r--r-- | README-hacking.md | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/README-hacking.md b/README-hacking.md index 4f6c0371..978163da 100644 --- a/README-hacking.md +++ b/README-hacking.md @@ -70,7 +70,9 @@ we are free to change them without fear of backward compatibility issues. Use `*_t` for types, especially for `yy*_t` in which case we shouldn't worry about the C standard introducing such a name. -In C++, use `*_type` for type aliases. +#### C++ +Use `*_type` for type aliases. Use `foo_get()` and `foo_set(v)` for +accessors, or simply `foo()` and `foo(v)`. #### Java We follow https://www.oracle.com/technetwork/java/codeconventions-150003.pdf @@ -81,6 +83,9 @@ are standardizing the code, it is currently inconsistent. Use a 2-space indentation (Google) rather than 4 (Oracle). +Don't use the "yy" prefix for public members: "getExpectedTokens", not +"yyexpectedTokens" or "yygetExpectedTokens". + ## Commit Messages Imitate the style we use. Use `git log` to get sources of inspiration. |