michaelinux / mini-java

Automatically exported from code.google.com/p/mini-java
0 stars 0 forks source link

Add class Rule #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
class Rule represents a production rule for a syntax specification. It
contains a right hand symbol and a list of left hand symbols. It also
maintains a collection of "items" for the corresponding left hand symbols.
NOTE: a special symbol called "END" should be added to each rule.

class Rule should be immutable and has a factory method "parse", which
accepts a line of string and creates the corresponding Rule represented by
the string.

NOTE: class Rule should use EqualsBuilder and HashCodeBuilder to implement
equals() and hashCode()

Original issue reported on code.google.com by lemontree.cool on 7 Sep 2008 at 1:31

GoogleCodeExporter commented 9 years ago

Original comment by lemontree.cool on 29 Sep 2008 at 12:15