private static object ReadLiteral(TokenCollection stream) { if (stream.NextIsEndOfLine) { throw new HspLogicalLineException("リテラル:読み込み中にスタックが空になった"); } //リテラルプリティブ読み込み LiteralPrimitive token = stream.GetNextToken() as LiteralPrimitive; if (token == null) { throw new HspLogicalLineException("リテラル:不適切な要素を検出"); } return(new LiteralToken(token)); }
internal LiteralToken(LiteralPrimitive token) { this.token = token; }