Here's a teeny fix to allow us to use space before the closing bracket.
It is also available at
http://www.xirr.com/~squeak/genius-0.4.3-endbracket.diff
#!/bin/sh
# this is meant to be run in the directory containing an unmolested
# genius-0.4.3 source distrbution. It fixes a small bug when closing
# a matrix definition with space before the ']' It can be reversed
# by simply running it again and answering yes to the Assume patch
# is reversed question.
# june 11, (c) 1999 jack schmidt <squeak_at_xirr.com> under the GPLv2.0
patch -d genius-0.4.3 -p1 << EOF
diff -rU 5 genius-0.4.3/src/lexer.l genius-0.4.3.mod/src/lexer.l
--- genius-0.4.3/src/lexer.l Mon May 24 21:20:45 1999
+++ genius-0.4.3.mod/src/lexer.l Mon Jun 14 02:19:00 1999
@@ -186,11 +186,11 @@
[\t ]*[]] {
matrix_entry--;
parenth_depth--;
DO_RET;
- return yytext[0];
+ return ']';
}
[({] {
parenth_depth++;
EOF
Received on Mon Jun 14 1999 - 06:58:41 CDT
This archive was generated by hypermail 2.2.0 : Sun Apr 17 2011 - 21:00:02 CDT