develooper Front page | perl.cvs.parrot | Postings from January 2009

[svn:parrot] r35026 - branches/bcanno/docs/pdds

From:
jonathan
Date:
January 6, 2009 05:16
Subject:
[svn:parrot] r35026 - branches/bcanno/docs/pdds
Message ID:
20090106131637.89AA7CB9F9@x12.develooper.com
Author: jonathan
Date: Tue Jan  6 05:16:36 2009
New Revision: 35026

Modified:
   branches/bcanno/docs/pdds/pdd19_pir.pod

Log:
[pdd] .annotate should have a comma to match other directives, e.g. .lex. Suggested by kj++.

Modified: branches/bcanno/docs/pdds/pdd19_pir.pod
==============================================================================
--- branches/bcanno/docs/pdds/pdd19_pir.pod	(original)
+++ branches/bcanno/docs/pdds/pdd19_pir.pod	Tue Jan  6 05:16:36 2009
@@ -359,14 +359,14 @@
 the PIR code is generated from some source PIR files, and error messages
 should print the source file's name, not the name of the generated file.
 
-=item .annotate <key> <value>
+=item .annotate <key>, <value>
 
 Makes an entry in the bytecode annotations table. This is used to store high
 level language debug information. Examples:
 
-  .annotate "file" "aardvark.p6"
-  .annotate "line" 5
-  .annotate "column" 24
+  .annotate "file", "aardvark.p6"
+  .annotate "line", 5
+  .annotate "column", 24
 
 An annotation stays in effect until the next annotation with the same key or
 the end of the current compilation unit (that is, if you use a tool such as
@@ -377,13 +377,13 @@
 line of HLL code is 15 lines of PIR, you only need to emit one annotation
 before the first of those 15 lines to set the line number.
 
-  .annotate "line" 42
+  .annotate "line", 42
 
 The key must always be a quoted string. The value may be an integer, a number
 or a quoted string. Note that integer values are stored most compactly; should
 you instead of the above annotate directive emit:
 
-  .annotate "line" "42"
+  .annotate "line", "42"
 
 Then you're asking for a bigger bytecode file as a result.
 



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About