Declaring an awk function in bash
===

I have an awk script which is called by :

    awk -f myawkfile.awk arguments

The awk script is called into my bash script using the same mentioned call.
Can I , instead of calling the awk script declare it as a function in my bash script. I thought it would be  easy  by writing an `awk`in front and back ticking the whole code ,then to assign a function name to call it at will .Somehow it doesnt do the trick. I have included my `awk` code snippet

    BEGIN {
    com=0;
    nbtoken=0;
     }

     /^[ \t]*$/ {
     next;
       }

       {
    myline = $0;

    while (myline ~ /\\[ \t]*$/) {
    n=0;
    do {
    n += index(substr(myline , n+1), "\\");
    }
  
    ..........#blah
    if (match(line, "^[ \t]*$") == 0)
	printf("%s\n", ligne);
   }


May be the snippet was not neccesary ,but to give a general idea .
I am trying to do this because I dont want my script to have dependency on another script .And I am not the one who wrote the `awk` script . It take a file and does some stuffs and gives back the modified file which  is used in my script . 