[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Debugging/showing internal stuff?
From: |
Nicolas Sceaux |
Subject: |
Re: Debugging/showing internal stuff? |
Date: |
Tue, 10 Mar 2009 21:53:53 +0100 |
Le 10 mars 09 à 10:22, David Kastrup a écrit :
As some sort of progress,
'#{ \notemode { c e g } #}
puts out
(let ((parser-clone (ly:parser-clone parser))) (parse-string-result
" \\notemode { c e g } " parser-clone))
but since parser is #f, without quoting one gets
ERROR: In procedure ly:parser-clone:
ERROR: Wrong type argument in position 1 (expecting Lily_parser): #f
ABORT: (wrong-type-arg)
Not sure where to go from there.
----- test.ly -----
#(display (current-module))
#(top-repl)
-------------------
==>
#<module 33965d0>
guile> (current-module)
#<directory (guile-user) 22416f0>
guile>
So after invoking (top-repl), we are not the same module as the one
used in the input file. That's why `parser' is not bound to an actual
parser object. In the past (the page that was refered to was written
at the time of LilyPond 2.5), the modules of the input files were named
something like anonymous-ly-module-0, anonymous-ly-module-1, etc, so it
was easy to change to the appropriate module, but that is not the case
anymore: the modules used by input files are not named.
nicolas
- Debugging/showing internal stuff?, David Kastrup, 2009/03/08
- Re: Debugging/showing internal stuff?, Valentin Villenave, 2009/03/09
- Re: Debugging/showing internal stuff?, David Kastrup, 2009/03/10
- Re: Debugging/showing internal stuff?,
Nicolas Sceaux <=
- Re: Debugging/showing internal stuff?, Carl Sorensen, 2009/03/13
- Re: Debugging/showing internal stuff?, Ian Hulin, 2009/03/13
- Re: Debugging/showing internal stuff?, Nicolas Sceaux, 2009/03/13
- Re: Debugging/showing internal stuff?, David Kastrup, 2009/03/15
- Re: Debugging/showing internal stuff?, Carl Sorensen, 2009/03/26