Skip to content

Instantly share code, notes, and snippets.

@enjoysmath
enjoysmath / gist:5788931
Created June 15, 2013 17:50
Lols.d(52): Error: cannot index null array null Lols.d(52): called from here: equalsAnyOf(null[0u], ["lols", "lols-d"], cast(CaseSensitive)0)
enum string[] tokens = split (getFirstStringAttribute!T);
static if (! (tokens[0].equalsAnyOf (["lols", "lols-d"]) && tokens.length == 2)) // case insens
{
}
SDLangGrammar:
#################
###### Tags #####
#################
Tag < Name? (Value :Spacing)* (Attribute :Spacing)* ('=' '{' (Tag :Spacing)* '}')?
Attribute < Name '=' Literal
Name < Identifier ':' Identifier
Identifier <~ ![0-9] IdChar+
IdChar <- ![=:{}#/] !backquote !quote !doublequote !backslash .
mixin(grammar(`
SDLang:
Tag <- Id Value* Attribute* ('=' '{' Tag* '}')?
Value <-
Id <- &NonDigit (IdChars)+
NonDigit <- ![0-9]
IdChars <- ![` ~ "`" ~ `=:{}#/"\']
`));
module main;
import std.stdio;
interface A {}
class B(T) : A
{
private:
T val;
public:
/++
Defines a valid range of possible values for a data variable
+/
module TheApp.DataVar;
import std.algorithm;
interface VarI
{
}
------ Build started: Project: ConsoleApp3, Configuration: Debug Win32 ------
Building Debug\ConsoleApp3.exe...
OPTLINK (R) for Win32 Release 8.00.12
Copyright (C) Digital Mars 1989-2010 All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
Debug\ConsoleApp3.obj(ConsoleApp3)
Error 42: Symbol Undefined _D3std7variant175__T8VariantNVk20TbTAyaTwTiTlTfTdTeTS3std8datetime4DateTS7sdlang_5token12DateTim3C8078137192C3E78E783E8A17EBEDF9
Debug\ConsoleApp3.obj(ConsoleApp3)
Error 42: Symbol Undefined _D7sdlang_3ast3Tag147__T11MemberRangeTC7sdlang_3ast9AttributeVAyaa13_616c6c41747472696275746573VCBC11A73D55349AF5C5FDC85D9A6651F
Debug\ConsoleApp3.obj(ConsoleApp3)