diff options
Diffstat (limited to 'Build/source/texk/web2c/otps/otp.y')
-rw-r--r-- | Build/source/texk/web2c/otps/otp.y | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/otps/otp.y b/Build/source/texk/web2c/otps/otp.y index ec1095eba6d..a67c6a1c06d 100644 --- a/Build/source/texk/web2c/otps/otp.y +++ b/Build/source/texk/web2c/otps/otp.y @@ -1,10 +1,10 @@ -%{ /* otp.y: Grammar for OTP files. This file is part of Omega, -which is based on the web2c distribution of TeX, +which is based on the web2c distribution of TeX. Copyright (c) 1994--2001 John Plaice and Yannis Haralambous +Copyright (C) 2005, 2006 Roozbeh Pournader Omega is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -22,6 +22,7 @@ along with Omega; if not, write to the Free Software Foundation, Inc., */ +%{ #include "otp.h" #include "routines.h" #include "yystype.h" @@ -141,6 +142,8 @@ OneCompleteLeft : { $$.yleft = CompleteLeft($1.yleft, $3.yint, $5.yint); } | OneLeft '<' NUMBER ',' '>' { $$.yleft = PlusLeft($1.yleft, $3.yint); } + | OneLeft '<' NUMBER '>' + { $$.yleft = CompleteLeft($1.yleft, $3.yint, $3.yint); } | OneLeft { $$.yleft = $1.yleft; } ; @@ -315,6 +318,8 @@ OneRightExpr : RightState : /* Empty */ + | '<' '>' + { out_int(OTP_STATE_CHANGE, 0); } | '<' ID '>' { out_int(OTP_STATE_CHANGE, lookup_state($2.ystring)); } | '<' PUSH ID '>' |