I need Help by Parsing :
i need to
I want to open a file with Python (*. txt) and search the key words (LoopStart, SEND, CONT ....) , then call the functions of these key words ,should I use pypython? I need to create a grammar or not ?Please Help...
Script exp :
LOOPSTART [TEST_FLASHMODE] COUNT [1]
DIAG [SET_ENERGIESPARMODE_NORMAL] SEND [31,01,0F,0C,00] EXPECT[71,01,0F,0C,*] TIMEOUT [0] SOURCE[F1] TARGET [10]
i need to
I want to open a file with Python (*. txt) and search the key words (LoopStart, SEND, CONT ....) , then call the functions of these key words ,should I use pypython? I need to create a grammar or not ?Please Help...
Script exp :
LOOPSTART [TEST_FLASHMODE] COUNT [1]
DIAG [SET_ENERGIESPARMODE_NORMAL] SEND [31,01,0F,0C,00] EXPECT[71,01,0F,0C,*] TIMEOUT [0] SOURCE[F1] TARGET [10]