Created
January 7, 2015 01:44
-
-
Save xbony2/f87791c60f969c01a697 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
This is experimental just to see what it looks like. I'm probably not going to make a compiler :P | |
--> | |
<import type="static">java.lang.System.out</import> | |
<class name="HelloWorld"> | |
<method name="main" arguments="String[] args"> | |
<call name="out.println" args="Hello World!"/> | |
</method> | |
</class> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is what that code would look like in CFML (ColdFusion markup language. (note CF also supports a JavaScript-like script syntax too)
HelloWorld.cfc
And for completeness, this would be how you call it:
Output to the console (or Servlet's "out" log file):
Of course, the convention of main( String args ) doesn't exist in CF, nor would I use the system out, but you get the picture :)