"Fossies" - the Fresh Open Source Software Archive

Member "cheetah3-3.2.6.post2/docs/dev_guide/parserInstructions.rst" (20 Apr 2021, 791 Bytes) of package /linux/www/cheetah3-3.2.6.post2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format (assuming markdown format). Alternatively you can here view or download the uninterpreted source code file. A member file download can also be achieved by clicking within a package contents listing on the according byte size field. See also the last Fossies "Diffs" side-by-side code changes report for "parserInstructions.rst": 3-3.1.0_vs_3-3.2.0.

Directives: Parser Instructions

#breakpoint

The template:

Text before breakpoint.
#breakpoint
Text after breakpoint.
#raise RuntimeError

The output:

Text before breakpoint.

The generated code:

write('Text before breakpoint.\n')

Nothing after the breakpoint was compiled.

#compiler

The template:

// Not a comment
#compiler commentStartToken = '//'
// A comment
#compiler reset
// Not a comment

The output:

// Not a comment
// Not a comment

The generated code:

write('// Not a comment\n')
#  A comment
write('// Not a comment\n')

So this didn't affect the generated program, it just affected how the template definition was read.