1

例如,我有语言生成器:

1) A -> baseLanguage
    a) defines a concept `a1`
    b) defines a label `a1ToClass`, in: `a1` of `A`, out: `ClassConcept` of `baseLanguage`
2) B -> A
    a) defines a concept `b1`
    b) defines a label `b1ToA1`, in: `b1` of `B`, out: `a1` of `A`

a1ToClass是否可以按以下形式从后一个生成器中引用标签?

node<b1> b1Instance = getB1InstanceNode(); 
node<a1> a1Instance = genContext.get output by label "b1ToA1" and input `b1Instance`;
node<ClassConcept> classConceptInstance = genContext.get output by label "a1ToClass" and input `a1Instance`;
4

1 回答 1

2

是的,

您需要 B 生成器对 A 生成器的“设计”依赖。然后映射标签变得可见。

瓦茨拉夫

于 2016-01-26T11:49:08.893 回答