Re: [racket-users] RE: infix notation embedded in Racket

2015-04-25 Thread Jens Axel Søgaard
2015-04-24 18:32 GMT+02:00 Jens Axel Søgaard jensa...@soegaard.net: 2015-04-24 18:25 GMT+02:00 Jos Koot jos.k...@gmail.com: Hi Jens Axel, Thanks for replying and explaining. Can you discriminate between a+b and |a+b| or a|+|b? When I get around to adding |...| identifiers to the

[racket-users] Re: infix notation embedded in Racket

2015-04-24 Thread Jens Axel Søgaard
2015-04-23 18:51 GMT+02:00 Jos Koot jos.k...@gmail.com: Long ago I made various parsers (most of them in Fortran or assembler) for expressions with infix notation. I always used push-down automata with two or more stacks. Now I am playing with macros in Racket that allow infix notation

RE: [racket-users] RE: infix notation embedded in Racket

2015-04-24 Thread Jos Koot
Sent: viernes, 24 de abril de 2015 18:32 To: Jos Koot Cc: racket-users@googlegroups.com Subject: Re: [racket-users] RE: infix notation embedded in Racket 2015-04-24 18:25 GMT+02:00 Jos Koot jos.k...@gmail.com: Hi Jens Axel, Thanks for replying and explaining. Can you discriminate between

Re: [racket-users] RE: infix notation embedded in Racket

2015-04-24 Thread Jens Axel Søgaard
2015-04-24 18:25 GMT+02:00 Jos Koot jos.k...@gmail.com: Hi Jens Axel, Thanks for replying and explaining. Can you discriminate between a+b and |a+b| or a|+|b? When I get around to adding |...| identifiers to the lexer, it will work like this: a+b will be parsed as (+ a b) |a+b| as

[racket-users] RE: infix notation embedded in Racket

2015-04-24 Thread Jos Koot
is that this is very well possible, in fact much easier. Thanks again, Jos _ From: jensaxelsoega...@gmail.com [mailto:jensaxelsoega...@gmail.com] On Behalf Of Jens Axel Søgaard Sent: viernes, 24 de abril de 2015 14:50 To: Jos Koot Cc: racket-users@googlegroups.com Subject: Re: infix notation embedded