[Mono-list] Making MCS parse many syntaxes (again), and trying to make it compile itself

A Rafael D Teixeira rafaelteixeirabr@hotmail.com
Sat, 27 Oct 2001 18:57:34 -0200


This is a multi-part message in MIME format.

------=_NextPart_000_6ac8_603d_36a0
Content-Type: text/plain; format=flowed

Miguel, Ravi apply the attached patches and add these items to the 
CHANGELOG, please.

Some of the changes are corrections of errors found when compiling mcs or 
parts of it with itself.
Many issues are still open on this front, like duplication of names on the 
class collection, due to
insufficient qualification of class names.

CHANGELOG

2001-10-27  A Rafael D Teixeira  <rafaelteixeirabr@hotmail.com>

	* cs-parser.jay: Made it a good son of GenericParser
		(RootContext rc lives now on the base class, and some abstract methods 
were overriden)

	* cs-parser.jay: Fixed namespace_declaration rule to allow many sources to
		contribute to a common namespace (as happens with the CIR namespace)

	* mb-tokenizer.cs, cs-tokenizer.cs: Uses a TextReader as input, to allow 
tokenizing strings

	* driver.cs: Property yacc_verbose is now a static yacc_verbose_flag in 
GenericParser,
		set just once not repeatedly when parsing every source

	* driver.cs: Moved/revamped parse() method to a static Parse() in 
GenericParser.

	* driver.cs: Added some exception handling on the Main method

	* driver.cs: Added a check of Report.Errors after calling ResolveTree()
		to avoid exceptions upon calling PopulateTypes()

	* genericparser.cs: Resubmitting the self-finding parsers mechanism. But 
now
		a static Parse() method finds the correct parser itself and parses the 
file.

	* genericparser.cs: For generic errors, the prefix was unified (MC2001 
instead of CS2001 and BC2001,
		when a source is missing)

	* location.cs: Added a tentative int Col property (just returns 0 now)

	* makefile: Added the removal of some new files for target 'clean'

	* makefile: Corrected dependencies for target 'mbas'

	* makefile: Added a target 'itself' that tries to compile a mcs-itself 
executable using mcs

	* mb-parser.jay: Renamed GetExtensions() method to extensions() to comply 
with GenericParser

	* MonoBASIC.ChangeLog: Replacement for the corrupted file.


Rafael Teixeira
Brazilian Developer


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

------=_NextPart_000_6ac8_603d_36a0
Content-Type: application/x-gzip-compressed; name="Delta-27-Oct-01.tar.gz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="Delta-27-Oct-01.tar.gz"

H4sIAPQd2zsAA+07/W/buJL9VQvs/8Aa71C7tuWvfNXZ9G3WSdo8JE0Rp28P
6BaBLNGxtrLkE6U0fkXub7+ZISmRttKkvXbvDhe1sWyRHA6H8z3UAY8yr/Pk
h17d7kZ3e3MT7t3u9tYG3nvwiH6r60l3e7C1tdXb2hpsPYHWzcHgCdv8sWjJ
KxeZlzL2ZJx5ceClwV8x5/+i64D2f+4LNwin0x8zB+xnd2tj4479H/S3ez29
/73BJjzv9XuDjSes+2PQsa//5/uPu87aryd5ytzOPImTdn+rfeZn7W4PuYL+
fNFeeKngqfunt8Ruq89+/qndbj9wvHORcwYdWH/Aev1hb2PY32J94Iiff2o2
m1XQnbGXyRHbrLc93NwZbvTViF9/Ze3tndY2a9Lnr7/+/BNznE6H/dIR+Xzu
pcuX9OQi5Zxl8LELPwFbxzlPkmyUxBm/yVjq78LDJg1cf47//+2W7jhd/8VG
6wVr4q2nZoy9ORcLz+eXAfcjL/WyMIlx3iF7s396OH67Pzpk/5F7UTgNeXAZ
BjzO8GuKoB3GPuvJj47//fRwyGIuMh6UYAWbedeAf6LuMx6m1Mr8ZL5I8jgY
smmewvO0nIZ9CrMZS/KMpwYkmElPdjxlXtnCQsEWKReAGqtP02SO0zCBkyQp
dIS26zDJBRNJnvq80WIfOV+wXITxFQszAhpOWR2J7L4pMX+6x+I8ihrUwfHz
NIUZLstp91i96N1YHf2+LrIUJmiwv/U/NHaLSdbBsD1zns+06VWTxfwTK+BX
AGoxY0qcEeAQUufcT9LAGGr0a7E1OHIoY7fEWPKOv0tWmSTBkiWL7FLweegn
keQYYAZ2J/Jrz9y3Hj7YlZw56L3YaW2x5qDf3SqEARn31gG4kpObnedwX+ST
KPTZaDzz0sVbErS6zfgtJpdHCLfYeAkcOXePz9wxUMObszBe5BkQmxGpH0Bp
3JwWq9UaGtn+oI9yO+hv9FqDHYUt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