Debian Codegraph @

texmf-dist/doc/latex/codeanatomy/demo-java-expression.tex

raw
1 %% LaTeX2e file `tmp-gen-java-expression.tex'
2 %% generated by the `filecontents' environment
3 %% from source `codeanatomy.lstlisting' on 2025/10/19.
4 %%
5 \lstset{escapeinside={!}{!}}
6 \begin{tikzpicture}[remember picture]
7 \codeBlock{\cPart{op1}{4} \cPart{op}{*} \cPart{op2}{( x - 3 )} }
8
9 \codeAnnotation{operand} (1,1.5) {operands\\(and expression)}
10 \codeAnnotation{operator} (0.7,-1) {operator}
11
12 \draw[->,annotation] (operand) -- (op1.north);
13 \draw[->,annotation] (operand) -- (op2.north);
14 \draw[->,annotation] (operator) -- (op.south);
15 \end{tikzpicture}