Skip to content

Instantly share code, notes, and snippets.

@anthony-cros
Created October 13, 2022 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anthony-cros/9570ea90bb8430232ece3249eccac11a to your computer and use it in GitHub Desktop.
Save anthony-cros/9570ea90bb8430232ece3249eccac11a to your computer and use it in GitHub Desktop.
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