Skip to content

2.1 Introduction

For compiler, what can context-free grammar do?

1、Specify syntax as described in Section 2.2

2、Help guide the translation of programs, a grammar-oriented compiling technique known as syntax-directed translation introduced in Section 2.4

Parsing or syntax analysis is introduced in Section 2.4.