-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error:interpret examples #38
Comments
Are you using the most recent version of the code? This is failing to parse ‘<<‘ on like 6, but that’s not there anymore — it got replaced with ‘<‘ a long time ago. |
I am not using the latest version because I want to reproduce the regex example from the FLM paper, but I can't find it in the latest version. |
Sequence Abstractions for Flexible, Line-Rate Network Monitoring,I want to reproduce the examples from this paper. Could you please tell me which branch I should use to successfully replicate them? |
It looks like the link in the paper is pointing to the SpecRegex branch, which would explain where the extra << is coming from. I’m guessing that somehow either the example files on that branch never got updated, or you’re using the main branch of lucid on the files from the SpecRegex branch. For the puppies if getting lucid set up, you can probably try using the tutorial files from the main branch instead. Presumably the SpecRegex files which are directly related to the paper will work out-of-the-box. It would be nice if @aj3189 has the time to ensure all of SpecRegex is up-to-date with the rest of lucid, although it’s also a good idea to keep a dedicated branch for paper artifacts, so perhaps we should freeze SpecRegex (after making sure it all works) and create another branch that’s more up-to-date. |
Thank you. Where can I find the latest usage instructions for Lucid? I'd like to try updating the regex code myself. |
Off the top of my head, I’d start by doing the tutorial on the main branch to get a feel for lucid (if you haven’t already). Then you can look at the wiki and several of the examples to learn about the language features (examples/interp_tests is good for this). Note that the language features page on the is intended more as a reference than a tutorial. You could try merging the SpecRegex branch into main on your computer, but I’m not sure how easy it would be. If you want to try fixing things manually, I can at least tell you that the error in your first post was caused by a syntax change where we changed e.g. int<<32>> into int<32>. |
Hmm, unfortunately I don’t think we have any docs on updating code from an arbitrary previous version of Lucid. I pinged @aj3189, perhaps he can help. |
hi @scxjyjy thanks for looking into the code. I was able to recreate your error buy running |
Hi, sorry the repo is a little messy. That file you are running was a test file for use in the interpreter, though I can see the confusion is easy to make. All of the examples from the paper are in the subfolders that have the same names as the headings in the paper table from section 9. So, for the DHCP example from the paper, we ran first the simple RIP (control) program at |
hi@aj3189,If errors are difficult to resolve, could you provide a copy of the P4 code generated after compiling |
Wow, we commented at exactly the same time. I've never seen that. See my other comment and post again if it doesn't help. Thanks again! |
If you don't care about adding the "simple_RIP" control, then the file at |
|
i follow the readme,but it‘s wrong!
The text was updated successfully, but these errors were encountered: