Skip to content
Snippets Groups Projects
Commit 72d720c6 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Minor bugfix.

Rev: lib/modules/LR.pmod/parser.pike:1.21
parent 3b11421d
No related branches found
No related tags found
No related merge requests found
/* /*
* $Id: parser.pike,v 1.20 1999/10/10 00:49:11 noring Exp $ * $Id: parser.pike,v 1.21 2000/02/13 19:29:33 grubba Exp $
* *
* A BNF-grammar in Pike. * A BNF-grammar in Pike.
* Compiles to a LALR(1) state-machine. * Compiles to a LALR(1) state-machine.
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
//. //.
//. File: parser.pike //. File: parser.pike
//. RCSID: $Id: parser.pike,v 1.20 1999/10/10 00:49:11 noring Exp $ //. RCSID: $Id: parser.pike,v 1.21 2000/02/13 19:29:33 grubba Exp $
//. Author: Henrik Grubbström (grubba@infovav.se) //. Author: Henrik Grubbström (grubba@infovav.se)
//. //.
//. Synopsis: LALR(1) parser and compiler. //. Synopsis: LALR(1) parser and compiler.
...@@ -432,7 +432,7 @@ mixed cast(string type) ...@@ -432,7 +432,7 @@ mixed cast(string type)
if (type == "string") { if (type == "string") {
return(cast_to_string()); return(cast_to_string());
} }
throw ( ({ "Cast to "+type+" not supported\n", backtrace()[0..-2] }) ); error(sprintf("Cast to %s not supported\n", type));
} }
/* Here come the functions that actually do some work */ /* Here come the functions that actually do some work */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment