otac0n / Pegasus

A PEG parser generator for .NET that integrates with MSBuild and Visual Studio.

Home Page:http://otac0n.com/Pegasus/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compilation error if I use a @namespace like foo.Pegagus

xanatos opened this issue · comments

I wanted to put the grammar in the MyNamespace.Pegagus namespace. The generated code isn't compatible. In the generated code change:

using Pegasus.Common;

to

using global::Pegasus.Common;

(and just to be sure, it is better to put a general:: in the

using System;
using System.Collections.Generic;

This is a basic feature of the System CodeDOM stuff, but it generates ugly code. I'm still considering what configuration is necessary in order to avoid having to always emit the assembly-qualified name.