You can see the srcML for a particular example via the srcML Playground. Enter your source on the left and view the srcML on the right. You can even upload a file (conversion to srcML is done in the browser).
The srcML client program, srcml
, is installed in the GitHub Codespaces that we use.
To use srcml with an existing file:
If you want to try it on a single statement:
Note that the \n
is expanded into newlines.