tokay 0.6.13

Tokay is a programming language designed for ad-hoc parsing.
Documentation
# etareneg: Script to in-place generate & substitute code segments

BEGIN               {
                        in_gen = 0
                    }

/\/\*GENERATE/      {
                        print

                        if( in_gen )
                            next

                        in_gen = 1

                        gsub( "\\/\\*GENERATE", "" )
                        gsub( "\\*\\/$", "" )

                        system( $0 )

                        next
                    }

/\/\*ETARENEG/      {
                        print
                        in_gen = 0

                        next
                    }

                    {
                        if( !in_gen )
                            print
                    }