なお、for文については、作っていないので注意。この他にも、演算子など必要な機能に ついては各自演習で作ること。 tiny Cの文法 以下に、簡単なBNF書式での文法を示す。 小文字は、非終端記号を示す。但し、 variable_name, function_name, array_name, parameter は識別子 大文字は、終端記号。大文字で示してあるIF,RETURN,WHILE,FOR、PRINTLNは、キーワード NUMBERは、10進数。STRINGは、"..."の文字列。 ' 'は、1文字の終端記号。 {...}*は、...の部分の0回以上の繰り返し示す。 [ ]は省略可能の部分を示す。 tiny Cの文法 program := {external_definition}* external_definition:= function_n