Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Can include constants anywhere, so do so. Now HLL.pir is just include…

…s of NQP compiler output, and is thus ready to wave goodbye.
  • Loading branch information...
commit 75b960bdf80a78d290c695446bd1562ab451a84b 1 parent 7c1a5c6
@jnthn jnthn authored
Showing with 4 additions and 6 deletions.
  1. +0 −6 src/HLL.pir
  2. +4 −0 src/HLL/Grammar.pm
View
6 src/HLL.pir
@@ -13,12 +13,6 @@ and HLL::Grammar.
=cut
-.HLL 'nqp'
-.loadlib "nqp_group"
-.loadlib "nqp_ops"
-
-.include 'cclass.pasm'
-.include 'src/Regex/constants.pir'
.include 'gen/hllgrammar-grammar.pir'
.include 'gen/hllgrammar-actions.pir'
.include 'gen/hllcompiler.pir'
View
4 src/HLL/Grammar.pm
@@ -168,6 +168,8 @@ C< :!pair >, and C<< :pair<strval> >>.
=end
method O($spec, $save?) {
Q:PIR {
+ .include 'cclass.pasm'
+
.local pmc self, cur_class
.local string spec, save
.local int has_save
@@ -397,6 +399,8 @@ position C<pos>.
method quote_EXPR(*@args) {
Q:PIR {
+ .include 'src/Regex/constants.pir'
+
.local pmc self, cur_class, args
self = find_lex 'self'
cur_class = get_hll_global ['Regex'], 'Cursor'
Please sign in to comment.
Something went wrong with that request. Please try again.