is it illegal for a minor to eat in a resturant and leave without paying
Restaurant is a business and eating there, you have to pay for what you ordered. If a minor tries to escape without paying what he eat, he will be referred to the authorities for penalties or he may opt to work for it in the restaurant.
It is always illegal to eat in a restaurant and leave without paying, no matter what age you may be. This is called stealing.