Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
More library refactoring, final stage of bootstrap.
  • Loading branch information
pmichaud committed Oct 29, 2009
1 parent ca98719 commit 7515ff5
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -4,9 +4,10 @@ Makefile
.*.swp
*.c
*.o
Regex.pbc
HLL.pbc
P6Regex
P6Regex.pbc
HLLGrammar.pbc
nqp
nqp.pbc
src/gen/*.pir
Expand Down
10 changes: 6 additions & 4 deletions build/Makefile.in
Expand Up @@ -101,14 +101,16 @@ 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)

CLEANUPS = \
*.manifest \
*.pdb \
$(REGEX_PBC) \
$(HLL_PBC) \
$(P6REGEX_PBC) \
P6Regex$(EXE) \
$(P6GRAMMAR_PBC) \
Expand Down Expand Up @@ -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)

Expand Down
37 changes: 37 additions & 0 deletions 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:

0 comments on commit 7515ff5

Please sign in to comment.