Example #1
0
        private void VisitEntities(KayleeParser.EntityBodyContext body)
        {
            var entities = body.entity();

            foreach (var entity in entities)
            {
                var entityListener = new EntityListener(Entity.Schema, Entity);
                entity.EnterRule(entityListener);
            }
        }
Example #2
0
        public override void EnterSchema([NotNull] KayleeParser.SchemaContext context)
        {
            var identifier = context.IDENTIFIER();

            Schema.Name = identifier.GetText();

            var body     = context.schemaBody();
            var entities = body.entity();

            foreach (var entity in entities)
            {
                var entityListener = new EntityListener(Schema);
                entity.EnterRule(entityListener);
            }
        }