# Path: LL1_Academy/models.py
# class Grammar(models.Model):
# 
# 	gid = models.AutoField(primary_key = True)
# 	prods = models.CharField(max_length=200)
# 	nonTerminals = models.CharField(max_length=4)
# 	terminals = models.CharField(max_length=4)
# 	startSymbol = models.CharField(max_length=1)
# 	nStart = models.IntegerField(default=0)
# 	nComplete = models.IntegerField(default=0)
# 	nSkip = models.IntegerField(default=0)
# 	
# 	def __str__(self):
# 		return str(self.gid) + ' ' + self.prods


from django.core.management.base import BaseCommand, CommandError
from LL1_Academy.models import Grammar

class Command(BaseCommand):
    help = 'This will delete all grammars in the database be careful'
    
    def handle(self, *args, **options):

# Path: LL1_Academy/models.py
# class Grammar(models.Model):
# 
# 	gid = models.AutoField(primary_key = True)
# 	prods = models.CharField(max_length=200)
# 	nonTerminals = models.CharField(max_length=4)
# 	terminals = models.CharField(max_length=4)
# 	startSymbol = models.CharField(max_length=1)
# 	nStart = models.IntegerField(default=0)
# 	nComplete = models.IntegerField(default=0)
# 	nSkip = models.IntegerField(default=0)
# 	
# 	def __str__(self):
# 		return str(self.gid) + ' ' + self.prods


# Path: LL1_Academy/management/commands/cleardatabase.py
from django.core.management.base import BaseCommand, CommandError
from LL1_Academy.models import Grammar


class Command(BaseCommand):
    help = 'This will delete all grammars in the database be careful'
    
    def handle(self, *args, **options):

        Grammar.objects.all().delete()