Can. 913 §1. The administration of the Most Holy Eucharist to children requires that they have sufficient knowledge and careful preparation so that they understand the mystery of Christ according to their capacity and are able to receive the body of Christ with faith and devotion.
§2. The Most Holy Eucharist, however, can be administered to children in danger of death if they can distinguish the body of Christ from ordinary food and receive communion reverently.
Can. 914 It is primarily the duty of parents and those who take the place of parents, as well as the duty of pastors, to take care that children who have reached the use of reason are prepared properly and, after they have made sacramental confession, are refreshed with this divine food as soon as possible. It is for the pastor to exercise vigilance so that children who have not attained the use of reason or whom he judges are not sufficiently disposed do not approach holy communion.