User loginNavigation |
Writing a DSL for Java
The site java.net has an article on extending Java with Tasks, code blocks executing in a separate thread. This particular extension may not be very exciting, but perhaps it will introduce the idea of DSLs to a new group of programmers.
The article uses a parser generator called VisualLangLab that seems to be "Yacc with a GUI". Since the goal of the article is to extend the Java language, they need a Java grammar to start with. VisualLangLab comes with a Java 1.4 grammar, so that is what is used. This means that the Task extension cannot be used with a 1.5 compiler; even though the extension only touches parts of the Java grammar that have not changed between 1.4 and 1.5 (I guess). Could this problem be circumvented if the standard libraries provided a representation of the grammar used in the current platform? By Henrik Arro at 2004-10-10 18:03 | LtU Forum | previous forum topic | next forum topic | other blogs | 14863 reads
|
Browse archives
Active forum topics |
Recent comments
3 weeks 4 days ago
43 weeks 6 days ago
43 weeks 6 days ago
43 weeks 6 days ago
1 year 13 weeks ago
1 year 18 weeks ago
1 year 19 weeks ago
1 year 19 weeks ago
1 year 22 weeks ago
1 year 27 weeks ago