From 0674d5741ff74e59b5de359803c11251e1718e9f Mon Sep 17 00:00:00 2001 From: "Meredith L. Patterson" <mlp@thesmartpolitenerd.com> Date: Thu, 2 Jan 2014 03:44:07 +0100 Subject: [PATCH] camelcase predicate breaks on repeat_n; need java unicode style escape sequences --- lib/tsgenjava.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tsgenjava.pl b/lib/tsgenjava.pl index 7d6a8cee..d3d719a5 100644 --- a/lib/tsgenjava.pl +++ b/lib/tsgenjava.pl @@ -4,7 +4,7 @@ % Note: this needs to be run from the lib/ directory. % So, -% swipl -q -t halt -g tsgenjava:prolog tsgenjava.pl >../src/bindings/java/test/hammer_tests.java +% swipl -q -t halt -g tsgenjava:prolog tsgenjava.pl >../src/bindings/java/src/test/java/hammer_tests.java :- module(tsgenjava, @@ -94,7 +94,7 @@ pp_parser(num(Num)) --> !, "-0x", {RNum is -Num}; "0x", {RNum = Num} ), pp_hexnum_guts(RNum). pp_parser(char(C)) --> !, - "'", pp_char_guts(C), "'", !. + "\"", pp_char_guts(C), "\"", !. pp_parser(ref(Name)) --> {atom_codes(Name,CName)}, -- GitLab