private Signal ScanSignalDeclaration() { tokenizer.Match(TokenTypes.SignalKeyword, "signal"); if (tokenizer.LookaheadToken(1).IsType(TokenTypes.Assignment)) { return(ScanSignalAssignment()); } else { string name = tokenizer.MatchGet(TokenTypes.TextIdentifier).Text; return(system.CreateNamedSignal(name)); } }