Index: head/devel/bison/Makefile =================================================================== --- head/devel/bison/Makefile (revision 229565) +++ head/devel/bison/Makefile (revision 229566) @@ -1,62 +1,62 @@ # Ports collection makefile for: bison # Date created: 27 Mar 1999 # Whom: Jerry Hicks # # $FreeBSD$ # PORTNAME= bison -PORTVERSION= 2.3 -PORTREVISION= 4 +PORTVERSION= 2.4.1 PORTEPOCH= 1 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_GNU} MASTER_SITE_SUBDIR= ${PORTNAME} -MAINTAINER= ade@FreeBSD.org +MAINTAINER= johans@stack.nl COMMENT= A parser generator from FSF, (mostly) compatible with Yacc BUILD_DEPENDS= gm4:${PORTSDIR}/devel/m4 RUN_DEPENDS= gm4:${PORTSDIR}/devel/m4 USE_BZIP2= yes GNU_CONFIGURE= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" MAN1= bison.1 INFO= bison CONFIGURE_ARGS+=--disable-yacc .if defined(WITHOUT_NLS) CONFIGURE_ARGS+=--disable-nls PLIST_SUB+= NLS="@comment " .else USE_GETTEXT= yes PLIST_SUB+= NLS="" .endif .ifdef USE_BISON .error You have `USE_BISON' variable defined either in environment or in make(1) arguments. Please undefine and try again. .endif .include post-extract: @${RM} -f ${WRKSRC}/doc/bison.info* + @${REINPLACE_CMD} 's/MANS = yacc.1/MANS =/' ${WRKSRC}/doc/Makefile.in # # Requires texinfo 4.8 or above # .if ${OSVERSION} < 601000 @${REINPLACE_CMD} "/^@headitem/d" ${WRKSRC}/doc/bison.texinfo .endif .if !defined(NOPORTDOCS) post-install: ${MKDIR} ${EXAMPLESDIR}/calc++ ${INSTALL_DATA} ${WRKSRC}/examples/calc++/*.[chly]* \ ${EXAMPLESDIR}/calc++ .endif .include Property changes on: head/devel/bison/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.58 \ No newline at end of property +1.59 \ No newline at end of property Index: head/devel/bison/distinfo =================================================================== --- head/devel/bison/distinfo (revision 229565) +++ head/devel/bison/distinfo (revision 229566) @@ -1,3 +1,3 @@ -MD5 (bison-2.3.tar.bz2) = c18640c6ec31a169d351e3117ecce3ec -SHA256 (bison-2.3.tar.bz2) = b10d7e9e354be72aee4e4911cf19dd27b5c527d4e7200857365b5fcdeea0dffb -SIZE (bison-2.3.tar.bz2) = 1080319 +MD5 (bison-2.4.1.tar.bz2) = 84e80a2a192c1a4c02d43fbf2bcc4ca4 +SHA256 (bison-2.4.1.tar.bz2) = 2354469782149e36c644ae7c3e5105895424ed21cda5c05b591cb3dc17068e6b +SIZE (bison-2.4.1.tar.bz2) = 1467784 Property changes on: head/devel/bison/distinfo ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.18 \ No newline at end of property +1.19 \ No newline at end of property Index: head/devel/bison/pkg-plist =================================================================== --- head/devel/bison/pkg-plist (revision 229565) +++ head/devel/bison/pkg-plist (revision 229566) @@ -1,72 +1,92 @@ bin/bison share/aclocal/bison-i18n.m4 %%DATADIR%%/README +%%DATADIR%%/bison.m4 +%%DATADIR%%/c++-skel.m4 %%DATADIR%%/c++.m4 +%%DATADIR%%/c-skel.m4 %%DATADIR%%/c.m4 %%DATADIR%%/glr.c %%DATADIR%%/glr.cc +%%DATADIR%%/java-skel.m4 +%%DATADIR%%/java.m4 %%DATADIR%%/lalr1.cc +%%DATADIR%%/lalr1.java %%DATADIR%%/location.cc +%%DATADIR%%/m4sugar/foreach.m4 %%DATADIR%%/m4sugar/m4sugar.m4 +%%DATADIR%%/xslt/bison.xsl +%%DATADIR%%/xslt/xml2dot.xsl +%%DATADIR%%/xslt/xml2text.xsl +%%DATADIR%%/xslt/xml2xhtml.xsl %%DATADIR%%/yacc.c %%PORTDOCS%%%%EXAMPLESDIR%%/calc++/calc++-driver.cc %%PORTDOCS%%%%EXAMPLESDIR%%/calc++/calc++-driver.hh %%PORTDOCS%%%%EXAMPLESDIR%%/calc++/calc++-parser.cc %%PORTDOCS%%%%EXAMPLESDIR%%/calc++/calc++-parser.hh %%PORTDOCS%%%%EXAMPLESDIR%%/calc++/calc++-parser.yy %%PORTDOCS%%%%EXAMPLESDIR%%/calc++/calc++-scanner.cc %%PORTDOCS%%%%EXAMPLESDIR%%/calc++/calc++-scanner.ll %%PORTDOCS%%%%EXAMPLESDIR%%/calc++/calc++.cc %%PORTDOCS%%%%EXAMPLESDIR%%/calc++/location.hh %%PORTDOCS%%%%EXAMPLESDIR%%/calc++/position.hh %%PORTDOCS%%%%EXAMPLESDIR%%/calc++/stack.hh %%NLS%%share/locale/da/LC_MESSAGES/bison-runtime.mo %%NLS%%share/locale/da/LC_MESSAGES/bison.mo %%NLS%%share/locale/de/LC_MESSAGES/bison-runtime.mo %%NLS%%share/locale/de/LC_MESSAGES/bison.mo +%%NLS%%share/locale/el/LC_MESSAGES/bison-runtime.mo +%%NLS%%share/locale/el/LC_MESSAGES/bison.mo %%NLS%%share/locale/es/LC_MESSAGES/bison-runtime.mo %%NLS%%share/locale/es/LC_MESSAGES/bison.mo %%NLS%%share/locale/et/LC_MESSAGES/bison-runtime.mo %%NLS%%share/locale/et/LC_MESSAGES/bison.mo +%%NLS%%share/locale/fi/LC_MESSAGES/bison-runtime.mo %%NLS%%share/locale/fr/LC_MESSAGES/bison-runtime.mo %%NLS%%share/locale/fr/LC_MESSAGES/bison.mo %%NLS%%share/locale/ga/LC_MESSAGES/bison-runtime.mo %%NLS%%share/locale/ga/LC_MESSAGES/bison.mo %%NLS%%share/locale/hr/LC_MESSAGES/bison-runtime.mo %%NLS%%share/locale/hr/LC_MESSAGES/bison.mo %%NLS%%share/locale/id/LC_MESSAGES/bison-runtime.mo %%NLS%%share/locale/id/LC_MESSAGES/bison.mo %%NLS%%share/locale/it/LC_MESSAGES/bison-runtime.mo %%NLS%%share/locale/it/LC_MESSAGES/bison.mo %%NLS%%share/locale/ja/LC_MESSAGES/bison-runtime.mo %%NLS%%share/locale/ja/LC_MESSAGES/bison.mo +%%NLS%%share/locale/ky/LC_MESSAGES/bison-runtime.mo +%%NLS%%share/locale/lt/LC_MESSAGES/bison-runtime.mo %%NLS%%share/locale/ms/LC_MESSAGES/bison-runtime.mo %%NLS%%share/locale/ms/LC_MESSAGES/bison.mo %%NLS%%share/locale/nb/LC_MESSAGES/bison-runtime.mo %%NLS%%share/locale/nb/LC_MESSAGES/bison.mo %%NLS%%share/locale/nl/LC_MESSAGES/bison-runtime.mo %%NLS%%share/locale/nl/LC_MESSAGES/bison.mo %%NLS%%share/locale/pl/LC_MESSAGES/bison-runtime.mo %%NLS%%share/locale/pl/LC_MESSAGES/bison.mo %%NLS%%share/locale/pt_BR/LC_MESSAGES/bison-runtime.mo %%NLS%%share/locale/pt_BR/LC_MESSAGES/bison.mo %%NLS%%share/locale/ro/LC_MESSAGES/bison-runtime.mo %%NLS%%share/locale/ro/LC_MESSAGES/bison.mo %%NLS%%share/locale/ru/LC_MESSAGES/bison-runtime.mo %%NLS%%share/locale/ru/LC_MESSAGES/bison.mo -%%NLS%%share/locale/rw/LC_MESSAGES/bison-runtime.mo -%%NLS%%share/locale/rw/LC_MESSAGES/bison.mo %%NLS%%share/locale/sl/LC_MESSAGES/bison-runtime.mo %%NLS%%share/locale/sv/LC_MESSAGES/bison-runtime.mo %%NLS%%share/locale/sv/LC_MESSAGES/bison.mo +%%NLS%%share/locale/th/LC_MESSAGES/bison-runtime.mo %%NLS%%share/locale/tr/LC_MESSAGES/bison-runtime.mo %%NLS%%share/locale/tr/LC_MESSAGES/bison.mo +%%NLS%%share/locale/uk/LC_MESSAGES/bison-runtime.mo +%%NLS%%share/locale/uk/LC_MESSAGES/bison.mo %%NLS%%share/locale/vi/LC_MESSAGES/bison-runtime.mo %%NLS%%share/locale/vi/LC_MESSAGES/bison.mo +%%NLS%%share/locale/zh_CN/LC_MESSAGES/bison-runtime.mo %%NLS%%share/locale/zh_TW/LC_MESSAGES/bison-runtime.mo -%%NLS%%@dirrmtry share/locale/rw/LC_MESSAGES -%%NLS%%@dirrmtry share/locale/rw -%%PORTDOCS%%@dirrmtry %%EXAMPLESDIR%%/calc++ -%%PORTDOCS%%@dirrmtry %%EXAMPLESDIR%% -@dirrmtry %%DATADIR%%/m4sugar -@dirrmtry %%DATADIR%% +%%NLS%%share/locale/zh_TW/LC_MESSAGES/bison.mo +%%NLS%%@dirrmtry share/locale/ky/LC_MESSAGES +%%NLS%%@dirrmtry share/locale/ky +%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/calc++ +%%PORTDOCS%%@dirrm %%EXAMPLESDIR%% +@dirrm %%DATADIR%%/m4sugar +@dirrm %%DATADIR%%/xslt +@dirrm %%DATADIR%% Property changes on: head/devel/bison/pkg-plist ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.21 \ No newline at end of property +1.22 \ No newline at end of property Index: head/graphics/flasm/files/patch-assembler.y =================================================================== --- head/graphics/flasm/files/patch-assembler.y (nonexistent) +++ head/graphics/flasm/files/patch-assembler.y (revision 229566) @@ -0,0 +1,257 @@ +http://sourceforge.net/tracker/index.php?func=detail&aid=2615264&group_id=33473&atid=408391 +diff -up assembler.y.midrule assembler.y +--- assembler.y.midrule 2008-12-20 22:44:50.000000000 +0100 ++++ assembler.y 2008-12-20 22:54:03.000000000 +0100 +@@ -605,24 +605,24 @@ finally_opt + + trycatchfinally + : TRY name_opt { +- $$ = writeByte(SWFACTION_TRY); ++ $$ = writeByte(SWFACTION_TRY); + /* action length */ +- $$ += writeShort(strlen($2)+8); ++ $$ += writeShort(strlen($2)+8); + /* zero flag */ +- $$ += writeByte(0); ++ $$ += writeByte(0); + /* zero try length */ +- $$ += writeShort(0); ++ $$ += writeShort(0); + /* zero catch length */ +- $$ += writeShort(0); ++ $$ += writeShort(0); + /* zero finally length */ +- $$ += writeShort(0); ++ $$ += writeShort(0); + /* error variable name */ +- $$ += writeString($2); ++ $$ += writeString($2); + } + +- statements_opt { $$ = $3 + $4; patchLength($$ - 6, $4); } +- catch_opt { $$ = $5 + $6; patchLength($$ - 8, $6); } +- finally_opt { $$ = $7 + $8; patchLength($$ - 10, $8); } ++ statements_opt { $$ = $3 + $4; patchLength($$ - 6, $4); } ++ catch_opt { $$ = $5 + $6; patchLength($$ - 8, $6); } ++ finally_opt { $$ = $7 + $8; patchLength($$ - 10, $8); } + END { + byte flag = 0; + $$ = $9; +@@ -634,24 +634,24 @@ trycatchfinally + } + + | TRY register { +- $$ = writeByte(SWFACTION_TRY); ++ $$ = writeByte(SWFACTION_TRY); + /* action length */ +- $$ += writeShort(8); ++ $$ += writeShort(8); + /* zero flag */ +- $$ += writeByte(0); ++ $$ += writeByte(0); + /* zero try length */ +- $$ += writeShort(0); ++ $$ += writeShort(0); + /* zero catch length */ +- $$ += writeShort(0); ++ $$ += writeShort(0); + /* zero finally length */ +- $$ += writeShort(0); ++ $$ += writeShort(0); + /* error register number */ +- $$ += writeByte((byte) $2); ++ $$ += writeByte((byte) $2); + } + +- statements_opt { $$ = $3 + $4; patchLength($$ - 6, $4); } +- catch_opt { $$ = $5 + $6; patchLength($$ - 8, $6); } +- finally_opt { $$ = $7 + $8; patchLength($$ - 10, $8); } ++ statements_opt { $$ = $3 + $4; patchLength($$ - 6, $4); } ++ catch_opt { $$ = $5 + $6; patchLength($$ - 8, $6); } ++ finally_opt { $$ = $7 + $8; patchLength($$ - 10, $8); } + END { + byte flag = 4; + $$ = $9; +@@ -707,25 +707,25 @@ name_opt + + function + : FUNCTION name_opt { +- $$ = writeByte(SWFACTION_DEFINEFUNCTION); ++ $$ = writeByte(SWFACTION_DEFINEFUNCTION); + /* zero block length */ +- $$ += writeShort(0); +- $$ += writeString($2); ++ $$ += writeShort(0); ++ $$ += writeString($2); + } + + '(' function_args ')' { + unsigned int i; + numArgs = $5; + +- $$ = $3 + writeShort(numArgs); ++ $$ = $3 + writeShort(numArgs); + + for(i = 0; i < numArgs; ++i) +- $$ += writeString(func_args[i]); ++ $$ += writeString(func_args[i]); + + /* zero function length */ +- $$ += writeShort(0); ++ $$ += writeShort(0); + /* patch block length */ +- patchLength($$-3, $$-3); ++ patchLength($$-3, $$-3); + } + + statements_opt END { +@@ -837,25 +837,25 @@ autoregarglist + + function2 + : FUNCTION2 name_opt { +- $$ = writeByte(SWFACTION_DEFINEFUNCTION2); ++ $$ = writeByte(SWFACTION_DEFINEFUNCTION2); + /* zero block length */ +- $$ += writeShort(0); ++ $$ += writeShort(0); + /* function name */ +- $$ += writeString($2); ++ $$ += writeString($2); + curFunc++; + memset(regfunc_args[curFunc], 0, sizeof (regfunc_args[curFunc])); + numArgs = 0; + /* zero num of function arguments */ +- $$ += writeShort(numArgs); ++ $$ += writeShort(numArgs); + /* allocate zero registers */ + numRegisters[curFunc] = 0; +- $$ += writeByte(numRegisters[curFunc]); ++ $$ += writeByte(numRegisters[curFunc]); + /* zero automatic register flags */ +- $$ += writeShort(0); ++ $$ += writeShort(0); + } + + '(' regarglist ')' { +- $$ = $3 + $5; ++ $$ = $3 + $5; + /* patch num of function arguments */ + patchLength($5 + 3, numArgs); + autoregFlags = 0; +@@ -866,9 +866,9 @@ function2 + byte curautoreg = 1; + unsigned int i; + +- $$ = $7; ++ $$ = $7; + /* zero body length */ +- $$ += writeShort(0); ++ $$ += writeShort(0); + + /* make sure auto registers are allocated in the right order */ + for (i = 0; i < MAX_AUTO_REGS; i++) { +@@ -883,9 +883,9 @@ function2 + } + + /* patch automatic register flags */ +- patchLength($$ - $3, autoregFlags); ++ patchLength($$ - $3, autoregFlags); + /* patch block length */ +- patchLength($$ - 3, $$ - 3); ++ patchLength($$ - 3, $$ - 3); + } + + statements_opt END { +@@ -905,11 +905,11 @@ function2 + + with + : WITH { +- $$ = writeByte(SWFACTION_WITH); ++ $$ = writeByte(SWFACTION_WITH); + /* length of with action */ +- $$ += writeShort(2); ++ $$ += writeShort(2); + /* length of with block - will be patched */ +- $$ += writeShort(0); ++ $$ += writeShort(0); + } + + statements_opt END { +@@ -921,9 +921,9 @@ with + + settarget + : SETTARGET STRING { +- $$ = writeByte(SWFACTION_SETTARGET); +- $$ += writeShort(strlen($2)+1); +- $$ += writeString($2); ++ $$ = writeByte(SWFACTION_SETTARGET); ++ $$ += writeShort(strlen($2)+1); ++ $$ += writeString($2); + } + + statements_opt END { +@@ -934,7 +934,7 @@ settarget + ; + + settargetexpression +- : SETTARGETEXPR { $$ = writeByte(SWFACTION_SETTARGETEXPRESSION); } ++ : SETTARGETEXPR { $$ = writeByte(SWFACTION_SETTARGETEXPRESSION); } + statements_opt END { + $$ = $3 + writeByte(SWFACTION_SETTARGET); + $$ += $2 + writeShort(1); +@@ -946,9 +946,9 @@ ifframeloadedexpression + : IFFRAMELOADEDEXPR { + if (frameloadedStart>-1) + yyerror("IfFrameLoaded actions can't be nested"); +- $$ = writeByte(SWFACTION_IFFRAMELOADEDEXPRESSION); +- $$ += writeShort(1); +- $$ += writeByte(0); ++ $$ = writeByte(SWFACTION_IFFRAMELOADEDEXPRESSION); ++ $$ += writeShort(1); ++ $$ += writeByte(0); + frameloadedStart = numActions; + } + +@@ -963,10 +963,10 @@ ifframeloaded + : IFFRAMELOADED INTEGER { + if (frameloadedStart>-1) + yyerror("IfFrameLoaded actions can't be nested"); +- $$ = writeByte(SWFACTION_IFFRAMELOADED); +- $$ += writeShort(3); +- $$ += writeShort($2); +- $$ += writeByte(0); ++ $$ = writeByte(SWFACTION_IFFRAMELOADED); ++ $$ += writeShort(3); ++ $$ += writeShort($2); ++ $$ += writeByte(0); + frameloadedStart = numActions; + } + +@@ -1199,9 +1199,9 @@ opcode + constant_list_opt { $$ = writeConstants(); } + + | PUSH { +- $$ = writeByte(SWFACTION_PUSHDATA); ++ $$ = writeByte(SWFACTION_PUSHDATA); + /* length */ +- $$ += writeShort(0); ++ $$ += writeShort(0); + } + + push_list { +@@ -1212,10 +1212,10 @@ opcode + | SWFACTION HEX { + if (xtoi($2)>0xff) + yyerror("Action code out of range"); +- $$ = writeByte((char)xtoi($2)); ++ $$ = writeByte((char)xtoi($2)); + if (xtoi($2)>=0x80) + /* length */ +- $$ += writeShort(0); ++ $$ += writeShort(0); + } + + hexlist_opt { + + + Property changes on: head/graphics/flasm/files/patch-assembler.y ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.4 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/graphics/ming/files/patch-src_actioncompiler_swf5compiler.y =================================================================== --- head/graphics/ming/files/patch-src_actioncompiler_swf5compiler.y (nonexistent) +++ head/graphics/ming/files/patch-src_actioncompiler_swf5compiler.y (revision 229566) @@ -0,0 +1,23 @@ +--- src/actioncompiler/swf5compiler.y.orig 2006-02-08 23:48:38.000000000 +0100 ++++ src/actioncompiler/swf5compiler.y 2009-03-06 11:32:10.000000000 +0100 +@@ -1795,7 +1795,7 @@ opcode_list + + with + : WITH +- { $$ = bufferWriteOp(asmBuffer, ++ { $$ = bufferWriteOp(asmBuffer, + SWFACTION_WITH); } + opcode_list END { $$ = $2 + $3; + bufferPatchLength(asmBuffer, $3); } +@@ -1828,9 +1828,9 @@ push_list + ; + + opcode +- : PUSH { $$ = bufferWriteOp(asmBuffer, ++ : PUSH { $$ = bufferWriteOp(asmBuffer, + SWFACTION_PUSH); +- $$ += bufferWriteS16(asmBuffer, 0); } ++ $$ += bufferWriteS16(asmBuffer, 0); } + push_list { $$ = $2 + $3; + bufferPatchLength(asmBuffer, $3); } + Property changes on: head/graphics/ming/files/patch-src_actioncompiler_swf5compiler.y ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/japanese/ming/files/patch-src_actioncompiler_swf5compiler.y =================================================================== --- head/japanese/ming/files/patch-src_actioncompiler_swf5compiler.y (revision 229565) +++ head/japanese/ming/files/patch-src_actioncompiler_swf5compiler.y (revision 229566) @@ -1,96 +1,32 @@ ---- actioncompiler/swf5compiler.y.orig Mon Dec 2 11:13:11 2002 -+++ actioncompiler/swf5compiler.y Mon Dec 2 11:18:08 2002 -@@ -37,23 +37,23 @@ +--- actioncompiler/swf5compiler.y.orig 2009-03-06 11:34:48.000000000 +0100 ++++ actioncompiler/swf5compiler.y 2009-03-06 11:37:13.000000000 +0100 +@@ -239,7 +239,7 @@ expr_opt - /* tokens etc. */ + switch_stmt + : SWITCH '(' expr ')' '{' +- { $$ = $3; } ++ { $$ = $3; } + switch_cases '}' + { bufferConcat($$, $7); + bufferResolveJumps($$); +@@ -1422,7 +1422,7 @@ opcode_list --%token BREAK, CONTINUE, FUNCTION, ELSE, SWITCH, CASE, FOR, IN, IF, WHILE, -- DO, VAR, NEW, DELETE, RETURN, END, WITH, ASM, EVAL -+%token BREAK CONTINUE FUNCTION ELSE SWITCH CASE FOR IN IF WHILE -+ DO VAR NEW DELETE RETURN END WITH ASM EVAL + with + : WITH +- { $$ = bufferWriteOp(asmBuffer, ++ { $$ = bufferWriteOp(asmBuffer, + SWFACTION_WITH); } + opcode_list END { $$ = $2 + $3; + bufferPatchLength(asmBuffer, $3); } +@@ -1455,9 +1455,9 @@ push_list + ; --%token RANDOM, GETTIMER, LENGTH, CONCAT, SUBSTR, TRACE, INT, ORD, CHR, GETURL, -- GETURL1, NEXTFRAME, PREVFRAME, PLAY, STOP, TOGGLEQUALITY, STOPSOUNDS -+%token RANDOM GETTIMER LENGTH CONCAT SUBSTR TRACE INT ORD CHR GETURL -+ GETURL1 NEXTFRAME PREVFRAME PLAY STOP TOGGLEQUALITY STOPSOUNDS + opcode +- : PUSH { $$ = bufferWriteOp(asmBuffer, ++ : PUSH { $$ = bufferWriteOp(asmBuffer, + SWFACTION_PUSHDATA); +- $$ += bufferWriteS16(asmBuffer, 0); } ++ $$ += bufferWriteS16(asmBuffer, 0); } + push_list { $$ = $2 + $3; + bufferPatchLength(asmBuffer, $3); } --%token DUP, SWAP, POP, PUSH, SETREGISTER, CALLFUNCTION, CALLMETHOD, -- AND, OR, XOR, MODULO, ADD, LESSTHAN, EQUALS, -- INC, DEC, TYPEOF, ENUMERATE, INITOBJECT, INITARRAY, GETMEMBER, -- SETMEMBER, SHIFTLEFT, SHIFTRIGHT, SHIFTRIGHT2, VAREQUALS, OLDADD, SUBTRACT, -- MULTIPLY, DIVIDE, OLDEQUALS, OLDLESSTHAN, LOGICALAND, LOGICALOR, NOT, -- STRINGEQ, STRINGLENGTH, SUBSTRING, GETVARIABLE, SETVARIABLE, -- SETTARGETEXPRESSION, DUPLICATEMOVIECLIP, REMOVEMOVIECLIP, -- STRINGLESSTHAN, MBLENGTH, MBSUBSTRING, MBORD, MBCHR, -- BRANCHALWAYS, BRANCHIFTRUE, GETURL2, POST, GET, -- LOADVARIABLES, LOADMOVIE, LOADVARIABLESNUM, LOADMOVIENUM, -- CALLFRAME, STARTDRAG, STOPDRAG, GOTOFRAME, SETTARGET -+%token DUP SWAP POP PUSH SETREGISTER CALLFUNCTION CALLMETHOD -+ AND OR XOR MODULO ADD LESSTHAN EQUALS -+ INC DEC TYPEOF ENUMERATE INITOBJECT INITARRAY GETMEMBER -+ SETMEMBER SHIFTLEFT SHIFTRIGHT SHIFTRIGHT2 VAREQUALS OLDADD SUBTRACT -+ MULTIPLY DIVIDE OLDEQUALS OLDLESSTHAN LOGICALAND LOGICALOR NOT -+ STRINGEQ STRINGLENGTH SUBSTRING GETVARIABLE SETVARIABLE -+ SETTARGETEXPRESSION DUPLICATEMOVIECLIP REMOVEMOVIECLIP -+ STRINGLESSTHAN MBLENGTH MBSUBSTRING MBORD MBCHR -+ BRANCHALWAYS BRANCHIFTRUE GETURL2 POST GET -+ LOADVARIABLES LOADMOVIE LOADVARIABLESNUM LOADMOVIENUM -+ CALLFRAME STARTDRAG STOPDRAG GOTOFRAME SETTARGET - - %token NULLVAL - %token INTEGER -@@ -106,26 +106,26 @@ - %left '.' '[' ']' - - --%type program, code --%type stmt, stmts --%type if_stmt, iter_stmt, cont_stmt, break_stmt, return_stmt -+%type program code -+%type stmt stmts -+%type if_stmt iter_stmt cont_stmt break_stmt return_stmt - %type with_stmt --%type switch_stmt, switch_cases, switch_case --%type anon_function_decl, function_decl, anycode --%type void_function_call, function_call, method_call --%type assign_stmt, assign_stmts, assign_stmts_opt --%type expr, expr_or_obj, objexpr, expr_opt, obj_ref --%type emptybraces, level, init_vars, init_var, primary, lvalue_expr -+%type switch_stmt switch_cases switch_case -+%type anon_function_decl function_decl anycode -+%type void_function_call function_call method_call -+%type assign_stmt assign_stmts assign_stmts_opt -+%type expr expr_or_obj objexpr expr_opt obj_ref -+%type emptybraces level init_vars init_var primary lvalue_expr - %type lvalue - --%type expr_list, objexpr_list, formals_list -+%type expr_list objexpr_list formals_list - --%type assignop, incdecop -+%type assignop incdecop - %type urlmethod - - %type identifier - --%type opcode, opcode_list, push_item, with, push_list -+%type opcode opcode_list push_item with push_list - - /* - %type integer -@@ -144,6 +144,7 @@ - bufferConcat(b, bf); - bufferConcat(b, bc); - *((Buffer *)buffer) = b; } -+ ; - - code - : anycode -@@ -228,6 +229,7 @@ - bufferWriteS16($$, 2); - bufferWriteS16($$, bufferLength($5)); - bufferConcat($$, $5); } -+ ; - - expr_opt - : /* empty */ { $$ = NULL; } Property changes on: head/japanese/ming/files/patch-src_actioncompiler_swf5compiler.y ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.1 \ No newline at end of property +1.2 \ No newline at end of property Index: head/lang/ptoc/files/patch-parser.y =================================================================== --- head/lang/ptoc/files/patch-parser.y (revision 229565) +++ head/lang/ptoc/files/patch-parser.y (revision 229566) @@ -1,477 +1,499 @@ ---- parser.y.orig Mon Mar 26 10:02:40 2001 -+++ parser.y Wed Sep 17 13:34:05 2003 -@@ -3,11 +3,6 @@ +--- parser.y.orig 2004-12-09 11:50:14.000000000 +0100 ++++ parser.y 2009-03-06 11:26:20.000000000 +0100 +@@ -1,19 +1,18 @@ +-%{ ++%code requires { + #include #include #include -#if defined(__DECCXX) || defined(__GNUC__) -#include -#else -#include -#endif #include "nmtbl.h" #include "token.h" -@@ -285,23 +280,27 @@ + #include "trnod.h" + #include "util.h" + ++} ++ ++%code provides { ++ + static int zzcnv_table[] = { + #define DEF_TOKEN(mnem, cat, cls, yacc) yacc, + #include "token.dpp" +@@ -26,7 +25,7 @@ + error(curr_token, "syntax error: %s", text); + } + +-%} ++} + + + %union { +@@ -286,23 +285,27 @@ $2->attrib(ctx_program); $2->translate(ctx_program); } +; input_file: program | module | unit + ; program: block '.' { $$ = new program_node(NULL, NULL, NULL, NULL, $1, $2); } | PROGRAM IDENT prog_param_list ';' block '.' { $$ = new program_node($1, $2, $3, $4, $5, $6); } +; progend: { $$ = NULL; } | '.' +; module: decl_part_list { $$ = new module_node(NULL, NULL, NULL, NULL, $1, NULL); } | PROGRAM IDENT prog_param_list ';' decl_part_list progend { $$ = new module_node($1, $2, $3, $4, $5, $6); } - +; /* Turbo Pascal specific */ -@@ -313,38 +312,46 @@ +@@ -314,38 +317,46 @@ { $$ = new unit_node(NULL, NULL, NULL, $1, $2, $3, $4, NULL, $5, $6); } | INTERFACE unit_decl_list IMPLEMENTATION unit_def_list compoundst '.' { $$ = new unit_node(NULL, NULL, NULL, $1, $2, $3, $4, $5, NULL, $6); } + ; unit_def_list: decl_part_list - + ; prog_param_list: { $$ = NULL; } | '(' ident_list ')' { $$ = new import_list_node($1, $2, $3); } + ; ident_list: IDENT ',' ident_list { $$ = new token_list($1, $3); } | IDENT { $$ = new token_list($1); } + ; block: decl_part_list compoundst { $$ = new block_node($1, $2); } +; decl_part_list: { $$ = NULL; } | decl_part decl_part_list { $1->next = $2; $$ = $1; } +; decl_part: label_decl_part | const_def_part | type_def_part | var_decl_part | proc_def | proc_fwd_decl | unit_spec +; unit_spec: UNIT IDENT ';' INTERFACE unit_decl_list UNIT_END { $$ = new unit_spec_node($1, $2, $3, $4, $5); } | INTERFACE unit_decl_list UNIT_END { $$ = new unit_spec_node(NULL, NULL, NULL, $1, $2); } - +; unit_decl_list: { $$ = NULL; } | unit_decl unit_decl_list { $1->next = $2; $$ = $1; } +; unit_decl: label_decl_part | const_def_part | type_def_part | var_decl_part | proc_spec | proc_fwd_decl | unit_spec +; /* //============================================================================= -@@ -401,15 +408,20 @@ +@@ -402,15 +413,20 @@ | ICONST ':' statement { $$ = new label_node($1, $2, $3); } | IDENT ':' statement { $$ = new label_node($1, $2, $3); } | compoundst { $$ = $1; } +; compoundst: BEGIN sequence END { $$ = new compound_node($1, $2, $3); } +; sequence: statement | statement ';' sequence { $1->next = $3; $$ = $1; } +; actual_params: { $$ = NULL; } | expr_group { $$ = $1; } +; write_params: { $$ = NULL; } | '(' write_list ')' { $$ = new write_list_node($1, $2, $3); } +; case_list: case_items | case_items otherwise sequence -@@ -423,20 +435,26 @@ +@@ -424,20 +440,26 @@ $$ = new case_node(NULL, $2, $3); } } +; otherwise: OTHERWISE | ELSE /* Turbo Pascal */ +; case_items: { $$ = NULL; } | case_item | case_item ';' case_items { $1->next = $3; $$ = $1; } +; case_item: case_elem_list ':' statement { $$ = new case_node($1, $2, $3); } +; case_elem_list: case_elem | case_elem ',' case_elem_list { $1->next = $3; $$ = $1; } +; case_elem: expr { $$ = $1; } | expr DOTS expr { $$ = new case_range_node($1, $2, $3); } +; /* //============================================================================= -@@ -485,6 +503,7 @@ +@@ -486,6 +508,7 @@ | expr OR expr { $$ = new op_node(tn_or, $1, $2, $3); } | expr XOR expr { $$ = new op_node(tn_xor, $1, $2, $3); } + | expr GT expr { $$ = new op_node(tn_gt, $1, $2, $3); } | expr LT expr { $$ = new op_node(tn_lt, $1, $2, $3); } | expr LE expr { $$ = new op_node(tn_le, $1, $2, $3); } -@@ -492,6 +511,7 @@ +@@ -493,6 +516,7 @@ | expr EQ expr { $$ = new op_node(tn_eq, $1, $2, $3); } | expr NE expr { $$ = new op_node(tn_ne, $1, $2, $3); } | expr IN expr { $$ = new op_node(tn_in, $1, $2, $3); } +; simple_expr: primary | PLUS simple_expr %prec UPLUS { -@@ -502,6 +522,7 @@ +@@ -503,6 +527,7 @@ { $$ = new op_node(tn_not, NULL, $1, $2); } | '@' primary { $$ = new address_node($1, $2); } | AND primary %prec ADDRESS { $$ = new address_node($1, $2); } +; primary: constant | '(' expr_list ')' { $$ = new expr_group_node($1, $2, $3); } -@@ -510,6 +531,7 @@ +@@ -511,6 +536,7 @@ | primary '^' { $$ = new deref_expr_node($1, $2); } | primary '[' expr_list ']' { $$ = new idx_expr_node($1, $2, $3, $4); } | LOOPHOLE '(' type ',' expr ')' { $$ = new loophole_node($1, $2, $3, $4, $5, $6); } +; constant: record_constant | ICONST { $$ = new integer_node($1); } -@@ -517,41 +539,49 @@ +@@ -518,41 +544,49 @@ | SCONST { $$ = new string_node($1); } | '[' set_elem_list ']' { $$ = new set_node($1, $2, $3); } | IDENT { $$ = new atom_expr_node($1); } +; set_elem_list: { $$ = NULL; } | set_elem | set_elem ',' set_elem_list { $1->next = $3; $$ = $1; } +; set_elem: expr { $$ = new set_elem_node($1); } | expr DOTS expr { $$ = new set_range_node($1, $2, $3); } +; expr_list: expr | expr ',' expr_list { $1->next = $3; $$ = $1; } +; act_param_list: act_param | act_param ',' act_param_list { $1->next = $3; $$ = $1; } +; act_param: expr | { $$ = new skipped_node(curr_token->prev_relevant()); } - +; record_constant: '(' field_init_list ')' { $$ = new record_constant_node($1, $2, $3); } +; field_init_list: field_init_item { $$ = $1; } | field_init_item ';' field_init_list { $1->next = $3; $$ = $1; } +; field_init_item: IDENT ':' expr { $$ = new field_init_node($1, $2, $3); } - +; expr_group: '(' expr_list ')' { $$ = new expr_group_node($1, $2, $3); } - +; write_list: write_param | write_param ',' write_list { $1->next = $3; $$ = $1; } +; write_param: expr { $$ = new write_param_node($1); } | expr ':' expr { $$ = new write_param_node($1, $2, $3); } | expr ':' expr ':' expr { $$ = new write_param_node($1, $2, $3, $4, $5); } - +; /* //============================================================================= -@@ -594,31 +624,40 @@ +@@ -595,31 +629,40 @@ label_decl_part: LABEL label_list ';' { $$ = new label_decl_part_node($1, $2, $3); } +; label_list: ICONST { $$ = new token_list($1); } | ICONST ',' label_list { $$ = new token_list($1, $3); } | IDENT { $$ = new token_list($1); } | IDENT ',' label_list { $$ = new token_list($1, $3); } +; const_def_part: CONST const_def_list { $$ = new const_def_part_node($1, $2); } +; const_def_list: { $$ = NULL; } | const_def ';' const_def_list { $1->next = $3; $$ = $1; } +; const_def: IDENT EQ expr { $$ = new const_def_node($1, $2, $3); } | IDENT ':' const_type EQ expr { $$ = new typed_const_def_node($1, $2, $3, $4, $5); } +; type_def_part: TYPE type_def_list { $$ = new type_def_part_node($1, $2); } +; type_def_list: { $$ = NULL; } | type_def ';' type_def_list { $1->next = $3; $$ = $1; } +; type_def: IDENT EQ type { $$ = new type_def_node($1, $2, $3); } +; var_decl_part: VAR var_decl_list { $$ = new var_decl_part_node($1, $2); } +; var_decl_list: { $$ = NULL; } | var_decl -@@ -634,29 +673,33 @@ +@@ -635,29 +678,33 @@ $1->next = $5; $$ = $1; } | var_decl ';' var_decl_list { $1->next = $3; $$ = $1; } +; var_decl: ident_list ':' type { $$ = new var_decl_node($1, $2, $3); } | IDENT ORIGIN expr ':' simple_type { $$ = (var_decl_node*)new var_origin_decl_node($1, $2, $3, $4, $5); } +; proc_decl: PROCEDURE IDENT formal_params { $$ = new proc_decl_node($1, $2, $3); } | FUNCTION IDENT formal_params ':' type { $$ = new proc_decl_node($1, $2, $3, $4, $5); } - +; proc_fwd_decl: PROCEDURE IDENT formal_params ';' qualifiers ';' { $$ = new proc_fwd_decl_node($1, $2, $3, NULL, NULL, $4, $5, $6); } | FUNCTION IDENT formal_params ':' type ';' qualifiers ';' { $$ = new proc_fwd_decl_node($1, $2, $3, $4, $5, $6, $7, $8); } +; proc_spec: PROCEDURE IDENT formal_params ';' { $$ = new proc_fwd_decl_node($1, $2, $3, NULL, NULL, $4); } | FUNCTION IDENT formal_params ':' type ';' { $$ = new proc_fwd_decl_node($1, $2, $3, $4, $5, $6); } +; proc_def: PROCEDURE IDENT formal_params ';' block ';' -@@ -675,135 +718,166 @@ +@@ -676,135 +723,166 @@ { $$ = new proc_def_node($1, NULL, NULL, $2, $3, $4, $5, $6, $7, $8, $9, $10); } | FUNCTION IDENT ';' FAR ';' block ';' { $$ = new proc_def_node($1, NULL, NULL, $2, NULL, NULL, NULL, $3, $4, $5, $6, $7); } +; qualifiers: IDENT qualifiers { $$ = new token_list($1, $2); } | SCOPE qualifiers { $$ = new token_list($1, $2); } | IDENT { $$ = new token_list($1); } | SCOPE { $$ = new token_list($1); } - +; formal_params: { $$ = NULL; } | '(' formal_param_list ')' { $$ = new param_list_node($1, $2, $3); } +; formal_param_list: formal_param | formal_param ';' formal_param_list { $1->next = $3; $$ = $1; } +; formal_param: VAR param_decl { $$ = new var_decl_part_node($1, $2); } | param_decl { $$ = $1; } | proc_decl +; param_decl: ident_list ':' param_type { $$ = new var_decl_node($1, $2, $3); } | ident_list { $$ = new var_decl_node($1, NULL, NULL); } +; param_type: simple_type | conformant_array_type - - +; /* Types definition */ type: simple_type | array_type | record_type | object_type | set_type | file_type | pointer_type | enum_type | range_type | string_type | fptr_type +; const_type: simple_type | const_array_type | record_type | const_set_type | string_type +; fptr_type: FUNCTION formal_params ':' type { $$ = new fptr_tpd_node($1, $2, $3, $4); } | PROCEDURE formal_params { $$ = new fptr_tpd_node($1, $2); } +; string_type: STRING '[' expr ']' { $$ = new varying_tpd_node($1, $2, $3, $4); } +; simple_type: IDENT { $$ = new simple_tpd_node($1); } | STRING { $$ = new string_tpd_node($1); } +; array_type: packed ARRAY '[' indices ']' OF type { $$ = new array_tpd_node($1, $2, $3, $4, $5, $6, $7); } +; const_array_type: packed ARRAY '[' indices ']' OF const_type { $$ = new array_tpd_node($1, $2, $3, $4, $5, $6, $7); } +; conformant_array_type: packed ARRAY '[' conformant_indices ']' OF simple_type { $$ = new array_tpd_node($1, $2, $3, $4, $5, $6, $7); } | packed ARRAY '[' conformant_indices ']' OF conformant_array_type { $$ = new array_tpd_node($1, $2, $3, $4, $5, $6, $7); } +; enum_type: '(' ident_list ')' { $$ = new enum_tpd_node($1, $2, $3); } +; range_type: expr DOTS expr { $$ = new range_tpd_node($1, $2, $3); } +; pointer_type: '^' type { $$ = new ptr_tpd_node($1, $2); } +; set_type: packed SET OF type { $$ = new set_tpd_node($1, $2, $3, $4); } +; const_set_type: packed SET OF const_type { $$ = new set_tpd_node($1, $2, $3, $4); } +; record_type: packed RECORD field_list END { $$ = new record_tpd_node($1, $2, $3, $4); } +; object_type: OBJECT object_components END { $$ = new object_tpd_node($1, NULL, NULL, NULL, $2, $3); } | OBJECT '(' IDENT ')' object_components END { $$ = new object_tpd_node($1, $2, $3, $4, $5, $6); } +; object_components: object_fields object_methods { $1->next = $2; $$ = $1; } | object_methods | object_fields +; object_fields: field_decl_list { $$ = new var_decl_part_node(NULL, $1); } +; field_decl_list: var_decl | var_decl ';' { $$ = $1; } | var_decl ';' field_decl_list { $1->next = $3; $$ = $1; } +; object_methods: proc_fwd_decl | proc_spec | proc_fwd_decl object_methods { $1->next = $2; $$ = $1; } | proc_spec object_methods { $1->next = $2; $$ = $1; } - - +; file_type: packed FIL OF type { $$ = new file_tpd_node($1, $2, $3, $4); } +; -packed: { $$ = NULL; } | PACKED +packed: { $$ = NULL; } | PACKED +; conformant_indices: conformant_index | conformant_index ';' conformant_indices { $1->next = $3; $$ = $1; } +; conformant_index: IDENT DOTS IDENT ':' type { $$ = new conformant_index_node($1, $2, $3, $4, $5); } +; indices: index_spec | index_spec ',' indices { $1->next = $3; $$ = $1; } +; index_spec: simple_type { $$ = new type_index_node($1); } | expr DOTS expr { $$ = new range_index_node($1, $2, $3); } - +; field_list: fixed_part variant_part { $$ = new field_list_node($1, $2); } | fixed_part { $$ = new field_list_node($1); } +; fixed_part: var_decl_list +; variant_part: CASE selector OF variant_list { $$ = new variant_part_node($1, $2, $3, $4); } +; selector: IDENT ':' type { $$ = new selector_node($1, $2, $3); } | type { $$ = new selector_node(NULL, NULL, $1); } - +; variant_list: variant | variant ';' { $$ = $1; } | variant ';' variant_list { $1->next = $3; $$ = $1; } +; variant: expr_list ':' '(' field_list ')' { $$ = new variant_node($1, $2, $3, $4, $5); } +; %% Property changes on: head/lang/ptoc/files/patch-parser.y ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.2 \ No newline at end of property +1.3 \ No newline at end of property Index: head/security/ike/files/patch-source_iked_conf.parse.yy =================================================================== --- head/security/ike/files/patch-source_iked_conf.parse.yy (nonexistent) +++ head/security/ike/files/patch-source_iked_conf.parse.yy (revision 229566) @@ -0,0 +1,20 @@ +--- source/iked/conf.parse.yy.orig 2008-06-10 04:24:20.000000000 +0200 ++++ source/iked/conf.parse.yy 2009-03-06 11:40:56.000000000 +0100 +@@ -43,7 +43,7 @@ + %defines + %define "parser_class_name" "conf_parser" + +-%{ ++%code requires { + + #include + +@@ -51,7 +51,7 @@ + + typedef class _IKED IKED; + +-%} ++} + + // The parsing context. + %parse-param { IKED & iked } Property changes on: head/security/ike/files/patch-source_iked_conf.parse.yy ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/x11/xstroke/files/patch-rec_parse.y =================================================================== --- head/x11/xstroke/files/patch-rec_parse.y (revision 229565) +++ head/x11/xstroke/files/patch-rec_parse.y (revision 229566) @@ -1,17 +1,26 @@ ---- rec_parse.y.orig Mon Dec 2 11:54:46 2002 -+++ rec_parse.y Mon Dec 2 11:55:02 2002 -@@ -162,12 +162,14 @@ +--- rec_parse.y.orig 2001-12-10 18:01:17.000000000 +0100 ++++ rec_parse.y 2009-03-03 00:57:09.000000000 +0100 +@@ -141,7 +141,7 @@ mode_decl : MODE STRING + | MODE STRING + { + /* Do this first so the default mode gets set correctly*/ +- $$ = rec_get_mode((rec_t *) rec, $2); ++ $$ = rec_get_mode((rec_t *) rec, $2); + } + ':' mode_id_list + { +@@ -162,12 +162,14 @@ mode_id_list : mode_id $$ = $1; rec_mode_list_append(&$$, $3); } + ; mode_id : STRING { $$ = rec_get_mode((rec_t *) rec, $1); free($1); } + ; gesture_list : gesture { Property changes on: head/x11/xstroke/files/patch-rec_parse.y ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.1 \ No newline at end of property +1.2 \ No newline at end of property