Ayuda - control de fase dimmer error de sintaxis

estoy iniciandome en arduino y estoy tratando de hacer un dimmer pero tengo un problema creo con la sintaxis y lei mucho y no encuentro la solucion, alguien que me pueda ayudar?

int pin = 2;

void setup() {
pinMode(10, OUTPUT);
pinMode(2, INPUT);
int interrupcion;
int no_interrupt=0;
int programa;
attachInterrupt(no_interrupt, interrupcion, FALLING);
}

int programa() {
digitalWrite(10, HIGH);
//Serial.println(10);
delay(1);
digitalWrite(10, LOW);
delay(130);

}
void interrupcion() {
if (pin = 0) {
return loop;
}
}

Problem 1
Where is the loop() function ?

Problem 2
What do you think that
      return loop;does ?

There are more but fix those first.

sorry, that was the last change but it was:

void loop at beggining and returs loop at the end and it doesnt work

i have a circuit where a pin gives a signal is HIGH when voltage AC is 0, it is pin 2 and the output is pin 10 and i want begin tha high output "x"(2 or 3 ms) miliseconds after cross by zero volts

Hola tlalocfher, creo que eso que escribes te ocurre por falta de conocimiento primero y por no leer las Normas del foro que recomiendan buscar en este foro o en google sobre el tema.
Si hubieras puesto en Google: Arduino AC dimmer mira lo que hubieras optenido.

Enlace y curiosamente donde está en este foro.

Tu programa además no tiene loop() y adolece de errores conceptuales como este ejemplo que ya te señalaron
return loop() sin loop(), además no se puede hacer return a una función.

Mira el enlace y tendras tu problema resuelto.
Si hay dudas lo debatimos.