Related articles |
---|
[5 earlier articles] |
Re: Regular expression string searching & matching jamin.hanson@googlemail.com (Ben Hanson) (2018-03-10) |
Re: Regular expression string searching & matching jamin.hanson@googlemail.com (Ben Hanson) (2018-03-11) |
Re: Regular expression string searching & matching clint.olsen@gmail.com (Clint O) (2018-03-12) |
Re: Regular expression string searching & matching jamin.hanson@googlemail.com (Ben Hanson) (2018-03-12) |
Re: Regular expression string searching & matching DrDiettrich1@netscape.net (Hans-Peter Diettrich) (2018-03-13) |
Re: Regular expression string searching & matching jamin.hanson@googlemail.com (Ben Hanson) (2018-03-13) |
Re: Regular expression string searching & matching jamin.hanson@googlemail.com (Ben Hanson) (2018-03-13) |
Re: Regular expression string searching & matching clint.olsen@gmail.com (Clint O) (2018-03-17) |
Re: Regular expression string searching & matching clint.olsen@gmail.com (Clint O) (2018-03-18) |
Re: Regular expression string searching & matching clint.olsen@gmail.com (Clint O) (2018-03-20) |
Re: Regular expression string searching & matching clint.olsen@gmail.com (Clint O) (2018-03-22) |
From: | Ben Hanson <jamin.hanson@googlemail.com> |
Newsgroups: | comp.compilers |
Date: | Tue, 13 Mar 2018 14:23:40 -0700 (PDT) |
Organization: | Compilers Central |
References: | 18-03-016 18-03-032 18-03-034 18-03-035 18-03-041 18-03-050 |
Injection-Info: | gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="81279"; mail-complaints-to="abuse@iecc.com" |
Keywords: | lex, DFA |
Posted-Date: | 13 Mar 2018 17:32:45 EDT |
On Tuesday, 13 March 2018 19:33:53 UTC, Hans-Peter Diettrich wrote:
> > State: 0
> > [/] -> 1
> >
> > State: 1
> > [*] -> 2
> >
> > State: 2
> > [^*] -> 2
> > [*] -> 3
>
> I'm just curious about the notation.
> What happens if neither pattern matches?
> What's the purpose of [^*] in state 2, as opposed to state 1?
In state 2 you are either looping on [^*] (anything other than '*') or changing state to state 3 on '*'.
I'm not sure I understand your question.
Regards,
Ben
Return to the
comp.compilers page.
Search the
comp.compilers archives again.