Closed shouxi closed 8 years ago
Hi Shouxi, Thanks for reporting this, it was fixed in 07cb759a0bd4ee2a8f02fcde525c894d578292be
Cheers!
Hi I am getting this same error while compiling my program. I am very new and so just trying to figure out the reason. Can you please tell me what does this error mean. Can you please tell me what causes this error? I tried searching but this is the only link which shows my exact error.
Hi @shahbhoomi, as is reported
Semantic error: P4 program does not define a start parse state
It seems that your P4 program has not specified the start function for parsing. According to the P4 spec (see 17.1 Programming Conventions, v1.1),
Parsing begins with the parser state function named start.
you definitely should add it. Refer to this as an example.
The tutorial of copy_to_cpu is a showcase. (See copy_to_cpu.p4.txt for the v1.1-compatible p4 code). p4c_bm would report: