We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c9ffcf commit 77d2a4bCopy full SHA for 77d2a4b
src/HLL/Actions.nqp
@@ -211,6 +211,11 @@ class HLL::Actions {
211
}
212
213
method charspec($/) {
214
- make $<charnames> ?? $<charnames>.made !! nqp::chr(self.string_to_int( $/, 10 ));
+ make $<charnames>
215
+ ?? $<charnames>.made
216
+ !! nqp::chr($<control>
217
+ ?? nqp::ord($<control>) +^ 64
218
+ !! self.string_to_int( $/, 10 )
219
+ );
220
221
src/HLL/Grammar.nqp
@@ -121,7 +121,7 @@ grammar HLL::Grammar {
121
[
122
| '[' <charnames> ']'
123
| \d+ [ _ \d+]*
124
- | <[ ?..Z ]>
+ | <control=[ ?..Z ]>
125
| <.panic: 'Unrecognized \\c character'>
126
]
127
0 commit comments