Menu

Bracket notation

Cyder

Bracket Notation

Tpp uses the so-called bracket notation in a lot of its documentation, to indicate different tokens.
The frontend executable shipped with tpp is capable, to output its tokens using the bracket notation.
To enable output with brackets, compile with "-tok"
Please not, that for documentation purposes, I always write line-feed tokens as [LF], while -tok will still output a line-feed

// expands to: [int][ ][x][ ][=][ ][10][+][20][;][LF]...
int x = 10+20;

Related

Wiki: Counter macro
Wiki: Include directive
Wiki: Line directive
Wiki: Macros
Wiki: Stringize operator
Wiki: Token concat