Browse Source

fixando importações

Nicolas T 3 years ago
parent
commit
e1d7177133
4 changed files with 3 additions and 1 deletions
  1. 1
    0
      beuty.py
  2. 1
    0
      main.py
  3. 0
    1
      selection.py
  4. 1
    0
      semantico.py

+ 1
- 0
beuty.py View File

1
 from bs4 import BeautifulSoup
1
 from bs4 import BeautifulSoup
2
 import os
2
 import os
3
 import pickle
3
 import pickle
4
+
4
 def beut(tabela1, tabela2):
5
 def beut(tabela1, tabela2):
5
     with open('tabela.html', 'r') as file:
6
     with open('tabela.html', 'r') as file:
6
         soup = BeautifulSoup(file, "html5lib")
7
         soup = BeautifulSoup(file, "html5lib")

+ 1
- 0
main.py View File

1
 import sys
1
 import sys
2
 import argparse
2
 import argparse
3
 from selection import opction
3
 from selection import opction
4
+
4
 def main():
5
 def main():
5
 
6
 
6
     parser = argparse.ArgumentParser(description='Compilador para uma linguagem do tipo LL(1)')
7
     parser = argparse.ArgumentParser(description='Compilador para uma linguagem do tipo LL(1)')

+ 0
- 1
selection.py View File

2
 from beuty import initsintatico
2
 from beuty import initsintatico
3
 from semantico import semantico
3
 from semantico import semantico
4
 from  Geracaodecodigo import gerarcodigo
4
 from  Geracaodecodigo import gerarcodigo
5
-
6
 def opction(args):
5
 def opction(args):
7
     token = []
6
     token = []
8
     erro = []
7
     erro = []

+ 1
- 0
semantico.py View File

1
 import re
1
 import re
2
+
2
 def semantico(token, args, erro):
3
 def semantico(token, args, erro):
3
     Avariaveis(token, args,erro)
4
     Avariaveis(token, args,erro)
4
 def divisao(token, args, lista,erro):
5
 def divisao(token, args, lista,erro):

Loading…
Cancel
Save