<i>expr parses numbers before function names</i> status still Open with 4 other changes
by
.
D 2011-09-01T15:41:00
J icomment To\ssummarise\swhy\sI\sthink\srevising\sT_PN\sis\sokay:\nT_PN's\scontract\scan\sbe\sdescribed\sby\sa\ssingle\sregexp\snot\svery\sfar\sfrom\s(simplifying\son\sthe\sactual\sfloat\ssyntax):\n\n\s\s\s^[+-]?(\n\s\s\s\s\s\s\s\s\s[0-9.e]+\n\s\s\s\s|\n\s\s\s\s\s\s\s\s\sInf(inity)?\n\s\s\s\s|\n\s\s\s\s\s\s\s\s\sNan(\\([0-9af]+\\))?\n\s\s\s)\n\nNote\sthat\sdue\sto\sthe\sgreediness\sof\s'+',\sadding\sa\spositive\slookahead\sof\s[^0-9]\safter\sthe\sfloating-point\spart\sis\sa\sno-op:\n\n\n\s\s\s^[+-]?(\n\s\s\s\s\s\s\s\s\s[0-9.e]+\s\s(?=[^0-9])\n\s\s\s\s|\n\s\s\s\s\s\s\s\s\sInf(inity)?\n\s\s\s\s|\n\s\s\s\s\s\s\s\s\sNan(\\([0-9af]+\\))?\n\s\s\s)\n\nThis\sis\sthe\scurrent\strunk\sstatus.\nNow\sthe\spatch\sjust\sadds\s2\smore\slookaheads:\n\n\n\s\s\s^[+-]?(\n\s\s\s\s\s\s\s\s\s[0-9.e]+\s\s(?=[^0-9])\n\s\s\s\s|\n\s\s\s\s\s\s\s\s\sInf(inity)?\s(?=[^0-9A-Za-z_])\n\s\s\s\s|\n\s\s\s\s\s\s\s\s\sNan(\\([0-9af]+\\))?\s(?=[^0-9A-Za-z_])\n\s\s\s)\n\nThat's\sit.\sNo\sdirty\shack,\sjust\sa\sslight\sbend\sof\sthe\saccepted\sregular\slanguage.\sAnd\sthat\sbend\sis\sjustified,\sacross\sall\scallers\sof\sT_PN,\sby\sthe\sfact\sthat\sNancy\sand\sInfinitesimal\sbeing\sparsed\sas\sNan+cy\sand\sInf+initesimal\sare\sutterly\smeaningless.\sIf\syou\swant\sto\sflag\sthis\sas\sPOTENTIAL\sINCOMPATIBILITY,\splease\sdo,\sbut\sit's\sa\svery\svery\stiny\sone.\n\nWhile\sdoing\sthe\sequivalent\sfix\sonly\sin\sT_PE\swould\sIMO\sbreak\ssymmetry.\sPeople\sdoing\sscript\semulations\sof\sone\sof\sthe\sprimitives\swith\sthe\sothers\swould\sstart\snoting\sinconsistencies\s!\n\n
J login ferrieux
J mimetype text/plain
J username ferrieux
K 3401704fffffffffffffffffffffffffffffffff
U ferrieux
Z 84b45f1a755ae762a4e3c243dcc2772a