Skip to content

Commit 696dc15

Browse files
committed
First step to update [proc]
1 parent ea6caae commit 696dc15

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

build/Makefile.in

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,16 @@ GEN_SOURCES = \
121121
all: $(PARTCL_EXE) .revision
122122

123123
src/Partcl.pir: $(GEN_SOURCES)
124-
src/Partcl/commands.pm: $(COMMANDS) $(HELPERS) src/init.pir src/TclList.pir
125-
echo "use src::init;" > src/Partcl/commands.pm
126-
echo "use src::TclList;" >> src/Partcl/commands.pm
127-
echo "class Builtins {" >> src/Partcl/commands.pm
128-
cat $(COMMANDS) >> src/Partcl/commands.pm
129-
echo "}" >> src/Partcl/commands.pm
130-
cat $(HELPERS) >> src/Partcl/commands.pm
124+
src/Partcl/commands.pm: $(COMMANDS) $(HELPERS) src/init.pir src/TclList.pir \
125+
src/Partcl/Actions.pir src/Partcl/Compiler.pir
126+
echo "use src::init;" > src/Partcl/commands.pm
127+
echo "use src::TclList;" >> src/Partcl/commands.pm
128+
echo "use src::Partcl::Actions;" >> src/Partcl/commands.pm
129+
echo "use src::Partcl::Compiler;" >> src/Partcl/commands.pm
130+
echo "class Builtins {" >> src/Partcl/commands.pm
131+
cat $(COMMANDS) >> src/Partcl/commands.pm
132+
echo "}" >> src/Partcl/commands.pm
133+
cat $(HELPERS) >> src/Partcl/commands.pm
131134

132135
src/Internals.pm: src/Partcl/commands.pir src/init.pm
133136
src/init.pm: src/TclLexPad.pir src/TclArray.pir

src/Partcl/commands/proc.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ method proc(*@args) {
88
my $body := @args[2];
99

1010
my $parse :=
11-
Partcl::Grammar.parse( $body, :rule<TOP_proc>, :actions(Partcl::Actions) );
11+
Partcl::Compiler.parse( $body, :rule<TOP_proc>, :actions(Partcl::Actions) );
1212
my $block := $parse.ast;
1313
my @params := $args.getList();
1414
my @argsInfo := pir::new__PS('TclList');

0 commit comments

Comments
 (0)