Created
January 28, 2025 15:30
-
-
Save darkfrog26/4d810642f1cf632adbabd0948f46b60a to your computer and use it in GitHub Desktop.
Meta Language Idea?
This file contains hidden or 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
@scala { | |
object Example { | |
@java { | |
public void main(String[] args) { | |
... | |
} | |
} | |
val json = @json { | |
one: 1, | |
two: 2 | |
} | |
val xml = @xml <document> | |
<one>1</one> | |
<two>2</two> | |
</document> | |
@python { | |
def my_method(self): | |
print("This is Python!") | |
} | |
@javascript { | |
foo() { | |
return "bar"; | |
} | |
} | |
val sql = @sql { | |
SELECT * FROM my_table | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment