Skip to content
Snippets Groups Projects
Commit 4c65fc09 authored by 2269767's avatar 2269767
Browse files

+lexer +parser + PLY

parent b067583c
No related branches found
No related tags found
No related merge requests found
from ply.lex import lex
from ply.yacc import yacc
#Een functie die aangeeft bij welk eindhaakje het beginhaakje hoort
def combinaties(string):
nestedlijst = []
......@@ -66,4 +68,4 @@ def indextotstring(relatielijst, string):
lijst = []
for i in range(len(relatielijst)):
lijst.append(string[relatielijst[i][0]+1:relatielijst[i][-1]])
return lijst
\ No newline at end of file
return lijst
from ply.lex import lex
from ply.yacc import yacc
\ No newline at end of file
from ply.lex import lex
from ply.yacc import yacc
\ No newline at end of file
# PLY package
# Author: David Beazley (dave@dabeaz.com)
# https://github.com/dabeaz/ply
__version__ = '2022.10.27'
File added
File added
File added
This diff is collapsed.
ply/yacc.py 0 → 100644
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment