TextComparator

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

TextComparator

Sam King
If we're on a unix system, I assume that we can use diff rather than TextComparator.  Is that correct?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: TextComparator

ybakos
Correct. Also use the -b option to ignore whitespace if you want.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: TextComparator

n00b2Tetris
If we use diff -w, is that also okay?

For instance... is <keyword>class</keyword> compared to <keyword> class </keyword> the same thing?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: TextComparator

cadet1620
Administrator
diff -w will work for nand2tetris.
For instance... is <keyword>class</keyword> compared to <keyword> class </keyword> the same thing?
To be overly picky, the XML specs say that whitespace in element data is significant.

The only purpose for writing the XML is for testing your parser. We don't insist that you write spec compliant XML 8^)

--Mark


Loading...