Menu

#1 convert to using properties

open
nobody
Other (1)
5
2001-09-07
2001-09-06
Jolly Chen
No

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

Discussion

  • Nick Drochak

    Nick Drochak - 2001-09-07
    • labels: --> Other
     
  • Nick Drochak

    Nick Drochak - 2001-09-07

    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.

     
  • Jolly Chen

    Jolly Chen - 2001-09-07

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.