Antlr Conference Drools & Hibernate

3,494 views
3,402 views

Published on

Published in: Technology, Business
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
3,494
On SlideShare
0
From Embeds
0
Number of Embeds
15
Actions
Shares
0
Downloads
65
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide
































  • Antlr Conference Drools & Hibernate

    1. 1. ANTLR Challenges in grammar development: Drools & Hibernate real cases Alexandre Porcelli Caravela
    2. 2. ANTLR Conference 2009 must admit: i’m a BIT nervous
    3. 3. ANTLR Conference 2009 Alexandre Porcelli Chief Technology Officer porcelli@caravelatech.com Alexandre Porcelli Creator & Project Lead Alexandre Porcelli Commiter Alexandre Porcelli Commiter / Parser Maintainer Alexandre Porcelli Commiter / Parser Developer
    4. 4. ANTLR Conference 2009 why i'm excited to be here?
    5. 5. ANTLR Conference 2009 to be one more nerd in the audience? NO
    6. 6. ANTLR Conference 2009 to take the antl[e]r photo? Definitely NOT!
    7. 7. ANTLR Conference 2009 to drink some beers with you? NO.... -- that's not entirely true ;) --
    8. 8. ANTLR Conference 2009
    9. 9. ANTLR Conference 2009 to learn... from you!
    10. 10. ANTLR Conference 2009 interactive talk....
    11. 11. ANTLR Conference 2009
    12. 12. ANTLR Conference 2009 jboss.org/drools one of the most important product on JBoss SOA Platform dsl language: DRL
    13. 13. ANTLR Conference 2009 hibernate.org one of the most used java library... dsl languages: HQL, EJB-QL & Criteria Query*
    14. 14. ANTLR Conference 2009 common habits antlr version 3.1.x tree walkers lots of virtual tokens never_change: (generated files | antlr templates) ; gUnit proprietary token class
    15. 15. ANTLR Conference 2009
    16. 16. ANTLR Conference 2009 common challenges
    17. 17. ANTLR Conference 2009 keywords as variables: soft keywords “ ” Terence Parr, 2007
    18. 18. ANTLR Conference 2009 how to
    19. 19. ANTLR Conference 2009 error messages: internationalization
    20. 20. ANTLR Conference 2009 how to
    21. 21. ANTLR Conference 2009
    22. 22. ANTLR Conference 2009 semantic predicate Person( ( age > 60 && age < 70 ) || ( age > 50 && age < 55 ) ) restr_connective Person( ( age ( > 60 && < 70 ) || ( > 50 && < 55 ) ) constraint
    23. 23. ANTLR Conference 2009 how to
    24. 24. ANTLR Conference 2009 editor: syntax highlighting
    25. 25. ANTLR Conference 2009 how to
    26. 26. ANTLR Conference 2009 editor: autocomplete
    27. 27. ANTLR Conference 2009 how to i’ll not show my terrible solution * if you whant see that -> get drools code and check it ;)
    28. 28. ANTLR Conference 2009
    29. 29. ANTLR Conference 2009 chalange: try to adapt to an existing structure what we’d love to have: - implement interface @ parsers & walkers - token types declared outside generated code (why not an interface?) -> avoid code coupling with lexers, parsers or treewalkers
    30. 30. ANTLR Conference 2009 split the tree
    31. 31. ANTLR Conference 2009 how to
    32. 32. ANTLR Thank You porcelli@caravelatech.com caravelatech.com www.linkedin.com/in/alexandreporcelli twitter.com/porcelli no time for that... yet!

    ×