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
As titled.
Now it is not generate the namespace, so we need to prepare the namespace object somewhere else before including the generated parser script, request to generate the namespace object. The generated code should be:
module name without namespace (i.e. moduleName = "myParser"):
varmyParser=(function(){// same as before})();
module name with single level namespace (i.e. moduleName = "jison.myParser"):
varjison;(function(jison){jison.myParser=(function(){// same as before})();})(jison||(jison={}));// only create new object if not exists
module name with nested namespace (i.e. moduleName = "com.zaach.jison.myParser"):
varcom;(function(com){varzaach;(function(zaach){varjison;(function(jison){jison.myParser=(function(){// same as before})();})(jison=zaach.jison||(zaach.jison={}));})(zaach=com.zaach||(com.zaach={}));})(com||(com={}));
The text was updated successfully, but these errors were encountered:
sammyhk
added a commit
to sammyhk/jison
that referenced
this issue
May 5, 2015
As titled.
Now it is not generate the namespace, so we need to prepare the namespace object somewhere else before including the generated parser script, request to generate the namespace object. The generated code should be:
The text was updated successfully, but these errors were encountered: