Ji,
I must implement a descent recursive parser in C# that is based on a LL(1) grammar. I did it:
Hello,
I must implement a such parser (based on a LL(1) grammar). I did this
try {
// Create the reader.
XmlReaderSettings settings = new XmlReaderSettings();
settings.IgnoreWhitespace = true;
XmlReader reader = XmlReader.Create(new XmlTextReader(filename), settings);
while (reader.Read()) {
switch (reader.NodeType) {
case XmlNodeType.Element:
Hashtable attributes = new Hashtable();
string strURI = reader.NamespaceURI;
string strName = reader.Name;
Console.Write(strURI + " " + "<" + strName );
case XmlNodeType.XXXX
.................................................
}
}
Hello,
I must implement a such parser (based on a LL(1) grammar). I did this
try {
// Create the reader.
XmlReaderSettings settings = new XmlReaderSettings();
settings.IgnoreWhitespace = true;
XmlReader reader = XmlReader.Create(new XmlTextReader(filename), settings);
while (reader.Read()) {
switch (reader.NodeType) {
case XmlNodeType.Element:
Hashtable attributes = new Hashtable();
string strURI = reader.NamespaceURI;
string strName = reader.Name;
Console.Write(strURI + " " + "<" + strName );
case XmlNodeType.XXXX
.................................................
}
}
To copy to clipboard, switch view to plain text mode
Can I say that using SAX I'm doing a recursive descent parser or not?
thanks
Bookmarks