mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 19:22:50 -06:00
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.
This commit is contained in:
@@ -199,8 +199,6 @@ typedef GuMap PgfCncOverloadMap;
|
||||
|
||||
typedef struct PgfItem PgfItem;
|
||||
|
||||
typedef GuMap PgfCallbacksMap;
|
||||
|
||||
typedef GuVariant PgfSymbol;
|
||||
|
||||
typedef enum {
|
||||
@@ -280,7 +278,6 @@ struct PgfConcr {
|
||||
PgfSequences* sequences;
|
||||
GuBuf* pre_sequences;
|
||||
PgfCIdMap* cnccats;
|
||||
PgfCallbacksMap* callbacks;
|
||||
int total_cats;
|
||||
|
||||
GuPool* pool; // if the language is loaded separately then this is the pool
|
||||
|
||||
Reference in New Issue
Block a user