mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-22 09:32:53 -06:00
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.
13 lines
254 B
C
13 lines
254 B
C
#ifndef PGF_LITERALS_H_
|
|
#define PGF_LITERALS_H_
|
|
|
|
#include <pgf/data.h>
|
|
|
|
// literal for named entities recognition
|
|
extern PgfLiteralCallback pgf_nerc_literal_callback;
|
|
|
|
PgfCCat*
|
|
pgf_literal_cat(PgfConcr* concr, PgfLiteral lit);
|
|
|
|
#endif // PGF_LITERALS_H_
|