Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

More library refactoring, final stage of bootstrap.

  • Loading branch information...
commit 7515ff5abd606287b7fca21906be5ad30d2dd1bf 1 parent ca98719
@pmichaud pmichaud authored
Showing with 45 additions and 5 deletions.
  1. +2 −1  .gitignore
  2. +6 −4 build/Makefile.in
  3. +37 −0 src/HLL.pir
View
3  .gitignore
@@ -4,9 +4,10 @@ Makefile
.*.swp
*.c
*.o
+Regex.pbc
+HLL.pbc
P6Regex
P6Regex.pbc
-HLLGrammar.pbc
nqp
nqp.pbc
src/gen/*.pir
View
10 build/Makefile.in
@@ -101,7 +101,7 @@ NQP_G = gen/nqp-grammar.pir
NQP_A = gen/nqp-actions.pir
NQP_EXE = nqp$(EXE)
-STAGE0_PBCS = $(STAGE0)/$(HLLGRAMMAR_PBC) $(STAGE0)/$(P6REGEX_PBC) $(STAGE0)/$(NQP_PBC)
+STAGE0_PBCS = $(STAGE0)/$(HLL_PBC) $(STAGE0)/$(P6REGEX_PBC) $(STAGE0)/$(NQP_PBC)
STAGE1_PBCS = $(STAGE1)/$(HLL_PBC) $(STAGE1)/$(P6REGEX_PBC) $(STAGE1)/$(NQP_PBC)
STAGE2_PBCS = $(STAGE2)/$(HLL_PBC) $(STAGE2)/$(P6REGEX_PBC) $(STAGE2)/$(NQP_PBC)
ALL_PBCS = $(HLL_PBC) $(P6REGEX_PBC) $(NQP_PBC)
@@ -109,6 +109,8 @@ ALL_PBCS = $(HLL_PBC) $(P6REGEX_PBC) $(NQP_PBC)
CLEANUPS = \
*.manifest \
*.pdb \
+ $(REGEX_PBC) \
+ $(HLL_PBC) \
$(P6REGEX_PBC) \
P6Regex$(EXE) \
$(P6GRAMMAR_PBC) \
@@ -137,9 +139,9 @@ $(REGEX_PBC): $(REGEX_SOURCES)
$(STAGE0): $(STAGE0_PBCS)
$(STAGE0_PBCS): $(STAGE0_SOURCES)
- $(PARROT) -o $(STAGE0)/$(P6REGEX_PBC) src/stage0/P6Regex-s0.pir
- $(PARROT) -o $(STAGE0)/$(HLLGRAMMAR_PBC) src/stage0/HLLGrammar-s0.pir
- $(PARROT) -o $(STAGE0)/$(NQP_PBC) src/stage0/NQP-s0.pir
+ $(PARROT) -o $(STAGE0)/$(HLL_PBC) src/stage0/HLL-s0.pir
+ $(PARROT) -o $(STAGE0)/$(P6REGEX_PBC) src/stage0/P6Regex-s0.pir
+ $(PARROT) -o $(STAGE0)/$(NQP_PBC) src/stage0/NQP-s0.pir
$(STAGE1): $(STAGE1_PBCS)
View
37 src/HLL.pir
@@ -0,0 +1,37 @@
+# $Id$
+
+=head1 NAME
+
+HLL - Parrot HLL library
+
+=head1 DESCRIPTION
+
+This file brings together the various modules needed for HLL::Compiler
+and HLL::Grammar.
+
+=cut
+
+.sub '' :anon :load :init
+ load_bytecode 'Regex.pbc'
+.end
+
+.include 'src/cheats/hll-compiler.pir'
+.include 'src/cheats/hll-grammar.pir'
+.include 'gen/hllgrammar-grammar.pir'
+.include 'gen/hllgrammar-actions.pir'
+
+=head1 AUTHOR
+
+Patrick Michaud <pmichaud@pobox.com> is the author and maintainer.
+
+=head1 COPYRIGHT
+
+Copyright (C) 2009, Patrick R. Michaud
+
+=cut
+
+# Local Variables:
+# mode: pir
+# fill-column: 100
+# End:
+# vim: expandtab shiftwidth=4 ft=pir:
Please sign in to comment.
Something went wrong with that request. Please try again.