A generally finely crystalline or glassy igneous rock resulting from volcanic action at or near the earth's surface, either ejected explosively or extruded as lava. The term includes near-surface intrusions that form a part of the volcanic structure.