Help starting OSL scripting in blender

Hello people,
I tried a lot to write some OSL scripts but there are no materials available on it. Plus, the scripts I pasted from this forum are all returning errors. Ofcourse, it’s my mistake but can anyone just help me start compiling the stuff?

They all show Unknown location errors.:frowning:

Thanks in advance

Hi Johnny, ´unknown location’ errors are new to me, could you perhaps share a screenshot and the OSL shader code that you are trying to compile?