>> operator and strings in boo

Jan 3, 2009 at 11:16 AM
Hi,

I am trying to get the following syntax to compile for a DSL I am writing for the horn project:

dependencies:
    depend @log4net >> @lib

I cannot get the compiler to recognise the ">>" operator for strings.

What extra steps did you take?

I have the following compiler steps:

protected override void CustomizeCompiler(Boo.Lang.Compiler.BooCompiler compiler, Boo.Lang.Compiler.CompilerPipeline pipeline, string[] urls)
{
    foreach (Assembly asm in ReferencedAssemblies)
        compiler.Parameters.AddAssembly(asm);

    pipeline.Insert(1, new ImplicitBaseClassCompilerStep(typeof(BaseConfigReader), "Prepare", ImportedNamespaces.ToArray()));
    pipeline.InsertBefore(typeof(ProcessMethodBodiesWithDuckTyping), new UnderscorNamingConventionsToPascalCaseCompilerStep());
    pipeline.Insert(2, new UseSymbolsStep());
}

If you can give some guidance as to how to get the '>>' operator to regonise strings, I would be grateful.

Cheers

Paul
Coordinator
Jan 23, 2009 at 12:48 AM
Unfortunately, I don't recall - but I bet the source code does!