You can use `code:line` to group terms without parentheses:

 (code:line addition + term)


At Thu, 4 Jun 2015 16:53:33 +0200, "Jos Koot" wrote:
> Hi,
>  
> I have tried to use defform of scribble to describe the following:
>  
> syntax ($ infix-expr) → any
>  
> infix-expr ::= addition
>  
> addition   ::= term
> addition   ::= addition + term
> addition   ::= addition - term
>  
> term ::= etc.
>  
> Using #:grammar I can easily get:
>  
> addition = term
>            | (addition + term)
>            | (addition - term)
>  
> but I don't want the parentheses and I don't know how to get rid of them.
> Is it possible to generate something like:
>  
> infix-expr = addition
>  
> addition = term
>            | addition + term
>            | addition - term
> 
> If it is possible, help me please.
> Thanks, Jos
>  
>  
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email 
> to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to