1234567891011121314151617181920212223 |
- define(function(require){
- var parser = require("openscad-parser");
- var Globals = require("Globals");
- var support = require("openscad-parser-support");
- return {
- parser: parser,
-
- parse: function(text){
- if (parser.yy === undefined){
- parser.yy = {}
- }
- var openSCADText = Globals.preParse(text);
- var openJSCADResult = parser.parse(openSCADText);
- return openJSCADResult.lines.join('\n');
- }
- }
- });
|