[GRASS5] PATCH: sql expression parser

Paul Kelly paul-grass at stjohnspoint.co.uk
Fri Jun 10 10:50:42 EDT 2005


Hello Daniel

On Fri, 10 Jun 2005, Daniel Calvelo Aros wrote:

> However, I'm unsure about %left and ilk directives in older yaccs; could
> anybody confirm this works in non-GNU yaccs? If so, please test this patch, it
> is a bugfix actually.

It didn't work anyway with Solaris lex and yacc, so probably not a 
problem. Below is the error (nothing to do with your changes)---a lot of
it seems to be mis-placed comments but I'm not sure what proper lex syntax 
for this is.

Paul

/usr/ccs/bin/yacc -d -v yac.y
"yac.y", line 68: warning: redeclaration of precedence of TABLE.
"yac.y", line 69: warning: redeclaration of precedence of TABLE.

conflicts: 10 shift/reduce
/usr/ccs/bin/lex lex.l
"lex.l":line 75: Error: executable statements should occur right after %%
"lex.l":line 83: Error: executable statements should occur right after %%
"lex.l":line 101: Error: syntax error
"lex.l":line 100: Error: Illegal rule
"lex.l":line 115: Error: executable statements should occur right after %%
"lex.l":line 116: Error: executable statements should occur right after %%
"lex.l":line 117: Error: executable statements should occur right after %%
"lex.l":line 124: Error: executable statements should occur right after %%
"lex.l":line 125: Error: executable statements should occur right after %%
"lex.l":line 126: Error: executable statements should occur right after %%
"lex.l":line 134: Error: executable statements should occur right after %%
"lex.l":line 135: Error: executable statements should occur right after %%
"lex.l":line 137: Error: executable statements should occur right after %%
"lex.l":line 148: Error: executable statements should occur right after %%
"lex.l":line 149: Error: executable statements should occur right after %%
"lex.l":line 151: Error: executable statements should occur right after %%
"lex.l":line 158: Error: Non-terminated string or character constant
342/1200 nodes(%e), 0/2500 positions(%p), 1/500 (%n), 0 transitions,
0/10000 packed char classes(%k),  0/2000 packed transitions(%a),  0/12000 
output slots(%o)
make: *** [lex.yy.c] Error 1




More information about the grass-dev mailing list