正在加载图片...
A Grammar for 'list of digits separated by or-' list->list digit list->list-digit list->digit digit->01...19 Accepts strings such as 9-5+2,3-1,or 7. list and digit are non-terminals 0 1...9,+are the terminal symbols CS308 Compiler TheoryA Grammar for ‘list of digits separated by + or -’ list -> list + digit list -> list – digit list -> digit digit -> 0|1|… |9 • A t ti h 9 Accep ts s t r ings suc h as 9 -5+2 3, 3 -1 7 , or 7. • list and digit are non-terminals • 0|1| |9 0 | 1 | … | 9, +, - are th l bl e termina l sym b o ls CS308 Compiler Theory 8
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有