ply
ply lexmatch regular expression has different groups than a usual re
I am using ply and have noticed a strange discrepancy between the token re match stored in t.lex.lexmatch, as compared with an sre_pattern defined in the usual way with the re module.The group(x)\'s s[详细]
2023-04-05 17:07 分类:问答Is there grammar or lexer and parser for Python (or subset), written in PLY?
Is there grammar or lexer and parser for Python (or subse开发者_运维知识库t), written in PLY?I\'ve found it myself:[详细]
2023-02-21 10:30 分类:问答BNF: input going to wrong nonterminal
I\'m developing a BNF for chess algebraic notation and ran into an interesting case, input going to the wrong non-terminal.[详细]
2023-01-28 22:42 分类:问答Python: Trouble with YACC
I\'m using PLY to parse sentences like: \"CS 2310 or equivalent experience\" The desired output: [[(\"CS\", 2310)], [\"equivalent experience\"]][详细]
2023-01-01 06:35 分类:问答Python PLY zero or more occurrences of a parsing item
I am using Python with PLY to parse LISP-like S-Expressions and when parsing a function call there can be zero or more arguments. How can I put this into the yacc code. This is my function s开发者_开发[详细]
2022-12-30 03:14 分类:问答How to write a regular expression to match a string literal where the escape is a doubling of the quote character?
I am writing a parser using ply that needs to identify FORTRAN string literals. These are quoted with single quotes with the escape 开发者_如何学Gocharacter being doubled single quotes. i.e.[详细]
2022-12-18 00:11 分类:问答webstorm装什么插件才能有类似sublime text右侧这样的效果??
你张阿姨2019开发者_开发百科 2022-06-22 14:49 我找了找我的WS插件,是 CodeGlance[详细]
2022-12-16 20:11 分类:问答md5 module error
I\'m using an older version of PLY that uses the md5 module (among others): import re, types, sys, cStringIO, md5, os.path[详细]
2022-12-16 13:20 分类:问答Resolving a shift/reduce conflict in an LALR parser
I\'ve been using PLY to build up a parser for my language, however I\'ve got a shift/reduce conflict that\'s causing me some trouble.My language has generic types with a syntax ala C++ templates.开发者[详细]
2022-12-12 21:58 分类:问答