convert to using properties
Status: Alpha
Brought to you by:
nickdragon
use C# style indexers and properties where appropriate
in place of accessor methods(). They would probably
be more 'natural' to the native C# programmer.
Examples include
AbstractYYlex.currentloc
AbstractYYlex.tokenloc
AbstractYYparse.yylen
AbstractYYparse.yyval
AbstractYYparse.yyrhsname
AbstractYYparse.yyrulename
Logged In: YES
user_id=220763
I was thinking before we should discuss this one. We need
to balance 'natural' C# action code with the established
Bison/Yacc way of writing actions. If we deviate too much,
it might frustrate users already familliar with the "Bison
way"
Let's discuss.
Logged In: YES
user_id=303155
True, but I think many of these accessors, although public,
are not frequently used by the user but only by the
yyparse.template code.
Perhaps we can use the bison/flex docs as a guideline. If
it's not documented as a user method, then we have latitude
to change the signature. If it is, we should do so after
careful consideration. Even in the latter case, I think
some changes may be justified so the C# action code looks
crisper.