3
Iは、次のようなエラーがpyparsingはエラー
from pyparsing import Word,alphas,nums,Or,Regex,StringEnd
ws = Regex('\s*')
dot = "."
w = Word(alphas) + (ws | dot) + StringEnd()
w.leaveWhitespace()
w.parseString('AMIT.')
を返しpyparsingにこのエラーで立ち往生しています:
ParseException: Expected end of text (at char 4), (line:1, col:5)
ParseException:期待されるテキストの終了(char 4)、(行:1、col:5) –
いいえ、StringEndは定義されていません。私はここにそれを書くのを忘れた –