This project is read-only.

>> operator and strings in boo

Jan 3, 2009 at 12:16 PM

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

    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)

    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.


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