p4lang / p4c

P4_16 reference compiler
https://p4.org/
Apache License 2.0
667 stars 441 forks source link

Consider merging two different doc files on p4c IR into one #4748

Closed jafingerhut closed 2 months ago

jafingerhut commented 3 months ago

@AdarshRawat1 This is primarily for you to think about, but I would guess @fruffy may have some good suggestions here.

There are two *.md files describing the P4C intermediate representation (IR):

While it is not absolutely necessary to merge them into one somehow, it seems like it might be worth considering if that would be better when browsing/reading the docs.

AdarshRawat1 commented 3 months ago

I agree, it would be beneficial to combine them so that there will be only one source to keep track of P4C intermediate representation (IR) details .

ChrisDodd commented 3 months ago

I think there's a place for both.

That's not to say what is currently in these files is at all adequate -- more (and better organized) documentation is always a good thing.

jafingerhut commented 3 months ago

If they are kept separate, it would be nice in the doxygen output if they were adjacent to each other.

jafingerhut commented 2 months ago

Closing this issue, as even though these two pages remain separate, for which there are good reasons to do so mentioned by Chris Dodd in his comment above, they are now adjacent in the navigation bar in the latest version as of 2024-Jul-21 here: https://p4lang.github.io/p4c/index.html