Examples in documentation



Could someone please explain how examples are created in info files. I
would like to know how to change examples embedded in comments like
@c ===beg===
@c example;
@c ===end===
so that they are written out in info files (I assume this can be done
automatically).

Thanks,
-- 
Andrej