improved handling of declaration modifiers
authorAaron Becker <abecker3@illinois.edu>
Tue, 16 Jun 2009 02:05:06 +0000 (02:05 +0000)
committerAaron Becker <abecker3@illinois.edu>
Tue, 16 Jun 2009 02:05:06 +0000 (02:05 +0000)
commit366ff4ebcb1a67f222c313c7c86ac73ac54edbc1
treecf41ece6ea1b2e1611f0c304c96e2c243b869888
parent295c05acc35080946513978009ccabf175f412c4
improved handling of declaration modifiers

Made lists of modifiers optional instead of mandatory but possibly
empty, which simplifies code generation. Differentiated between
declarations of class fields and local variables. Added default access
specifier to fields that don't have one, to prevent them from picking up
the access modifier of previously specified variables in the C++ code.
src/langs/charj/src/charj/translator/Charj.g
src/langs/charj/src/charj/translator/Charj.stg
src/langs/charj/src/charj/translator/CharjEmitter.g
src/langs/charj/src/charj/translator/CharjSemantics.g