home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.theory
- Path: sparky!uunet!mcsun!sun4nl!wn1.sci.kun.nl!cs.kun.nl!markjan
- From: markjan@cs.kun.nl (Mark-Jan Nederhof)
- Subject: Re: What kind of an automaton is this?
- Message-ID: <1992Sep10.160404.21612@sci.kun.nl>
- Sender: news@sci.kun.nl (NUnet News Owner)
- Organization: University of Nijmegen, The Netherlands
- References: <4QU69WW@math.fu-berlin.de>
- Date: Thu, 10 Sep 1992 16:04:04 GMT
- Lines: 35
-
- In <4QU69WW@math.fu-berlin.de> weberwu@inf.fu-berlin.de (Debora Weber-Wulff) writes:
-
- >We've been discussing on comp.compilers the kind of parsing automaton that
- >is described in
- >DeRemer[CACM 71] as being an SLR-Parser. It is not the kind of PDA I
- >learned about when I studied Automata Theory with the next state and the
- >output being determined by the current state, the top of the stack, and
- >the current symbol in the input. In this "strange" automaton the lhs of
- >the production being reduced is returned to the input after the stack
- >has been popped. This is not just backing up over input, but non-terminals
- >can be built up on the input, perhaps with a number of epsilon productions.
- >Some people have said "oh yes, we like that and have a hack to use it"
- >but it is unclear what exactly the computational complexity of this
- >automaton is. LR parsing is clearly a subset of what this automaton can
- >do - just don't do any of the strange reductions.
-
- Being allowed to push symbols onto the input is similar to having two
- stacks. Having two stacks is again similar to having a tape on which you
- can read, write and move both ways; in other words, to having a Turing machine.
-
- >Has anyone encountered this type of automaton before? What does it buy
- >me, i.e. what special problems could be solved with this type of
- >automaton that we can't do with LR-parsers? Pointers or ideas of
- >any kind are welcome.
-
- The class of Turing-decidable languages is the largest class of
- decidable languages that we know. It subsumes the class of LR(k) languages
- and many others.
-
- References: e.g. A.V. Aho, J.D. Ullman: The theory of parsing,
- translation, and compiling.
-
- Mark-Jan Nederhof
- University of Nijmegen
-
-