CnCodeFormater Readme
Author: passos
Email: passos@cnpack.orgpassos@21cn.com
Last Update:2003-12-16
Directories
\CnParser Object pascal 璇硶瑙f瀽鍣?
\DCU 嫻嬭瘯宸ョ▼DCU杈撳嚭鐩綍
\Test 嫻嬭瘯宸ョ▼
Surpport
Simple Stamtment can work
The others language future need to be test ...
Not Surpport
Class type declare still cause error.
And so on ...
TODO
Modify TCnCodeFormater s Class declare section.
Add Scaner.ForwardToken future.
any thing that I forget ...
FastReport is reporting tool component. It consists of report engine, designer and preview. It written on 100 Object pascal and can be installed in Delphi 2-7 and C++Builder 1-6. Also available cross-platform version FR CLX for Delphi 6,7 C++ Builder 6 and Kylix 1,2,3 - check out webpage to get latest information.
編譯課上做的小程序,用四種分析方法分別實現(LL1,算符優先,遞歸下降,簡單詞法分析)
完成對正則文法所描述的pascal語言子集單詞符號的詞法分析程序。
<標識符>→字母︱ <標識符>字母︱ <標識符>數字
<無符號整數>→數字︱ <無符號整數>數字
<單字符分界符> →+ ︱- ︱* ︱ ︱(︱)
<雙字符分界符>→<大于>=︱<小于>=︱<小于>>︱<冒號>=︱<斜豎>*
<小于>→<
<等于>→=
<大于>→>
<冒號> →:
<斜豎> →/
識別語言的保留字 :begin end if then else for do while and or not
This book has been written to support a practically oriented course in programming language
translation for senior undergraduates in Computer Science. More specifically, it is aimed at students
who are probably quite competent in the art of imperative programming (for example, in C++,
pascal, or Modula-2), but whose mathematics may be a little weak students who require only a
solid introduction to the subject, so as to provide them with insight into areas of language design
and implementation, rather than a deluge of theory which they will probably never use again
students who will enjoy fairly extensive case studies of translators for the sorts of languages with
which they are most familiar students who need to be made aware of compiler writing tools, and to
come to appreciate and know how to use them. It will hopefully also appeal to a certain class of
hobbyist who wishes to know more about how translators work.