Created
October 13, 2022 16:02
-
-
Save anthony-cros/9570ea90bb8430232ece3249eccac11a 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
import gallia.*; | |
import scala.Symbol; | |
// =========================================================================== | |
class GalliaJava { // 220301145258; ~/lib/java$ javac -cp /tmp/gallia-core-assembly-0.3.2.jar:. Gallia.java && java -cp /tmp/gallia-core-assembly-0.3.2.jar:. Gallia | |
public static void main(String args[]) { | |
String data = "{\"name\": \"tony\", \"age\": 39, \"obsolete\": true}"; | |
gallia.heads.HeadU headu0 = gallia.package$.MODULE$.InputString__(data).read(); | |
gallia.heads.HeadU headu1 = (gallia.heads.HeadU)headu0.toUpperCase(RPathW.to("name")); | |
gallia.heads.HeadU headu2 = (gallia.heads.HeadU)headu1.increment (RPathW.to("age")); | |
gallia.heads.HeadU headu3 = (gallia.heads.HeadU)headu2.remove (KPathW.to("obsolete")); | |
headu3.printCompactJson(); | |
} | |
} | |
// =========================================================================== |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment