You can only use the command print in debug mode or if the previous analysis has stopped with an error in the combination rules. Using this command, you get the values of all Malaga variables currently defined. The variables will be printed in the order of their definitions:
malaga> sa-debug You are beautiful. entering rule "Noun", start: "", next: "You" debug> print $sentence = [class: main_clause, parts: <>] $word = [class: pronoun, result: S2]
You can specify any variable names (including the ``$'') as arguments to this command; you can even specify a path behind each of the variable names. In this case, only the values of the specified variables or paths are printed:
debug> print $word $word = [class: pronoun, result: S2] debug> print $word.class $word.class = pronoun
If the variable values are very complex, the output of print can be confusing. Please use the command variables in this case.