bnf

Z80 ASM BNF structure… am I on the right track?

痞子三分冷 提交于 2019-11-26 09:51:45
问题 I\'m trying to learn BNF and attempting to assemble some Z80 ASM code. Since I\'m new to both fields, my question is, am I even on the right track? I am trying to write the format of Z80 ASM as EBNF so that I can then figure out where to go from there to create machine code from the source. At the moment I have the following: Assignment = Identifier, \":\" ; Instruction = Opcode, [ Operand ], [ Operand ] ; Operand = Identifier | Something* ; Something* = \"(\" , Identifier, \")\" ; Identifier

Tool for generating railroad diagram used on json.org [closed]

两盒软妹~` 提交于 2019-11-26 07:53:20
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I love the syntax of railroad diagrams on json.org which are a graphical representation of the BNF language. I haven\'t found any tools that can produce results as eloquently. Can anyone identify the tool used to generate these diagrams? 回答1: There is an Online Railroad Diagram Generator. It creates SVG syntax