From 9bc5349e622cf00156b46f56a940d035e000115a Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Tue, 16 Dec 2014 10:21:26 +0000 Subject: change in the API for literals The API in the C runtime as well as in the Haskell, Python and Java binding is changed. Now instead of adding the literal callbacks to the concrete syntax you need to supply them every time when you need to parse. The main reason is: - referentially transparent API for Haskell - when we start using memory mapped files we will not be allowed to change anything in the grammar data structures. At that point the old API would be impossible to use. --- src/runtime/java/Test.java | 1 - 1 file changed, 1 deletion(-) (limited to 'src/runtime/java/Test.java') diff --git a/src/runtime/java/Test.java b/src/runtime/java/Test.java index 08d6445cb..3c27e641b 100644 --- a/src/runtime/java/Test.java +++ b/src/runtime/java/Test.java @@ -20,7 +20,6 @@ public class Test { System.out.println(gr.getAbstractName()); for (Map.Entry entry : gr.getLanguages().entrySet()) { System.out.println(entry.getKey()+" "+entry.getValue()+" "+entry.getValue().getName()); - entry.getValue().addLiteral("PN", new NercLiteralCallback(gr,entry.getValue())); } Concr eng = gr.getLanguages().get("SimpleEng"); -- cgit v1.2.3