Menu

#2 visitormethodprefix doesn't always work

open
nobody
None
5
2008-08-26
2008-08-26
Anonymous
No

In my simple AST for a lambda calculus, I have changed the visitormethodprefix method to the value "visit." This value is not always used consistently, however, and the result is code that generates compiler errors. The visitor ExprAbstractVisitor_void defines visitor methods that begin with "for" rather than "visit," and therefore does not implement the abstract methods from the super class ExprVisitor_void.

Discussion

  • Nobody/Anonymous

     
  • Nobody/Anonymous

    Logged In: NO

    Actually, I realized that this is probably working in the latest version. The version available as a jar file goes back to 2005. Can you post a later one? (Building doesn't seem to work for me either, I get a "error reading D:\workspace\astgen\lib\plt.jar; invalid CEN header (bad signature)").

     
  • Nobody/Anonymous

    Logged In: NO

    Actually, I realized that this is probably working in the latest version. The version available as a jar file goes back to 2005. Can you post a later one? (Building doesn't seem to work for me either, I get a "error reading D:\workspace\astgen\lib\plt.jar; invalid CEN header (bad signature)").

     

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.