From 4efe44ed271aeed8e25e909344788d92a0d9f82b Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 11 Nov 2018 15:50:46 -0800 Subject: Fully upgraded to 4.10.12.7, including deprecating the old list/dict comprehension methods, in favor of the new native support. --- tools/parse.nom | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'tools/parse.nom') diff --git a/tools/parse.nom b/tools/parse.nom index 1465bb3..6f88179 100755 --- a/tools/parse.nom +++ b/tools/parse.nom @@ -1,8 +1,8 @@ -#!/usr/bin/env nomsu -V4.8.10 +#!/usr/bin/env nomsu -V4.10.12.7 # Tool to print out a parse tree of files in an easy-to-read format. Usage: nomsu tools/parse.nom file1 file2 directory1 ... - + use "lib/os.nom" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -21,14 +21,17 @@ externally (print tree %t at indent %indent) means: "Number": say "\%indent\(%t.1)" + "Var": say "\(%indent)%\(%t.1)" + else: say "\%indent\(%t.type):" for %arg in %t: - if: + when: (%arg is syntax tree): print tree %arg at indent "\%indent " + else: say "\%indent \(quote %arg)" -- cgit v1.2.3