Debian Codegraph @

docs/dev_guide/parserInstructions.rst

raw
1 Directives: Parser Instructions
2 ===============================
3
4
5 #breakpoint
6 -----------
7
8
9 The template:
10
11 ::
12
13 Text before breakpoint.
14 #breakpoint
15 Text after breakpoint.
16 #raise RuntimeError
17
18 The output:
19
20 ::
21
22 Text before breakpoint.
23
24 The generated code:
25
26 ::
27
28 write('Text before breakpoint.\n')
29
30 Nothing after the breakpoint was compiled.
31
32 #compiler
33 ---------
34
35
36 The template:
37
38 ::
39
40 // Not a comment
41 #compiler commentStartToken = '//'
42 // A comment
43 #compiler reset
44 // Not a comment
45
46 The output:
47
48 ::
49
50 // Not a comment
51 // Not a comment
52
53 The generated code:
54
55 ::
56
57 write('// Not a comment\n')
58 # A comment
59 write('// Not a comment\n')
60
61 So this didn't affect the generated program, it just affected how
62 the template definition was read.
63
64