Font Size: a A A

Research On Chinese Character Cross-platform Compiler

Posted on:2014-04-12Degree:MasterType:Thesis
Country:ChinaCandidate:F ZhuFull Text:PDF
GTID:2298330422490412Subject:Computer Science and Technology
Abstract/Summary:PDF Full Text Request
Computer programming languages have always been mainly in English.Learning English is the first step for non-native speakers of English to learnprogramming. This enhances the difficulty of spreading programming knowledgeand training programmers. Design a non-English programming language isconducive to people who are in different countries and have different educationallevels to learn programming knowledge and technology. In recent years, with therise of mobile Internet, people are more dependent on smartphones and need moreapplications. If Chinese characters are used to program on smartphones, it willimprove program readability and reduce the difficulty of programming for peoplewho can only read Chinese. Developing a smartphone application is not difficult,but it needs to use different development environments to develop an application indifferent operating systems. This method will take a very long time, socross-platform compile is very convenient and important.The main contents of this paper are to design Chinese programming language,develop corresponding Chinese cloud compiler and improve MoSync cross-platformcompiler. Chinese programming language use BNF (Backus-Naur Form) format todefine its grammar, which can support to define Chinese variable names andfunction names. It can do four arithmetic and all logic operations. The expressiontypes include assignment statements, loops and conditional statements. It alsosupports to define custom functions and call those functions. Chinese cloudcompiler consists the client and the cloud. The client is implemented by MoSyncsystem or PhoneGap framework, which can send source code to the cloud withHTTP format. Cloud deploys lexer, parser, type checker, and a virtual machine.Lexer uses Unicode to code all the characters. Parser exports AST as theintermediate code. Type checker will check the data type and expression structurewhether they are legal or not. The virtual machine can translate intermediate codeinto a set of executable instruction sequence. MoSync is a cross-platform compilingsystem based on virtual machine, which exports different formats of executable filesaccording to the different platforms. This paper improved exporting and packagingmodule in MoSync compiling system, adding the unified digital signature andexporting the unified format executable files no matter what the target platformsare.The subjects of the work include: designed a complete set of Chineseprogramming language grammar, achieved the Chinese cloud cross-platformcompiler which can program on smartphones and have the ability to analyze Chinese characters programming language, improved MoSync cross-platformcompiling system, so downloading and installing the applications are moreconvenient.
Keywords/Search Tags:Chinese programming, smart phones, cross-platform
PDF Full Text Request
Related items