From 9178c105d8669974fcfafada73414ae7b26eaa86 Mon Sep 17 00:00:00 2001 From: Fabien Fleutot Date: Sat, 29 Nov 2008 13:47:37 +0100 Subject: [PATCH] commenting and cleaning up synth.mlua --- src/samples/synth.mlua | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/samples/synth.mlua b/src/samples/synth.mlua index d73e68a..e572b4b 100644 --- a/src/samples/synth.mlua +++ b/src/samples/synth.mlua @@ -177,6 +177,10 @@ function synth:list (list, sep, start) end -------------------------------------------------------------------------------- +-- +-- Tag methods. +-- ------------ +-- -- Specific AST node dumping methods, associated to their node kinds -- by their name, which is the corresponding AST tag. -- synth:node() is in charge of delegating a node's treatment to the @@ -187,11 +191,14 @@ end -- -- There are several things that could be refactored into common subroutines -- here: statement blocks dumping, function dumping... --- However, given their small size and linear execution, it seems more --- readable to avoid multiplication of such tiny functions. +-- However, given their small size and linear execution +-- (they basically perform series of :acc(), :node(), :list(), +-- :nl(), :nlindent() and :nldedent() calls), it seems more readable +-- to avoid multiplication of such tiny functions. -- -- To make sense out of these, you need to know metalua's AST syntax, as -- found in the reference manual or in metalua/doc/ast.txt. +-- -------------------------------------------------------------------------------- function synth:Do (node) -- 2.11.4.GIT