You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should be possible to add annotations to all Cfg elements like Cfg.Rule, Cfg.Terminal or Cfg.NonTerminal. This annotations can than be used to influence the program generation from an CFG. Such an annotation could be a weight for a given element, which is than be used to influence the selection probability during program generation.
Example
A BNF representation might look like this:
It should be possible to add annotations to all
Cfg
elements likeCfg.Rule
,Cfg.Terminal
orCfg.NonTerminal
. This annotations can than be used to influence the program generation from an CFG. Such an annotation could be a weight for a given element, which is than be used to influence the selection probability during program generation.Example
A BNF representation might look like this:
In this example, the
<num>
rule would have a selection probability of 1/10 and the<var>
rule of 4/10.With such annotation it will be possible to generate programs with the desired properties much easier.
The text was updated successfully, but these errors were encountered: