Skip to content

Commit 55f68bb

Browse files
committed
Use lists instead of arrays in a few places, add documentation generation to Makefile and fix a typo in eval.n
git-svn-id: https://nemerle.googlecode.com/svn/nemerle/trunk@5568 c8a6711f-211a-0410-a8d5-2f220496d6d1
1 parent fc59b30 commit 55f68bb

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

tools/nemerlish/Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ Nemerle.Evaluation.dll: eval.n
2222
nemish.exe: $(NEMISH_SRC)
2323
$(NCC) -r Nemerle.Evaluation.dll -o nemish.exe $(NEMISH_SRC)
2424

25+
withdoc: withdoc-dll withdoc-exe
26+
27+
withdoc-dll: eval.n
28+
$(NCC) -r Nemerle.Compiler.dll -t library -doc "Nemerle.Evaluation.dll.xml" -o Nemerle.Evaluation.dll eval.n
29+
30+
withdoc-exe: $(NEMISH_SRC)
31+
$(NCC) -r Nemerle.Evaluation.dll -doc "nemish.exe.xml" -o nemish.exe $(NEMISH_SRC)
32+
2533
install: all
2634
$(Q)$(GACUTIL_COMMAND) Nemerle.Evaluation.dll
2735
$(INST) "[$(BINDIR)]" nemish.exe

tools/nemerlish/eval.n

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ namespace Nemerle.Evaluation
235235
// Fish out variables/functions and store them in our fields.
236236
| [SyntaxElement.Expression (expr)] =>
237237
Evaluator.locals = [];
238-
def l = ctx.GetLocals ().GetLocals ();
238+
def l = ctx.GetLocals ();
239239
def values = <[ $expr : System.Object ]> ::
240240
l.Fold ([], fun (n : Name, loc : LocalValue, acc) {
241241
regexp match (n.ToString ()) {

tools/nemerlish/interp.n

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ namespace Nemerle.Evaluation.Interpreter
4040
}
4141
set {
4242
Evaluator.refr = interpassembly ::
43-
Split (Replace (value, @"\s", ""), array [','])
43+
Split (Replace (value, @"\s", ""), [','])
4444
}
4545
}
4646

tools/nemerlish/main.n

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,9 @@ namespace Nemerle.Evaluation.Interpreter
190190
// and/or set namespace aliases, cut the statement out of
191191
// the code and evaluate what remained.
192192
| @"(?<beg>.*(([;}]|(\*/))\s*|^\s*))using\s+(?<use>[a-zA-Z0-9]+((\.[a-zA-Z0-9]+)*(\s*=\s*[a-zA-Z0-9]+)*)*)[\s;]*(?<end>.*)$" =>
193-
def newns = match (Split (Replace (use, @"\s", ""), array ['='])) {
194-
| [h] => (None (), Split (h, array ['.']))
195-
| [h, t] => (Some (h), Split (t, array ['.']))
193+
def newns = match (Split (Replace (use, @"\s", ""), ['='])) {
194+
| [h] => (None (), Split (h, ['.']))
195+
| [h, t] => (Some (h), Split (t, ['.']))
196196
| _ => assert (false)
197197
}
198198
Evaluator.ns ::= newns;

0 commit comments

Comments
 (0)