Used attributively before another noun, e.g., "barf bag"
Definitionen
Relating to or intended for vomiting; used before another noun. The airline provides barf bags in every seat pocket.
Exclamation expressing disgust or imitating the sound of vomiting
Definitionen
Used to express disgust or to imitate the sound of vomiting. Barf! That movie scene was revolting.