I was wondering if anyone has a link to a formal grammar for x64 assembly language, as I have been searching online but have not been able to find one. The grammar would ideally be in AT&T syntax and specify which registers, addresses, and values are allowed for each instruction. I am decently skilled at reading formal grammars but assembly language is new to me so I would use it as a reference.
P.S. if this is not the right place to ask this question, please tell me where else I could ask it instead. Thank you.