Archives for Java
How to read and parse your environment variables (System32, Java_Home, Classpath, Path…)
Rebol has a native get-env function to read environment variables. For example, to test if your JAVA_HOME (JDK installation directory), CLASSPATH (for Java imports), CATALINA_HOME (for Tomcat) environment variables have been set, type in Rebol Console :get-env "JAVA_HOME"
get-env "CLASSPATH"
get-env "JRE_HOME"
get-env "CATALINA_HOME"To parse your environment variable, just use parse/all ...more»
Design Patterns Quiz in Rebol (part I)
Quiz Tool like Memory Lifter is a great memorisation technique (read also "How to memorize anything"). In this first lesson, we will build a simple textual version (next version will have a visual GUI).The first version of our script below is based upon the one found here except for ...more»
18 Jul by admin in All, C#, Code Generation, Domain Specific Language, Expert, Java, OOP, Parsing, Professional Programming
Create your own DSL for Java or C# (part 4): adding a Semantic Layer
According to Martin Fowler:
In the context of a DSL, a semantic model is an in-memory representation, usually an object model, of the same subject that the DSL describes. The Semantic Model increases the flexibility in parsing and also in execution. You can execute the Semantic Model directly or you can ...more»
Tags: C#, Code Generation, dsl, Java, Martin Fowler, Model, OOP, Parsing
3 Jul by admin in All, Automation, Code Generation, Domain Specific Language, Java, Professional Programming
Create your own Java Code Generator with DSL in 15 minutes [part 3]
Are you fed up with launching your heavy-weighted java eclipse IDE when you just need to create a quick java class to do some testing (by the way if someone knows an equivalent of Snippet Compiler but for Java that would interest me) ? Don't you miss your simple notepad ...more»



![Create your own Java Code Generator with DSL in 15 minutes [part 3]](http://reboltutorial.com/files/2009/07/java_code_generation.jpg )


No Comment