grammar_proper.txt
来自「Code for top down parser in C++」· 文本 代码 · 共 29 行
TXT
29 行
# Grammar definition file used by the app
#
# Dmitry Brant, Spr 2004
#
<L> -> <A><L'>
<L'> -> ;<A><L'> | <epsilon>
<A> -> <I>=<E><#gen>
# I added the "plus" and "multiply" constructions
# just for consistency
# (since the assembly language supports it)
<E> -> <T><E'>
<E'> -> -<T><#gen><E'> | +<T><#gen><E'> | <epsilon>
<T> -> <F><T'>
<T'> -> /<F><#gen><T'> | *<F><#gen><T'> | <epsilon>
<F> -> <P><F'>
<F'> -> ^<F><#gen> | <epsilon>
<P> -> (<E>) | <I>
<I> -> w|x|y|z
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?