mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-25 02:38:55 -06:00
now linearization is working
This commit is contained in:
@@ -442,6 +442,8 @@ async function mkAPI() {
|
|||||||
const len = asm.gu_string_buf_length(sb);
|
const len = asm.gu_string_buf_length(sb);
|
||||||
const str = UTF8ToString(strPtr,len);
|
const str = UTF8ToString(strPtr,len);
|
||||||
asm.gu_pool_free(tmp_pool);
|
asm.gu_pool_free(tmp_pool);
|
||||||
|
|
||||||
|
return str
|
||||||
}
|
}
|
||||||
|
|
||||||
async function readPGF(pgfURL) {
|
async function readPGF(pgfURL) {
|
||||||
@@ -468,8 +470,9 @@ async function mkAPI() {
|
|||||||
const itor = asm.gu_malloc(tmp_pool,sizeof_GuMapItor);
|
const itor = asm.gu_malloc(tmp_pool,sizeof_GuMapItor);
|
||||||
const fn =
|
const fn =
|
||||||
addFunction(
|
addFunction(
|
||||||
(itor,namePtr,concrPtr,err) => {
|
(itor,namePtr,concrPtrPtr,err) => {
|
||||||
const name = UTF8ToString(namePtr);
|
const name = UTF8ToString(namePtr);
|
||||||
|
const concrPtr = HEAP32[concrPtrPtr >> 2];
|
||||||
pgf.languages[name] = new Concr(pgf,concrPtr,name);
|
pgf.languages[name] = new Concr(pgf,concrPtr,name);
|
||||||
},
|
},
|
||||||
"viiii"
|
"viiii"
|
||||||
|
|||||||
Reference in New Issue
Block a user