problem instanciating the compiler
Posted: Wed Dec 17, 2008 9:38 am
Can anyone help with this problem:
compiling with
generate an internal error:
Thanks!
class Test
def main is shared
cobra = Compiler()
compiling with
- Code: Select all
cobra -ref:cobra.exe -ref:Cobra.Lang.dll test.cobra
generate an internal error:
- Code: Select all
(empty)(1): error: COBRA INTERNAL ERROR / RequireException / ; sourceSite = C:\home\dev\src\dotnet\projects\cobralanguage\Source\Container.cobra:148 in NameSpace.addDecl for object NameSpace-sh(5236, name=Lang, didBindInh=false, didBindInt=false, didBindImp=false, token=Token.empty, subCount=0, isUnified=true, didBindUse=false, superNameSpace=NameSpace-mi(5234, name=Cobra, didBindInh=false, didBindInt=false, didBindImp=false, token=Token.empty, subCount=1, isUnified=true, didBindUse=false, 5234), unifiedNameSpace=nil, 5236); info = nil; this = NameSpace-de(5236, name=Lang, didBindInh=false, didBindInt=false, didBindImp=false, token=Token.empty, subCount=0, isUnified=true, didBindUse=false, superNameSpace=NameSpace-mi(5234, name=Cobra, didBindInh=false, didBindInt=false, didBindImp=false, token=Token.empty, subCount=1, isUnified=true, didBindUse=false, 5234), unifiedNameSpace=nil, declsInOrder=['Class'-'sh'(5237, 'name'='CobraCore', 'didBindInh'=false, 'didBindInt'=false, 'didBindImp'=false, 'token'='Token.empty', 'd
Compilation failed - 1 error, 0 warnings
Not running due to errors above.
Thanks!