NSScanner is *not* a parser - it is a lexical analyser and you are the one that
is responsible of writing a parser on top of it. I have a project Subtitler
(http://github.com/xcvista/Subtitler) that included 2 parsers that is built on
top of NSScanner, and I vaguely remember that there is an Sma
Whoops, I meant
Are you numbers constrained to be from 1 to 9? How about 0677 (which is
actually 6 and 77) or 0607 (which is actually 607) etc?
Phil
On Aug 10, 2013, at 2:54 PM, Tom Davie wrote:
>
> On 10 Aug 2013, at 22:44, Keary Suska wrote:
>
>> On Aug 10, 2013, at 12:17 PM, Tom Davie
Are you numbers constrained to be from 1 to 9? How about 0677 (which is
actually 6 and 7) or 0607 (which is actually 607) etc?
Phil
On Aug 10, 2013, at 2:54 PM, Tom Davie wrote:
>
> On 10 Aug 2013, at 22:44, Keary Suska wrote:
>
>> On Aug 10, 2013, at 12:17 PM, Tom Davie wrote:
>>
>>> Heh,
On 10 Aug 2013, at 3:54 PM, Tom Davie wrote:
> On 10 Aug 2013, at 22:44, Keary Suska wrote:
>
> No, some hacked on extensions to regular expressions can do this. Because
> people keep repeatedly bumping into the problem that they’re not as powerful
> as CFGs, and most parsing problems aren’t
On 10 Aug 2013, at 22:44, Keary Suska wrote:
> On Aug 10, 2013, at 12:17 PM, Tom Davie wrote:
>
>> Heh, I’d actually argue that NSScanner is a much much better API to use here
>> (and in fact nearly everywhere). Regular expressions constrain you only to
>> regular grammars, which are a prett
On Aug 10, 2013, at 12:17 PM, Tom Davie wrote:
> Heh, I’d actually argue that NSScanner is a much much better API to use here
> (and in fact nearly everywhere). Regular expressions constrain you only to
> regular grammars, which are a pretty small set. In my experience 99% of the
> use of the
On Sat, Aug 10, 2013, at 10:31 AM, Gordon Apple wrote:
> Using NSTextView¹s native ability to embed image attachments, we have
> successfully implemented resizing of the image by using a resizable frame
> with a drag handle, and using setSize on the NSImage. Works great. Only
> one problem, re-ar
If one number has a leading leading zero will the other number have one, if
applicable? For instance, is 60 followed by 7 distinguishable from 6 followed
by 07?
Sandor Szatmari
On Aug 10, 2013, at 13:07, Boyd Collier wrote:
> I'm dealing with a situation in which I have to scan strings that
Heh, I’d actually argue that NSScanner is a much much better API to use here
(and in fact nearly everywhere). Regular expressions constrain you only to
regular grammars, which are a pretty small set. In my experience 99% of the
use of them is actually trying to parse something that’s not *quit
On 2013 Aug 10, at 10:07, Boyd Collier wrote:
> but if someone has already come up with a clean way of scanning in reverse
In Mac OS X 10.7+, we have NSRegularExpression. In earlier systems, call out
to Perl. Regexes are fun.
___
Cocoa-dev maili
Is there a problem with using a character set of all digits except 0 when
recognizing digits?
--
Gary L. Wade (Sent from my iPad)
http://www.garywade.com/
On Aug 10, 2013, at 10:07 AM, Boyd Collier wrote:
> I'm dealing with a situation in which I have to scan strings that are
> separated by ta
Using NSTextView¹s native ability to embed image attachments, we have
successfully implemented resizing of the image by using a resizable frame
with a drag handle, and using setSize on the NSImage. Works great. Only
one problem, re-archiving the NSAttributableString loses the image size
change.
I'm dealing with a situation in which I have to scan strings that are separated
by tabs, and for each string, I have to extract two numerical values, with
these values being separated by a non-numerical character or not being
separated by any character at all. I know the maximum number of chara
13 matches
Mail list logo