You need to replace the first step in the pipeline from BooParser to WsaBooParser, IIRC
On Tue, Mar 24, 2009 at 5:57 AM, nightwatch77 <[email protected]>wrote: > > Hi, I'd like to use Rhino DSL to compile Boo scripts but cannot enable > whitespace agnostic mode - during compilation with Rhino DSL I get > indentation errors, while commandline compiler runs clean on the same > file with '-wsa' switch. Boo Compiler version 0.8.2.3032 (CLR > v2.0.50727.1433) > My DSL engine compiler config sets the WhitespaceAgnostic option to > true: > > protected override void CustomizeCompiler > (Boo.Lang.Compiler.BooCompiler compiler, > Boo.Lang.Compiler.CompilerPipeline pipeline, string[] urls) > { > > List<Assembly> asmss = new List<Assembly>(); > asmss.AddRange(AppDomain.CurrentDomain.GetAssemblies()); > > foreach (Assembly asm in asmss) > { > try > { > string loc = asm.Location; > if (!compiler.Parameters.References.Contains(asm)) > compiler.Parameters.References.Add(asm); > } > catch (Exception) { log.Debug("Error adding assembly > dependency: {0}", asm.FullName); } > } > compiler.Parameters.Ducky = true; > compiler.Parameters.WhiteSpaceAgnostic = true; > pipeline.Insert(1, new AutoReferenceFilesCompilerStep()); > } > > and my boo script to compile (yes, it's dynamically generated): > > import NGinnBPM.Lib.Data > import NGinnBPM.Lib.Interfaces > import NGinnBPM.Lib.Schema > import NGinnBPM.Runtime > import NGinnBPM.Services > import NGinnBPM.Lib.Exceptions > import NGinnBPM.Services.Scripting.BooScript > class BooScript_Test_Proc_6 > (NGinnBPM.Services.Scripting.BooScript.ScriptBase): > def Initialize(): > add_expression "InputBinding_T1_v3": > return data.v1 > end > add_expression "InputBinding_T1_v4": > return data.v2.Length > end > end > end > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Rhino Tools Dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rhino-tools-dev?hl=en -~----------~----~----~----~------~----~------~--~---
