diff options
author | Mark H Weaver <mhw@netris.org> | 2012-02-08 15:51:38 -0500 |
---|---|---|
committer | Mark H Weaver <mhw@netris.org> | 2012-02-08 16:27:41 -0500 |
commit | b131b233ff9530546ca7afbb4daa682b65015e8b (patch) | |
tree | 1d9bc09044b12e128881519c1976c7366b26770a /doc/ref/api-debug.texi | |
parent | 043850d984c184a1e642a60a38723e63bf3be73a (diff) | |
download | guile-b131b233ff9530546ca7afbb4daa682b65015e8b.tar.gz |
Add source properties to many more types of data
* libguile/read.c (scm_read_array): New internal helper that
calls scm_i_read_array and sets its source property if the
'positions' reader option is set.
(scm_read_string): Set source properties on strings if the 'positions'
reader option is set.
(scm_read_vector, scm_read_srfi4_vector, scm_read_bytevector,
scm_read_guile_bitvector, scm_read_sharp): Add new arguments for the
'line' and 'column' of the first character of the datum being read.
Set source properties if the 'positions' reader option is set.
(scm_read_expression): Pass 'line' and 'column' to scm_read_sharp.
* doc/ref/api-debug.texi (Source Properties): Update manual.
Diffstat (limited to 'doc/ref/api-debug.texi')
-rw-r--r-- | doc/ref/api-debug.texi | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/ref/api-debug.texi b/doc/ref/api-debug.texi index cf9ea5aca..c5fbe5629 100644 --- a/doc/ref/api-debug.texi +++ b/doc/ref/api-debug.texi @@ -238,11 +238,11 @@ that, if an error occurs when evaluating the transformed expression, Guile's debugger can point back to the file and location where the expression originated. -The way that source properties are stored means that Guile can only -associate source properties with parenthesized expressions, and not, for -example, with individual symbols, numbers or strings. The difference -can be seen by typing @code{(xxx)} and @code{xxx} at the Guile prompt -(where the variable @code{xxx} has not been defined): +The way that source properties are stored means that Guile cannot +associate source properties with individual numbers, symbols, +characters, booleans, or keywords. This can be seen by typing +@code{(xxx)} and @code{xxx} at the Guile prompt (where the variable +@code{xxx} has not been defined): @example scheme@@(guile-user)> (xxx) @@ -288,8 +288,8 @@ Return the property specified by @var{key} from @var{obj}'s source properties. @end deffn -If the @code{positions} reader option is enabled, each parenthesized -expression will have values set for the @code{filename}, @code{line} and +If the @code{positions} reader option is enabled, supported expressions +will have values set for the @code{filename}, @code{line} and @code{column} properties. Source properties are also associated with syntax objects. Procedural |