Author: bernhard
Date: Wed Apr 25 12:57:01 2007
New Revision: 18337
Modified:
trunk/languages/dotnet/src/builtins.pir
trunk/languages/plumhead/lex.yy.c (props changed)
trunk/languages/plumhead/src/yacc/plumhead.l (contents, props changed)
trunk/languages/plumhead/src/yacc/plumhead.y (contents, props changed)
trunk/languages/plumhead/y.tab.c (props changed)
trunk/languages/plumhead/y.tab.h (props changed)
trunk/lib/Parrot/Distribution.pm
Log:
[Plumhead yacc]
Satisfy coding standard tests.
Modified: trunk/languages/dotnet/src/builtins.pir
==============================================================================
--- trunk/languages/dotnet/src/builtins.pir (original)
+++ trunk/languages/dotnet/src/builtins.pir Wed Apr 25 12:57:01 2007
@@ -60,9 +60,3 @@
END:
.return(body)
.end
-
-# Local Variables:
-# mode: pir
-# fill-column: 100
-# End:
-# vim: expandtab shiftwidth=4:
Modified: trunk/languages/plumhead/src/yacc/plumhead.l
==============================================================================
--- trunk/languages/plumhead/src/yacc/plumhead.l (original)
+++ trunk/languages/plumhead/src/yacc/plumhead.l Wed Apr 25 12:57:01 2007
@@ -8,3 +8,10 @@
. /* eat up everything else */
%%
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Modified: trunk/languages/plumhead/src/yacc/plumhead.y
==============================================================================
--- trunk/languages/plumhead/src/yacc/plumhead.y (original)
+++ trunk/languages/plumhead/src/yacc/plumhead.y Wed Apr 25 12:57:01 2007
@@ -1,7 +1,7 @@
%{
#include <stdio.h>
#include <string.h>
-
+
int main (void)
{
@@ -12,12 +12,12 @@
{
fprintf(stderr,"error: %s\n",str);
}
-
+
int yywrap(void)
{
return 1;
-}
-
+}
+
%}
%start program
@@ -26,8 +26,8 @@
%%
-program : HELLO
- {
+program : HELLO
+ {
printf( "#!/usr/bin/env parrot
\n" );
printf( "
\n" );
printf( "# Do not edit this file.
\n" );
@@ -125,3 +125,10 @@
;
%%
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Modified: trunk/lib/Parrot/Distribution.pm
==============================================================================
--- trunk/lib/Parrot/Distribution.pm (original)
+++ trunk/lib/Parrot/Distribution.pm Wed Apr 25 12:57:01 2007
@@ -349,6 +349,9 @@
languages/cola/lexer.c
languages/cola/parser.c
languages/cola/parser.h
+ languages/plumhead/lex.yy.c
+ languages/plumhead/y.tab.c
+ languages/plumhead/y.tab.h
} unless @exemptions;
$file->path =~ /\Q$_\E$/ && return 1 for @exemptions;