[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ShopSuite-dev] [rational type] X/1 --> X
From: |
Tomasz Wegrzanowski |
Subject: |
Re: [ShopSuite-dev] [rational type] X/1 --> X |
Date: |
Sat, 1 Sep 2001 12:01:33 +0200 |
User-agent: |
Mutt/1.3.20i |
On Fri, Aug 31, 2001 at 11:40:11PM +0100, Davi Leal wrote:
> I have modified rational_out() to realize the X/1 --> X conversion. The GUI is
> more readable and clean now.
>
> I have tried some modifications to rational_in() but I have not finished it
> yet. Its goal is to check the format at input so as to fit fully the below
> regular expressions. If the input does not fit then RETURN_UNDEF is used. See
> the attached rational.c file. Execute 'cvs diff rational.c'.
>
> Number: "^ *[0-9]\+ *$"
> Rational: "^ *[0-9]\+\/[0-9]\+ *$"
Why did you escape '+' ?
> Do you know about regcomp() and regexec(). Do you have any idea of how check
> if the input match a regular expressions?.
It's simple and I even have some helloworlds available
(I allways write helloworlds when I'm learning something new,
and I often save them for reference).
Tell me if you want me to send them to you.
But I don't know if it's any useful.
Parser is quite simple, and finding number start and end
is only half of parsing.
- Re: [ShopSuite-dev] [rational type] X/1 --> X,
Tomasz Wegrzanowski <=
- Re: [ShopSuite-dev] [rational type] X/1 --> X, Davi Leal, 2001/09/07
- Re: [ShopSuite-dev] [rational type] X/1 --> X, Tomasz Wegrzanowski, 2001/09/08
- Re: [ShopSuite-dev] [rational type] X/1 --> X, Davi Leal, 2001/09/09
- Re: [ShopSuite-dev] [rational type] X/1 --> X, Tomasz Wegrzanowski, 2001/09/09
- Re: [ShopSuite-dev] [rational type] X/1 --> X, Davi Leal, 2001/09/09
- Re: [ShopSuite-dev] [rational type] X/1 --> X, Tomasz Wegrzanowski, 2001/09/09
- Re: [ShopSuite-dev] [rational type] X/1 --> X, Davi Leal, 2001/09/09
- Re: [ShopSuite-dev] [rational type] X/1 --> X, Tomasz Wegrzanowski, 2001/09/09