Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Rename nqpy to snake.
  • Loading branch information
pmurias committed Oct 12, 2013
1 parent 0f9e071 commit 58db12f
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 32 deletions.
4 changes: 2 additions & 2 deletions .gitignore
@@ -1,5 +1,5 @@
blib/*.c
blib/*.o
blib/*.pbc
blib/NQPy/*.pbc
nqpy
blib/Snake/*.pbc
snake
14 changes: 7 additions & 7 deletions Makefile
Expand Up @@ -2,14 +2,14 @@ NQP=../nqp/nqp
PARROT=../nqp/install/bin/parrot
PBC_TO_EXE=../nqp/install/bin/pbc_to_exe

PBCS=blib/NQPy/Actions.pbc \
blib/NQPy/Compiler.pbc \
blib/NQPy/Grammar.pbc \
PBCS=blib/Snake/Actions.pbc \
blib/Snake/Compiler.pbc \
blib/Snake/Grammar.pbc \

nqpy: $(PBCS) src/nqpy.nqp
$(NQP) --target=pir src/nqpy.nqp | $(PARROT) -o blib/nqpy.pbc -
$(PBC_TO_EXE) blib/nqpy.pbc
cp blib/nqpy $@
snake: $(PBCS) src/snake.nqp
$(NQP) --target=pir src/snake.nqp | $(PARROT) -o blib/snake.pbc -
$(PBC_TO_EXE) blib/snake.pbc
cp blib/snake $@

blib/%.pbc: src/%.nqp
$(NQP) --target=pir $< | $(PARROT) -o $@ -
Expand Down
File renamed without changes.
5 changes: 0 additions & 5 deletions src/NQPy/Compiler.nqp

This file was deleted.

2 changes: 1 addition & 1 deletion src/NQPy/Actions.nqp → src/Snake/Actions.nqp
@@ -1,6 +1,6 @@
use NQPHLL;

class NQPy::Actions is HLL::Actions;
class Snake::Actions is HLL::Actions;

## 2.4: Literals
method string($/) { make $<quote_EXPR>.ast; }
Expand Down
5 changes: 5 additions & 0 deletions src/Snake/Compiler.nqp
@@ -0,0 +1,5 @@
use NQPHLL;

class Snake::Compiler is HLL::Compiler;

# vim: ft=perl6
2 changes: 1 addition & 1 deletion src/NQPy/Grammar.nqp → src/Snake/Grammar.nqp
@@ -1,6 +1,6 @@
use NQPHLL;

grammar NQPy::Grammar is HLL::Grammar;
grammar Snake::Grammar is HLL::Grammar;

method TOP() {
my @*INDENT := nqp::list_i(0);
Expand Down
16 changes: 0 additions & 16 deletions src/nqpy.nqp

This file was deleted.

16 changes: 16 additions & 0 deletions src/snake.nqp
@@ -0,0 +1,16 @@
use Snake::Actions;
use Snake::Compiler;
use Snake::Grammar;

#Snake::Grammar.HOW.trace-on(Snake::Grammar);

my $comp := Snake::Compiler.new();
$comp.language('snake');
$comp.parsegrammar(Snake::Grammar);
$comp.parseactions(Snake::Actions);

sub MAIN(*@args) {
$comp.command_line(@args[0], :encoding<utf8>);
}

# vim: ft=perl6

0 comments on commit 58db12f

Please sign in to comment.