View Code? Open in Web Editor
NEW
This is a clone of an SVN repository at https://qlanguage.googlecode.com/svn/trunk. It had been cloned by http://svn2github.com/ , but the service was since closed. Please read a closing note on my blog post: http://piotr.gabryjeluk.pl/blog:closing-svn2github . If you want to continue synchronizing this repo, look at https://github.com/gabrys/svn2github
C++ 94.16%
Assembly 0.22%
C 5.20%
Shell 0.42%
qlanguage's Introduction
一、文件目录结构
+ Demos ------------------------------------------------------ QLanguage的一些Demo
- normal.txt --------------------------------------------- 一个基本的示例
+ Documents -------------------------------------------------- 一些开发文档
- Library.doc -------------------------------------------- QCore的说明文档doc格式
- Library.pdf -------------------------------------------- QCore的说明文档pdf格式
+ GeneratorFiles --------------------------------------------- QParserGenerator所需的一些Generate文件
- Calculator.txt ----------------------------------------- 一个计算器的Generate文件
- NewQLanguage.txt --------------------------------------- 新QLanguage的Generate文件
- QLanguage.txt ------------------------------------------ 上一个版本的QLanguage的Generate文件
- QParserGenerator.txt ----------------------------------- QParserGenerator的Generate文件
- Test.txt ----------------------------------------------- 一个测试用的Generate文件
+ Models ----------------------------------------------------- QParserGenerator生成的分析表的分析代码模型
- Parser.cpp --------------------------------------------- Parser的模型代码
- Parser.h ----------------------------------------------- Parser的模型代码
- ParserTable.cpp ---------------------------------------- ParserTable的模型代码
- ParserTable.h ------------------------------------------ ParserTable的模型代码
+ Other ------------------------------------------------------ 其他一些开发过程中相关的东西,比如VS2012的nativis文件等
+ VS2012 ------------------------------------------------- VS2012所需的natvis文件
- QLanguage.natvis ----------------------------------- QLanguage的nativis文件
- 进度计划表.xls ----------------------------------------- 当前开发进度
+ Source ----------------------------------------------------- 代码目录
+ Calculator --------------------------------------------- 一个计算器的代码
+ Parser --------------------------------------------- 语法分析器
- Parser.cpp ------------------------------------- 语法分析器实现
- Parser.h --------------------------------------- 语法分析器定义
- Calculator.cpp ------------------------------------- Calculator主文件
- Calculator.ParserTable ----------------------------- Calculator的分析表
- CMakeLists.txt ------------------------------------- CMake脚本
+ OS ----------------------------------------------------- 一个OS的代码
+ QCore -------------------------------------------------- QCore的代码
+ Library -------------------------------------------- Library的代码
+ combinator ------------------------------------- Combinator模块的代码
- alt.h ------------------------------------- 或关系
- combinator.h ------------------------------ Combinator接口定义
- ref.h ------------------------------------- 引用关系
- rule.h ------------------------------------ Combinator的Rule实现
- seq.h ------------------------------------- 与关系
- while.h ----------------------------------- 循环关系
+ graph ------------------------------------------ Graph模块的代码
+ bmp ---------------------------------------- bmp文件结构相关
- structs.h ------------------------------ bmp文件结构定义
- bitmap.cpp --------------------------------- Bitmap实现
- bitmap.h ----------------------------------- Bitmap定义
+ regex ------------------------------------------ Regex模块的代码
- regex.cpp ---------------------------------- Regex实现
- regex.h ------------------------------------ Regex定义
- algo.h ----------------------------------------- 算法
- allocator.h ------------------------------------ 内存分配器
- almighty_container.h --------------------------- 万能容器
- btree.h ---------------------------------------- 二叉排序树
- buffer.cpp ------------------------------------- Buffer接口实现代码
- buffer.h --------------------------------------- Buffer接口定义
- callstack.cpp ---------------------------------- CallStack实现代码
- callstack.h ------------------------------------ CallStack定义
- char_traits.h ---------------------------------- 关于char或wchar_t的traits代码
- construct.h ------------------------------------ construct和destruct接口
- definition.h ----------------------------------- 常量定义
- error.h ---------------------------------------- 错误结构
- fstream.h -------------------------------------- File Stream
- function.h ------------------------------------- Functions
- function_additional.h -------------------------- 一些附加的Function
- hash.h ----------------------------------------- hash算法
- hashmap.h -------------------------------------- hashmap实现
- hashset.h -------------------------------------- hashset实现
- hashtable.h ------------------------------------ hashtable实现
- ios.h ------------------------------------------ io的接口定义
- iostream.cpp ----------------------------------- 实现cout、cin、cerr对象
- iostream.h ------------------------------------- 定义cout、cin、cerr对象
- istream.h -------------------------------------- istream实现
- iterator.h ------------------------------------- iterator接口
- list.h ----------------------------------------- list实现
- map.h ------------------------------------------ map实现
- memory.cpp ------------------------------------- MemoryPool实现
- memory.h --------------------------------------- MemoryPool定义
- ostream.h -------------------------------------- ostream实现
- pair.h ----------------------------------------- pair实现
- queue.h ---------------------------------------- queue实现
- rbtree.h --------------------------------------- rbtree实现
- set.h ------------------------------------------ set实现
- stack.h ---------------------------------------- stack实现
- stdstream.h ------------------------------------ stdstream实现
- string.h --------------------------------------- string实现
- system.h --------------------------------------- 系统相关接口
- traits.h --------------------------------------- container_traits和type_traits等
- typedef.h -------------------------------------- 类型相关的定义和接口
- vector ----------------------------------------- vector实现
- CMakeLists.txt ------------------------------------- CMake脚本
- QCore.cpp ------------------------------------------ QCore主文件
+ QCoreUnitTest ------------------------------------------ QCore的单元测试代码
+ Units ---------------------------------------------- Cases
- TestBase.cpp ----------------------------------- TestBase实现
- TestBase.h ------------------------------------- TestBase定义
- TestCombinator.cpp ----------------------------- TestCombinator实现
- TestCombinator.h ------------------------------- TestCombinator定义
- TestHashMap.cpp -------------------------------- TestHashMap实现
- TestHashMap.h ---------------------------------- TestHashMap定义
- TestHashSet.cpp -------------------------------- TestHashSet实现
- TestHashSet.h ---------------------------------- TestHashSet定义
- TestHashTable.cpp ------------------------------ TestHashTable实现
- TestHashTable.h -------------------------------- TestHashTable定义
- TestList.cpp ----------------------------------- TestList实现
- TestList.h ------------------------------------- TestList定义
- TestMap.cpp ------------------------------------ TestMap实现
- TestMap.h -------------------------------------- TestMap定义
- TestMemoryPool.cpp ----------------------------- TestMemoryPool实现
- TestMemoryPool.h ------------------------------- TestMemoryPool定义
- TestRBTree.cpp --------------------------------- TestRBTree实现
- TestRBTree.h ----------------------------------- TestRBTree定义
- TestRegex.cpp ---------------------------------- TestRegex实现
- TestRegex.h ------------------------------------ TestRegex定义
- TestSet.cpp ------------------------------------ TestSet实现
- TestSet.h -------------------------------------- TestSet定义
- TestStream.cpp --------------------------------- TestStream实现
- TestStream.h ----------------------------------- TestStream定义
- TestString.cpp --------------------------------- TestString实现
- TestString.h ----------------------------------- TestString定义
- TestTraits.cpp --------------------------------- TestTraits实现
- TestTraits.h ----------------------------------- TestTraits定义
- TestVector.cpp --------------------------------- TestVector实现
- TestVector.h ----------------------------------- TestVector定义
- CMakeLists.txt ------------------------------------- CMake脚本
- QCoreUnitTest.cpp ---------------------------------- QCoreUnitTest主文件
+ QLanguage ---------------------------------------------- QLanguage的代码
+ Lexer ---------------------------------------------- 词法分析器
- Lexer.cpp -------------------------------------- 词法分析器实现
- Lexer.h ---------------------------------------- 词法分析器定义
+ Parser --------------------------------------------- 语法分析器
+ SyntaxTree ------------------------------------- 语法树结构
- SyntaxTree_ArrayLst.cpp -------------------- ArrayLst分析树实现
- SyntaxTree_ArrayLst.h ---------------------- ArrayLst分析树定义
- SyntaxTree_ArrayValue.cpp ------------------ ArrayValue分析树实现
- SyntaxTree_ArrayValue.h -------------------- ArrayValue分析树定义
- SyntaxTree_Assign.cpp ---------------------- Assign分析树实现
- SyntaxTree_Assign.h ------------------------ Assign分析树定义
- SyntaxTree_Attribute.cpp ------------------- Attribute分析树实现
- SyntaxTree_Attribute.h --------------------- Attribute分析树定义
- SyntaxTree_Base.cpp ------------------------ Base分析树实现
- SyntaxTree_Base.h -------------------------- Base分析树定义
- SyntaxTree_Block.cpp ----------------------- Block分析树实现
- SyntaxTree_Block.h ------------------------- Block分析树定义
- SyntaxTree_Call.cpp ------------------------ Call分析树实现
- SyntaxTree_Call.h -------------------------- Call分析树定义
- SyntaxTree_CallList.cpp -------------------- CallList分析树实现
- SyntaxTree_CallList.h ---------------------- CallList分析树定义
- SyntaxTree_Class.cpp ----------------------- Class分析树实现
- SyntaxTree_Class.h ------------------------- Class分析树定义
- SyntaxTree_ClassContent.cpp ---------------- ClassContent分析树实现
- SyntaxTree_ClassContent.h ------------------ ClassContent分析树定义
- SyntaxTree_ClassContentList.cpp ------------ ClassContentList分析树实现
- SyntaxTree_ClassContentList.h -------------- ClassContentList分析树定义
- SyntaxTree_ClassInherit.cpp ---------------- ClassInherit分析树实现
- SyntaxTree_ClassInherit.h ------------------ ClassInherit分析树定义
- SyntaxTree_ClassName.cpp ------------------- ClassName分析树实现
- SyntaxTree_ClassName.h --------------------- ClassName分析树定义
- SyntaxTree_DeclareList.cpp ----------------- DeclareList分析树实现
- SyntaxTree_DeclareList.h ------------------- DeclareList分析树定义
- SyntaxTree_DeclareName.cpp ----------------- DelcareName分析树实现
- SyntaxTree_DeclareName.h ------------------- DeclareName分析树定义
- SyntaxTree_Do.cpp -------------------------- Do分析树实现
- SyntaxTree_Do.h ---------------------------- Do分析树定义
- SyntaxTree_Else.cpp ------------------------ Else分析树实现
- SyntaxTree_Else.h -------------------------- Else分析树定义
- SyntaxTree_Exp.cpp ------------------------- Exp分析树实现
- SyntaxTree_Exp.h --------------------------- Exp分析树定义
- SyntaxTree_For.cpp ------------------------- For分析树实现
- SyntaxTree_For.h --------------------------- For分析树定义
- SyntaxTree_Function.cpp -------------------- Function分析树实现
- SyntaxTree_Function.h ---------------------- Function分析树定义
- SyntaxTree_FunctionDeclare.cpp ------------- FunctionDeclare分析树实现
- SyntaxTree_FunctionDeclare.h --------------- FunctionDeclare分析树定义
- SyntaxTree_GlobalFunction.cpp -------------- GlobalFunction分析树实现
- SyntaxTree_GlobalFunction.h ---------------- GlobalFunction分析树定义
- SyntaxTree_If.cpp -------------------------- If分析树实现
- SyntaxTree_If.h ---------------------------- If分析树定义
- SyntaxTree_Interface.cpp ------------------- Interface分析树实现
- SyntaxTree_Interface.h --------------------- Interface分析树定义
- SyntaxTree_InterfaceContentList.cpp -------- InterfaceContentList分析树实现
- SyntaxTree_InterfaceContentList.h ---------- InterfaceContentList分析树定义
- SyntaxTree_Item.cpp ------------------------ Item分析树实现
- SyntaxTree_Item.h -------------------------- Item分析树定义
- SyntaxTree_ItemList.cpp -------------------- ItemList分析树实现
- SyntaxTree_ItemList.h ---------------------- ItemList分析树定义
- SyntaxTree_MemberList.cpp ------------------ MemberList分析树实现
- SyntaxTree_MemberList.h -------------------- MemberList分析树定义
- SyntaxTree_Name.cpp ------------------------ Name分析树实现
- SyntaxTree_Name.h -------------------------- Name分析树定义
- SyntaxTree_Paramter.cpp -------------------- Paramter分析树实现
- SyntaxTree_Paramter.h ---------------------- Paramter分析树定义
- SyntaxTree_ParamterList.cpp ---------------- ParamterList分析树实现
- SyntaxTree_ParamterList.h ------------------ ParamterList分析树定义
- SyntaxTree_Return.cpp ---------------------- Return分析树实现
- SyntaxTree_Return.h ------------------------ Return分析树定义
- SyntaxTree_Stmt.cpp ------------------------ Stmt分析树实现
- SyntaxTree_Stmt.h -------------------------- Stmt分析树定义
- SyntaxTree_StmtList.cpp -------------------- StmtList分析树实现
- SyntaxTree_StmtList.h ---------------------- StmtList分析树定义
- SyntaxTree_Template.cpp -------------------- Template分析树实现
- SyntaxTree_Template.h ---------------------- Template分析树定义
- SyntaxTree_TemplateItem.cpp ---------------- TemplateItem分析树实现
- SyntaxTree_TemplateItem.h ------------------ TemplateItem分析树定义
- SyntaxTree_TemplateList.cpp ---------------- TemplateList分析树实现
- SyntaxTree_TemplateList.h ------------------ TemplateList分析树定义
- SyntaxTree_Type.cpp ------------------------ Type分析树实现
- SyntaxTree_Type.h -------------------------- Type分析树定义
- SyntaxTree_Value.cpp ----------------------- Value分析树实现
- SyntaxTree_Value.h ------------------------- Value分析树定义
- SyntaxTree_ValueList.cpp ------------------- ValueList分析树实现
- SyntaxTree_ValueList.h --------------------- ValueList分析树定义
- SyntaxTree_Values.cpp ---------------------- Values分析树实现
- SyntaxTree_Values.h ------------------------ Values分析树定义
- SyntaxTree_ValuesList.cpp ------------------ ValuesList分析树实现
- SyntaxTree_ValuesList.h -------------------- ValuesList分析树定义
- SyntaxTree_While.cpp ----------------------- While分析树实现
- SyntaxTree_While.h ------------------------- While分析树定义
- BasicParser.cpp -------------------------------- 语法分析器接口实现
- BasicParser.h ---------------------------------- 语法分析器接口定义
- LALR1.cpp -------------------------------------- LALR1 DFA生成器实现
- LALR1.h ---------------------------------------- LALR1 DFA生成器定义
- LALR1ParserTable.cpp --------------------------- LALR1 ParserTable生成器实现
- LRProduction.cpp ------------------------------- LALR1产生式结构实现
- LRProduction.h --------------------------------- LALR1产生式结构定义
- Parser.cpp ------------------------------------- 语法分析器实现
- Parser.h --------------------------------------- 语法分析器定义
- ParserTable.cpp -------------------------------- ParserTable分析器实现
- ParserTable.h ---------------------------------- ParserTable分析器定义
- Production.cpp --------------------------------- 产生式实现
- Production.h ----------------------------------- 产生式定义
- CMakeLists.txt ------------------------------------- CMake脚本
- QLanguage.cpp -------------------------------------- QLanguage主文件
- QLanguage.ParserTable ------------------------------ QLanguage的分析表
- Rules.txt ------------------------------------------ QLanguage的产生式列表
+ QParserGenerator --------------------------------------- QParserGenerator的代码
+ Parser --------------------------------------------- 语法分析器
- Parser.cpp ------------------------------------- 语法分析器实现
- Parser.h --------------------------------------- 语法分析器定义
- CMakeLists.txt ------------------------------------- CMake脚本
- QParserGenerator.cpp ------------------------------- QParserGenerator主文件
+ WordSegmentation --------------------------------------- 一个分词器的代码
- check_bits.cmake --------------------------------------- 判断OS是x86或x64的CMake脚本
- CMakeLists.txt ----------------------------------------- 所有项目的CMake脚本
+ Tools ------------------------------------------------------ 一些脚本
+ DEB ---------------------------------------------------- DEBIAN打包脚本和相关文件
- control -------------------------------------------- DEBIAN包配置文件
- makeall.sh ----------------------------------------- 整体打包脚本
- makebinary.sh -------------------------------------- binary生成脚本
- makedeb.sh ----------------------------------------- DEBIAN打包脚本
+ RPM ---------------------------------------------------- RPM打包脚本和相关文件
+ x86_64 --------------------------------------------- x86_64生成的rpm包
- QLanguage-1.0-1.el6.x86_64.rpm ----------------- 生成的rpm包
- QLanguge.spec -------------------------------------- RPM包配置文件
- rpm_package.sh ------------------------------------- RPM打包脚本
- input.txt ---------------------------------------------- QCoreUnitTest所需输入的内容
- update.sh ---------------------------------------------- 从GoogleCode拉代码并提交到GitHub的脚本
- README ----------------------------------------------------- 本文件
二、编译
见CMake相关文档
三、源代码获取
1.https://code.google.com/p/qlanguage/
2.https://github.com/lwch/QLanguage
四、关于
1.所有代码遵循GPL协议,转载请注明原作者
2.QQ:510134884
3.QQ群:38843264
4.Email:[email protected]
5.微博:http://weibo.com/qlanguagecompiler
qlanguage's People
qlanguage's Issues
As communicated before, this repository is no longer synchronized from SVN. If you want to have a mirror like this one that can be kept in sync, please be interested in https://github.com/gabrys/svn2github
Hi, this is to let you know this repository will no longer be updated to match the original SVN repository on January 20th. The svn2github service is closing down on January 27th. To read the detailed blog post, go to: http://piotr.gabryjeluk.pl/blog:closing-svn2github