summaryrefslogtreecommitdiff
path: root/sys/src/cmd/yacc.c
AgeCommit message (Collapse)Author
2020-05-13stop fiddling with path construction.Ori Bernstein
There's fd2path, which gives back the full path directly. This makes the code even simpler.
2020-05-13fix yacc crash with absolute pathsOri Bernstein
When passing an absolute file path to yacc, we would skip initializing inpath, leaving it null. This would cause Bopen to die. We would similarly fail to report an error if we tried to get the current working directory, and then die when constructing inpath. This fixes both cases.
2019-12-11normalize error messages in yacc, stop writing to closed fd.Ori Bernstein
2017-04-21fix yacc bug (found by dan cross)aiju
2015-12-07yacc: attempt to keep line numbers right for yyparse()cinap_lenrek
as the generated parser intermixes lines from .y source and the parser text, the line source/lineno for yyparse() shows up wrong in the debugger. to make stack traces a bit less crazy, put a #line 1 "/sys/lib/yaccpar" before copying in the parser text.
2012-12-31fix utf and rune handling in preparation for 32bit runescinap_lenrek
2011-07-13fixed error handling in p, pr, sed, xd, yaccaiju
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen