java: use getExpectedTokens, not yyexpectedTokens

* data/skeletons/lalr1.java, examples/java/calc/Calc.y, tests/local.at:
here.
This commit is contained in:
Akim Demaille
2020-04-06 14:12:24 +02:00
parent 0f6ab8e692
commit 79f967ac0d
4 changed files with 12 additions and 7 deletions

View File

@@ -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.