# Recursive-Descent Parser Applet

Last Update Time-stamp: "97/06/27 20:55:35 umrigar"

This page contains a java applet which demonstrates the operation of a recursive-descent parser for a simple language consisting of assignment statements and arithmetic expressions. An introduction to recursive descent parsing is also available.

## Applet Layout

The layout of the applet is as shown below. You can click on any of the yellow areas to get a fuller description in the frame to the left.

## Running the Applet

Please be patient: depending on the speed of your network connection, the applet may take a few minutes to load. Here it is...

Your browser does not appear to be java-enabled.

If you find the size of the applet embedded above inconvenient, then you can start (but your browser doesn't appear to be java-enabled) `:-(` another copy of the applet in a separate window which you may resize to your convenience (if permitted to do so by the security model used by your browser).

Any misbehavior of the applet may be due to known incompatiblities.

The parse tree is constructed as control flows through a parsing function. When a parsing function is first entered, a node without any children is created for it. As its constituents are parsed, the parse trees corresponding to the constituents are added to the node for the parsing function.

Feedback: Please email any feedback to zdu@acm.org.

Up to Parsing Demos Main Page