Author: leo
Date: Tue Oct 11 06:33:33 2005
New Revision: 9450

Modified:
   trunk/classes/sub.pmc
   trunk/compilers/pge/PGE.pir
   trunk/editor/imc.vim.in
   trunk/editor/pir-mode.el
Log:
[PATCH] @directive -> :directive - part 4 editor, compiles, classes

Courtesy of Jonathan Scott Duff <[EMAIL PROTECTED]>


Modified: trunk/classes/sub.pmc
==============================================================================
--- trunk/classes/sub.pmc       (original)
+++ trunk/classes/sub.pmc       Tue Oct 11 06:33:33 2005
@@ -84,10 +84,10 @@ Initializes the subroutine.
      * - private1 ... Fixup is done
      * - private2 ... tailcall invoked this Sub
      * - private3 ... pythonic coroutine generator flag
-     * - private4 ... @MAIN
-     * - private5 ... @LOAD
-     * - private6 ... @IMMEDIATE
-     * - private7 ... @POSTCOMP
+     * - private4 ... :main (nee @MAIN)
+     * - private5 ... :load (nee @LOAD)
+     * - private6 ... :immediate (nee @IMMEDIATE)
+     * - private7 ... :postcomp (nee @POSTCOMP)
      *
      * see also the enum in include/parrot/sub.h
      *
@@ -465,7 +465,7 @@ Archives the subroutine.
          * - start offset in byte-code segment
          * - end   offset in byte-code segment
          * - segment TODO ???
-         * - flags  (i.e. @LOAD pragma and such)
+         * - flags  (i.e. :load pragma and such)
          * - name of the sub's label
          * - name_space
          * - HLL_id

Modified: trunk/compilers/pge/PGE.pir
==============================================================================
--- trunk/compilers/pge/PGE.pir (original)
+++ trunk/compilers/pge/PGE.pir Tue Oct 11 06:33:33 2005
@@ -8,14 +8,14 @@ This is the base file for the grammar en
 (via .include) each of the separate PGE modules into a single compilation
 unit, and then calls the "__onload" subroutines for each.  We do
 this because as of this writing (2005-May-03) the semantics of
-multiple @LOAD pragmas in a single compilation unit aren't well
+multiple :load pragmas in a single compilation unit aren't well
 defined.
 
 =cut
 
 .namespace [ "PGE" ]
 
-.sub "__onload" @LOAD
+.sub "__onload" :load
     .local pmc load
     load_bytecode "Data/Escape.pbc"
     load = find_global "PGE::TokenHash", "__onload"

Modified: trunk/editor/imc.vim.in
==============================================================================
--- trunk/editor/imc.vim.in     (original)
+++ trunk/editor/imc.vim.in     Tue Oct 11 06:33:33 2005
@@ -36,7 +36,7 @@ syn match imcDirective      /\.\(param\|
 syn match imcDirective      /\.\(include|pcc_begin|pcc_end\)/
 syn match imcDirective      /\.\(pcc_begin_return|pcc_end_return\)/
 syn match imcDirective      /\.\(pcc_begin_yield|pcc_end_yield\)/
-syn keyword imcDirective    non_prototyped prototyped @LOAD @MAIN
+syn keyword imcDirective    non_prototyped prototyped :load @MAIN
 
 " imcWord before imcRegister
 " FIXME :: in identifiers and labels

Modified: trunk/editor/pir-mode.el
==============================================================================
--- trunk/editor/pir-mode.el    (original)
+++ trunk/editor/pir-mode.el    Tue Oct 11 06:33:33 2005
@@ -218,7 +218,7 @@ newline or semicolon after an end keywor
 (defvar pir-dollar-register-regexp "\\$[INPS][0-9]+")
 
 (defvar pir-directives
-  '("method" "non_prototyped" "prototyped" "@LOAD" "@MAIN"))
+  '("method" "non_prototyped" "prototyped" ":load" "@MAIN"))
 
 (defvar pir-dotted-directives
   '(".sub" ".pcc_sub" ".end" ".emit" ".eom" ".const" ".namespace"

Reply via email to