lounge_lizard 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.gitmodules +3 -0
- data/.rspec +2 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/Guardfile +33 -0
- data/LICENSE.txt +21 -0
- data/README.md +50 -0
- data/Rakefile +43 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/circle.yml +14 -0
- data/ext/drafter/CHANGELOG.md +278 -0
- data/ext/drafter/Dockerfile +17 -0
- data/ext/drafter/Makefile +62 -0
- data/ext/drafter/appveyor.yml +17 -0
- data/ext/drafter/bin/drafter +0 -0
- data/ext/drafter/build/Makefile +387 -0
- data/ext/drafter/build/drafter.Makefile +6 -0
- data/ext/drafter/build/drafter.target.mk +159 -0
- data/ext/drafter/build/ext/snowcrash/libmarkdownparser.target.mk +141 -0
- data/ext/drafter/build/ext/snowcrash/libsnowcrash.target.mk +154 -0
- data/ext/drafter/build/ext/snowcrash/libsundown.target.mk +149 -0
- data/ext/drafter/build/ext/snowcrash/perf-libsnowcrash.target.mk +147 -0
- data/ext/drafter/build/ext/snowcrash/snowcrash.Makefile +6 -0
- data/ext/drafter/build/gyp-mac-tool +606 -0
- data/ext/drafter/build/libdrafter.target.mk +186 -0
- data/ext/drafter/build/libsos.target.mk +137 -0
- data/ext/drafter/build/out/Release/drafter +0 -0
- data/ext/drafter/build/out/Release/libdrafter.dylib +0 -0
- data/ext/drafter/build/out/Release/libmarkdownparser.a +0 -0
- data/ext/drafter/build/out/Release/libsnowcrash.a +0 -0
- data/ext/drafter/build/out/Release/libsos.a +0 -0
- data/ext/drafter/build/out/Release/libsundown.a +0 -0
- data/ext/drafter/build/out/Release/obj.target/drafter/src/config.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/drafter/src/main.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/drafter/src/reporting.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/ConversionContext.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/NamedTypesRegistry.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/RefractAPI.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/RefractDataStructure.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/RefractElementFactory.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/RefractSourceMap.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/Render.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/Serialize.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/SerializeAST.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/SerializeResult.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/SerializeSourcemap.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/drafter.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/drafter_private.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/refract/ComparableVisitor.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/refract/Element.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/refract/ExpandVisitor.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/refract/IsExpandableVisitor.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/refract/JSONSchemaVisitor.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/refract/PrintVisitor.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/refract/Query.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/refract/Registry.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/refract/RenderJSONVisitor.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/refract/SerializeCompactVisitor.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/refract/SerializeVisitor.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/refract/TypeQueryVisitor.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/refract/VisitorUtils.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libmarkdownparser/ext/snowcrash/ext/markdown-parser/src/ByteBuffer.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libmarkdownparser/ext/snowcrash/ext/markdown-parser/src/MarkdownNode.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libmarkdownparser/ext/snowcrash/ext/markdown-parser/src/MarkdownParser.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/Blueprint.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/BlueprintSourcemap.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/HTTP.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/HeadersParser.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/MSON.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/MSONOneOfParser.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/MSONSourcemap.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/MSONTypeSectionParser.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/MSONValueMemberParser.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/Section.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/Signature.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/UriTemplateParser.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/posix/RegexMatch.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/snowcrash.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsos/ext/sos/src/sos.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsundown/ext/snowcrash/ext/markdown-parser/ext/sundown/html/houdini_href_e.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsundown/ext/snowcrash/ext/markdown-parser/ext/sundown/html/houdini_html_e.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsundown/ext/snowcrash/ext/markdown-parser/ext/sundown/html/html.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsundown/ext/snowcrash/ext/markdown-parser/ext/sundown/html/html_smartypants.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsundown/ext/snowcrash/ext/markdown-parser/ext/sundown/src/autolink.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsundown/ext/snowcrash/ext/markdown-parser/ext/sundown/src/buffer.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsundown/ext/snowcrash/ext/markdown-parser/ext/sundown/src/markdown.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsundown/ext/snowcrash/ext/markdown-parser/ext/sundown/src/src_map.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsundown/ext/snowcrash/ext/markdown-parser/ext/sundown/src/stack.o +0 -0
- data/ext/drafter/circle.yml +32 -0
- data/ext/drafter/config.gypi +10 -0
- data/ext/drafter/config.mk +5 -0
- data/ext/drafter/configure +224 -0
- data/ext/drafter/drafter.gyp +189 -0
- data/ext/drafter/drafter.xcworkspace/contents.xcworkspacedata +13 -0
- data/ext/drafter/ext/snowcrash/Makefile +58 -0
- data/ext/drafter/ext/snowcrash/appveyor.yml +7 -0
- data/ext/drafter/ext/snowcrash/common.gypi +165 -0
- data/ext/drafter/ext/snowcrash/configure +197 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/Makefile +90 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/CONTRIBUTING.md +10 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/Makefile +84 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/Makefile.win +33 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/examples/smartypants.c +72 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/examples/sundown.c +80 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/html/houdini.h +37 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/html/houdini_href_e.c +108 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/html/houdini_html_e.c +84 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/html/html.c +647 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/html/html.h +77 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/html/html_smartypants.c +389 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/html_block_names.txt +25 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/src/autolink.c +297 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/src/autolink.h +51 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/src/buffer.c +225 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/src/buffer.h +96 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/src/html_blocks.h +206 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/src/markdown.c +2726 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/src/markdown.h +147 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/src/src_map.c +204 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/src/src_map.h +58 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/src/stack.c +81 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/src/stack.h +29 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/sundown.def +20 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/msvc/markdown/markdown.vcproj +188 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/msvc/msvc.sln +38 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/msvc/sundown/sundown.vcproj +206 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/src/ByteBuffer.cc +160 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/src/ByteBuffer.h +90 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/src/MarkdownNode.cc +152 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/src/MarkdownNode.h +103 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/src/MarkdownParser.cc +388 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/src/MarkdownParser.h +106 -0
- data/ext/drafter/ext/snowcrash/snowcrash.gyp +196 -0
- data/ext/drafter/ext/snowcrash/src/ActionParser.h +560 -0
- data/ext/drafter/ext/snowcrash/src/AssetParser.h +123 -0
- data/ext/drafter/ext/snowcrash/src/AttributesParser.h +123 -0
- data/ext/drafter/ext/snowcrash/src/Blueprint.cc +90 -0
- data/ext/drafter/ext/snowcrash/src/Blueprint.h +489 -0
- data/ext/drafter/ext/snowcrash/src/BlueprintParser.h +845 -0
- data/ext/drafter/ext/snowcrash/src/BlueprintSourcemap.cc +81 -0
- data/ext/drafter/ext/snowcrash/src/BlueprintSourcemap.h +345 -0
- data/ext/drafter/ext/snowcrash/src/BlueprintUtility.h +111 -0
- data/ext/drafter/ext/snowcrash/src/CodeBlockUtility.h +276 -0
- data/ext/drafter/ext/snowcrash/src/DataStructureGroupParser.h +157 -0
- data/ext/drafter/ext/snowcrash/src/HTTP.cc +49 -0
- data/ext/drafter/ext/snowcrash/src/HTTP.h +108 -0
- data/ext/drafter/ext/snowcrash/src/HeadersParser.cc +117 -0
- data/ext/drafter/ext/snowcrash/src/HeadersParser.h +377 -0
- data/ext/drafter/ext/snowcrash/src/MSON.cc +272 -0
- data/ext/drafter/ext/snowcrash/src/MSON.h +405 -0
- data/ext/drafter/ext/snowcrash/src/MSONMixinParser.h +103 -0
- data/ext/drafter/ext/snowcrash/src/MSONNamedTypeParser.h +135 -0
- data/ext/drafter/ext/snowcrash/src/MSONOneOfParser.cc +132 -0
- data/ext/drafter/ext/snowcrash/src/MSONOneOfParser.h +80 -0
- data/ext/drafter/ext/snowcrash/src/MSONParameterParser.h +166 -0
- data/ext/drafter/ext/snowcrash/src/MSONPropertyMemberParser.h +106 -0
- data/ext/drafter/ext/snowcrash/src/MSONSourcemap.cc +141 -0
- data/ext/drafter/ext/snowcrash/src/MSONSourcemap.h +181 -0
- data/ext/drafter/ext/snowcrash/src/MSONTypeSectionParser.cc +209 -0
- data/ext/drafter/ext/snowcrash/src/MSONTypeSectionParser.h +213 -0
- data/ext/drafter/ext/snowcrash/src/MSONUtility.h +506 -0
- data/ext/drafter/ext/snowcrash/src/MSONValueMemberParser.cc +214 -0
- data/ext/drafter/ext/snowcrash/src/MSONValueMemberParser.h +390 -0
- data/ext/drafter/ext/snowcrash/src/ModelTable.h +87 -0
- data/ext/drafter/ext/snowcrash/src/ParameterParser.h +516 -0
- data/ext/drafter/ext/snowcrash/src/ParametersParser.h +222 -0
- data/ext/drafter/ext/snowcrash/src/PayloadParser.h +733 -0
- data/ext/drafter/ext/snowcrash/src/Platform.h +33 -0
- data/ext/drafter/ext/snowcrash/src/RegexMatch.h +32 -0
- data/ext/drafter/ext/snowcrash/src/RelationParser.h +87 -0
- data/ext/drafter/ext/snowcrash/src/ResourceGroupParser.h +297 -0
- data/ext/drafter/ext/snowcrash/src/ResourceParser.h +536 -0
- data/ext/drafter/ext/snowcrash/src/Section.cc +48 -0
- data/ext/drafter/ext/snowcrash/src/Section.h +60 -0
- data/ext/drafter/ext/snowcrash/src/SectionParser.h +246 -0
- data/ext/drafter/ext/snowcrash/src/SectionParserData.h +109 -0
- data/ext/drafter/ext/snowcrash/src/SectionProcessor.h +299 -0
- data/ext/drafter/ext/snowcrash/src/Signature.cc +75 -0
- data/ext/drafter/ext/snowcrash/src/Signature.h +103 -0
- data/ext/drafter/ext/snowcrash/src/SignatureSectionProcessor.h +442 -0
- data/ext/drafter/ext/snowcrash/src/SourceAnnotation.h +166 -0
- data/ext/drafter/ext/snowcrash/src/StringUtility.h +323 -0
- data/ext/drafter/ext/snowcrash/src/UriTemplateParser.cc +195 -0
- data/ext/drafter/ext/snowcrash/src/UriTemplateParser.h +240 -0
- data/ext/drafter/ext/snowcrash/src/ValuesParser.h +111 -0
- data/ext/drafter/ext/snowcrash/src/posix/RegexMatch.cc +99 -0
- data/ext/drafter/ext/snowcrash/src/snowcrash.cc +90 -0
- data/ext/drafter/ext/snowcrash/src/snowcrash.h +44 -0
- data/ext/drafter/ext/snowcrash/src/win/RegexMatch.cc +78 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/AUTHORS +12 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/DEPS +23 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/OWNERS +1 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/PRESUBMIT.py +137 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/buildbot/buildbot_run.py +136 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/buildbot/commit_queue/OWNERS +6 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/buildbot/commit_queue/cq_config.json +15 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/codereview.settings +10 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/data/win/large-pdb-shim.cc +12 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/gyp +8 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/gyp.bat +5 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/gyp_main.py +16 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/MSVSNew.py +340 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/MSVSProject.py +208 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/MSVSSettings.py +1096 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/MSVSToolFile.py +58 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/MSVSUserFile.py +147 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/MSVSUtil.py +270 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/MSVSUtil.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/MSVSVersion.py +445 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/MSVSVersion.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/__init__.py +548 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/__init__.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/common.py +608 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/common.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/easy_xml.py +157 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/flock_tool.py +54 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/__init__.py +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/__init__.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/analyzer.py +741 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/android.py +1069 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/cmake.py +1248 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/dump_dependency_json.py +99 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/eclipse.py +425 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/gypd.py +94 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/gypsh.py +56 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/make.py +2218 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/msvs.py +3467 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/ninja.py +2427 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/ninja.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/xcode.py +1300 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/xcode.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/input.py +2899 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/input.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/mac_tool.py +605 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/msvs_emulation.py +1093 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/msvs_emulation.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/ninja_syntax.py +160 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/ninja_syntax.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/ordered_dict.py +289 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/simple_copy.py +46 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/simple_copy.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/win_tool.py +314 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/xcode_emulation.py +1664 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/xcode_emulation.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/xcode_ninja.py +276 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/xcode_ninja.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/xcodeproj_file.py +2927 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/xcodeproj_file.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/xml_fix.py +69 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylintrc +307 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/samples/samples +81 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/samples/samples.bat +5 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/setup.py +19 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/tools/Xcode/Specifications/gyp.pbfilespec +27 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/tools/Xcode/Specifications/gyp.xclangspec +226 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/tools/emacs/gyp.el +275 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/tools/graphviz.py +100 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/tools/pretty_gyp.py +155 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/tools/pretty_sln.py +169 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/tools/pretty_vcproj.py +329 -0
- data/ext/drafter/ext/snowcrash/vcbuild.bat +139 -0
- data/ext/drafter/ext/sos/Makefile +62 -0
- data/ext/drafter/ext/sos/src/sos.cc +235 -0
- data/ext/drafter/ext/sos/src/sos.h +188 -0
- data/ext/drafter/ext/sos/src/sosJSON.h +121 -0
- data/ext/drafter/ext/sos/src/sosYAML.h +105 -0
- data/ext/drafter/src/ConversionContext.cc +39 -0
- data/ext/drafter/src/ConversionContext.h +34 -0
- data/ext/drafter/src/NamedTypesRegistry.cc +405 -0
- data/ext/drafter/src/NamedTypesRegistry.h +28 -0
- data/ext/drafter/src/NodeInfo.h +143 -0
- data/ext/drafter/src/RefractAPI.cc +579 -0
- data/ext/drafter/src/RefractAPI.h +28 -0
- data/ext/drafter/src/RefractDataStructure.cc +1199 -0
- data/ext/drafter/src/RefractDataStructure.h +26 -0
- data/ext/drafter/src/RefractElementFactory.cc +107 -0
- data/ext/drafter/src/RefractElementFactory.h +67 -0
- data/ext/drafter/src/RefractSourceMap.cc +29 -0
- data/ext/drafter/src/RefractSourceMap.h +57 -0
- data/ext/drafter/src/Render.cc +157 -0
- data/ext/drafter/src/Render.h +40 -0
- data/ext/drafter/src/Serialize.cc +160 -0
- data/ext/drafter/src/Serialize.h +289 -0
- data/ext/drafter/src/SerializeAST.cc +507 -0
- data/ext/drafter/src/SerializeAST.h +29 -0
- data/ext/drafter/src/SerializeResult.cc +170 -0
- data/ext/drafter/src/SerializeResult.h +34 -0
- data/ext/drafter/src/SerializeSourcemap.cc +331 -0
- data/ext/drafter/src/SerializeSourcemap.h +21 -0
- data/ext/drafter/src/Version.h +40 -0
- data/ext/drafter/src/config.cc +91 -0
- data/ext/drafter/src/config.h +38 -0
- data/ext/drafter/src/drafter.cc +137 -0
- data/ext/drafter/src/drafter.h +102 -0
- data/ext/drafter/src/drafter_private.cc +85 -0
- data/ext/drafter/src/drafter_private.h +34 -0
- data/ext/drafter/src/main.cc +137 -0
- data/ext/drafter/src/refract/AppendDecorator.h +58 -0
- data/ext/drafter/src/refract/Build.h +67 -0
- data/ext/drafter/src/refract/ComparableVisitor.cc +43 -0
- data/ext/drafter/src/refract/ComparableVisitor.h +62 -0
- data/ext/drafter/src/refract/Element.cc +409 -0
- data/ext/drafter/src/refract/Element.h +656 -0
- data/ext/drafter/src/refract/ElementFwd.h +37 -0
- data/ext/drafter/src/refract/ElementInserter.h +59 -0
- data/ext/drafter/src/refract/Exception.h +31 -0
- data/ext/drafter/src/refract/ExpandVisitor.cc +359 -0
- data/ext/drafter/src/refract/ExpandVisitor.h +58 -0
- data/ext/drafter/src/refract/FilterVisitor.h +52 -0
- data/ext/drafter/src/refract/IsExpandableVisitor.cc +140 -0
- data/ext/drafter/src/refract/IsExpandableVisitor.h +31 -0
- data/ext/drafter/src/refract/Iterate.h +160 -0
- data/ext/drafter/src/refract/JSONSchemaVisitor.cc +675 -0
- data/ext/drafter/src/refract/JSONSchemaVisitor.h +73 -0
- data/ext/drafter/src/refract/PrintVisitor.cc +164 -0
- data/ext/drafter/src/refract/PrintVisitor.h +50 -0
- data/ext/drafter/src/refract/Query.cc +13 -0
- data/ext/drafter/src/refract/Query.h +38 -0
- data/ext/drafter/src/refract/Registry.cc +114 -0
- data/ext/drafter/src/refract/Registry.h +43 -0
- data/ext/drafter/src/refract/RenderJSONVisitor.cc +255 -0
- data/ext/drafter/src/refract/RenderJSONVisitor.h +51 -0
- data/ext/drafter/src/refract/SerializeCompactVisitor.cc +167 -0
- data/ext/drafter/src/refract/SerializeCompactVisitor.h +56 -0
- data/ext/drafter/src/refract/SerializeVisitor.cc +214 -0
- data/ext/drafter/src/refract/SerializeVisitor.h +55 -0
- data/ext/drafter/src/refract/TypeQueryVisitor.cc +46 -0
- data/ext/drafter/src/refract/TypeQueryVisitor.h +110 -0
- data/ext/drafter/src/refract/Visitor.h +126 -0
- data/ext/drafter/src/refract/VisitorUtils.cc +63 -0
- data/ext/drafter/src/refract/VisitorUtils.h +231 -0
- data/ext/drafter/src/reporting.cc +263 -0
- data/ext/drafter/src/reporting.h +39 -0
- data/ext/drafter/src/stream.h +148 -0
- data/ext/drafter/tools/homebrew/drafter.rb +18 -0
- data/ext/drafter/tools/make-tarball.sh +39 -0
- data/ext/drafter/tools/refract-filter.py +96 -0
- data/ext/drafter/tools/release.sh +17 -0
- data/ext/drafter/vcbuild.bat +203 -0
- data/lib/lounge_lizard/binding.rb +29 -0
- data/lib/lounge_lizard/version.rb +3 -0
- data/lib/lounge_lizard.rb +18 -0
- data/lounge_lizard.gemspec +37 -0
- metadata +547 -0
@@ -0,0 +1,106 @@
|
|
1
|
+
//
|
2
|
+
// MarkdownParser.h
|
3
|
+
// markdownparser
|
4
|
+
//
|
5
|
+
// Created by Zdenek Nemec on 4/18/14.
|
6
|
+
// Copyright (c) 2014 Apiary Inc. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#ifndef MARKDOWNPARSER_MARKDOWNPARSER_H
|
10
|
+
#define MARKDOWNPARSER_MARKDOWNPARSER_H
|
11
|
+
|
12
|
+
#include "ByteBuffer.h"
|
13
|
+
#include "MarkdownNode.h"
|
14
|
+
#include "markdown.h"
|
15
|
+
|
16
|
+
namespace mdp {
|
17
|
+
|
18
|
+
const char* const MarkdownEmphasisChars = "*_";
|
19
|
+
const char* const MarkdownListItemChars = "+-*";
|
20
|
+
|
21
|
+
const char MarkdownBeginReference = '[';
|
22
|
+
const char MarkdownEndReference = ']';
|
23
|
+
|
24
|
+
const char* const MarkdownLinkRegex = "^[[:blank:]]*\\[(.*)][[:blank:]]*(\\[([^][()]*)]|\\(([^][()]+)\\))[[:blank:]]*$";
|
25
|
+
|
26
|
+
/**
|
27
|
+
* GitHub-flavored Markdown Parser
|
28
|
+
*/
|
29
|
+
class MarkdownParser {
|
30
|
+
public:
|
31
|
+
MarkdownParser();
|
32
|
+
MarkdownParser(const MarkdownParser&);
|
33
|
+
MarkdownParser& operator=(const MarkdownParser&);
|
34
|
+
|
35
|
+
/**
|
36
|
+
* \brief Parse source buffer
|
37
|
+
*
|
38
|
+
* \param source Markdown source data to be parsed
|
39
|
+
* \param ast Parsed AST (root node)
|
40
|
+
*/
|
41
|
+
void parse(const ByteBuffer& source, MarkdownNode& ast);
|
42
|
+
|
43
|
+
private:
|
44
|
+
MarkdownNode* m_workingNode;
|
45
|
+
bool m_listBlockContext;
|
46
|
+
const ByteBuffer* m_source;
|
47
|
+
size_t m_sourceLength;
|
48
|
+
|
49
|
+
static const size_t OutputUnitSize;
|
50
|
+
static const size_t MaxNesting;
|
51
|
+
static const int ParserExtensions;
|
52
|
+
|
53
|
+
typedef sd_callbacks RenderCallbacks;
|
54
|
+
RenderCallbacks renderCallbacks();
|
55
|
+
|
56
|
+
typedef void * RenderCallbackData;
|
57
|
+
RenderCallbackData renderCallbackData();
|
58
|
+
|
59
|
+
// Header
|
60
|
+
static void renderHeader(struct buf *ob, const struct buf *text, int level, void *opaque);
|
61
|
+
void renderHeader(const ByteBuffer& text, int level);
|
62
|
+
|
63
|
+
// List
|
64
|
+
static void beginList(int flags, void *opaque);
|
65
|
+
void beginList(int flags);
|
66
|
+
|
67
|
+
static void renderList(struct buf *ob, const struct buf *text, int flags, void *opaque);
|
68
|
+
void renderList(const ByteBuffer& text, int flags);
|
69
|
+
|
70
|
+
// List item
|
71
|
+
static void beginListItem(int flags, void *opaque);
|
72
|
+
void beginListItem(int flags);
|
73
|
+
|
74
|
+
static void renderListItem(struct buf *ob, const struct buf *text, int flags, void *opaque);
|
75
|
+
void renderListItem(const ByteBuffer& text, int flags);
|
76
|
+
|
77
|
+
// Code block
|
78
|
+
static void renderBlockCode(struct buf *ob, const struct buf *text, const struct buf *lang, void *opaque);
|
79
|
+
void renderBlockCode(const ByteBuffer& text, const ByteBuffer& language);
|
80
|
+
|
81
|
+
// Paragraph
|
82
|
+
static void renderParagraph(struct buf *ob, const struct buf *text, void *opaque);
|
83
|
+
void renderParagraph(const ByteBuffer& text);
|
84
|
+
|
85
|
+
// Horizontal Rule
|
86
|
+
static void renderHorizontalRule(struct buf *ob, void *opaque);
|
87
|
+
void renderHorizontalRule();
|
88
|
+
|
89
|
+
// HTML
|
90
|
+
static void renderHTML(struct buf *ob, const struct buf *text, void *opaque);
|
91
|
+
void renderHTML(const ByteBuffer& text);
|
92
|
+
|
93
|
+
// Quote
|
94
|
+
static void beginQuote(void *opaque);
|
95
|
+
void beginQuote();
|
96
|
+
|
97
|
+
static void renderQuote(struct buf *ob, const struct buf *text, void *opaque);
|
98
|
+
void renderQuote(const std::string& text);
|
99
|
+
|
100
|
+
// Source maps
|
101
|
+
static void blockDidParse(const src_map* map, const uint8_t *txt_data, size_t size, void *opaque);
|
102
|
+
void blockDidParse(const BytesRangeSet& sourceMap);
|
103
|
+
};
|
104
|
+
}
|
105
|
+
|
106
|
+
#endif
|
@@ -0,0 +1,196 @@
|
|
1
|
+
{
|
2
|
+
"includes": [
|
3
|
+
"common.gypi"
|
4
|
+
],
|
5
|
+
'targets' : [
|
6
|
+
{
|
7
|
+
'target_name': 'libsundown',
|
8
|
+
'type': 'static_library',
|
9
|
+
'include_dirs': [
|
10
|
+
'ext/markdown-parser/ext/sundown/src',
|
11
|
+
'ext/markdown-parser/ext/sundown/html'
|
12
|
+
],
|
13
|
+
'direct_dependent_settings' : {
|
14
|
+
'include_dirs': [
|
15
|
+
'ext/markdown-parser/ext/sundown/src',
|
16
|
+
],
|
17
|
+
},
|
18
|
+
'sources': [
|
19
|
+
'ext/markdown-parser/ext/sundown/src/autolink.c',
|
20
|
+
'ext/markdown-parser/ext/sundown/src/autolink.h',
|
21
|
+
'ext/markdown-parser/ext/sundown/src/buffer.c',
|
22
|
+
'ext/markdown-parser/ext/sundown/src/buffer.h',
|
23
|
+
'ext/markdown-parser/ext/sundown/src/html_blocks.h',
|
24
|
+
'ext/markdown-parser/ext/sundown/src/markdown.c',
|
25
|
+
'ext/markdown-parser/ext/sundown/src/markdown.h',
|
26
|
+
'ext/markdown-parser/ext/sundown/src/src_map.c',
|
27
|
+
'ext/markdown-parser/ext/sundown/src/src_map.h',
|
28
|
+
'ext/markdown-parser/ext/sundown/src/stack.c',
|
29
|
+
'ext/markdown-parser/ext/sundown/src/stack.h',
|
30
|
+
'ext/markdown-parser/ext/sundown/html/houdini.h',
|
31
|
+
'ext/markdown-parser/ext/sundown/html/houdini_href_e.c',
|
32
|
+
'ext/markdown-parser/ext/sundown/html/houdini_html_e.c',
|
33
|
+
'ext/markdown-parser/ext/sundown/html/html.c',
|
34
|
+
'ext/markdown-parser/ext/sundown/html/html.h',
|
35
|
+
'ext/markdown-parser/ext/sundown/html/html_smartypants.c'
|
36
|
+
]
|
37
|
+
},
|
38
|
+
|
39
|
+
{
|
40
|
+
'target_name': 'libmarkdownparser',
|
41
|
+
'type': 'static_library',
|
42
|
+
'direct_dependent_settings' : {
|
43
|
+
'include_dirs': [
|
44
|
+
'ext/markdown-parser/src',
|
45
|
+
],
|
46
|
+
},
|
47
|
+
'export_dependent_settings': [
|
48
|
+
'libsundown'
|
49
|
+
],
|
50
|
+
'sources': [
|
51
|
+
'ext/markdown-parser/src/ByteBuffer.cc',
|
52
|
+
'ext/markdown-parser/src/ByteBuffer.h',
|
53
|
+
'ext/markdown-parser/src/MarkdownNode.cc',
|
54
|
+
'ext/markdown-parser/src/MarkdownNode.h',
|
55
|
+
'ext/markdown-parser/src/MarkdownParser.cc',
|
56
|
+
'ext/markdown-parser/src/MarkdownParser.h'
|
57
|
+
],
|
58
|
+
'dependencies': [
|
59
|
+
'libsundown'
|
60
|
+
]
|
61
|
+
},
|
62
|
+
|
63
|
+
{
|
64
|
+
'target_name': 'libsnowcrash',
|
65
|
+
'type': '<(libsnowcrash_type)',
|
66
|
+
'direct_dependent_settings' : {
|
67
|
+
'include_dirs': [
|
68
|
+
'src',
|
69
|
+
],
|
70
|
+
},
|
71
|
+
'export_dependent_settings': [
|
72
|
+
'libmarkdownparser'
|
73
|
+
],
|
74
|
+
'sources': [
|
75
|
+
'src/HTTP.cc',
|
76
|
+
'src/HTTP.h',
|
77
|
+
'src/MSON.cc',
|
78
|
+
'src/MSONOneOfParser.cc',
|
79
|
+
'src/MSONSourcemap.cc',
|
80
|
+
'src/MSONTypeSectionParser.cc',
|
81
|
+
'src/MSONValueMemberParser.cc',
|
82
|
+
'src/Blueprint.cc',
|
83
|
+
'src/BlueprintSourcemap.cc',
|
84
|
+
'src/Section.cc',
|
85
|
+
'src/Section.h',
|
86
|
+
'src/Signature.cc',
|
87
|
+
'src/Signature.h',
|
88
|
+
'src/snowcrash.cc',
|
89
|
+
'src/snowcrash.h',
|
90
|
+
'src/UriTemplateParser.cc',
|
91
|
+
'src/UriTemplateParser.h',
|
92
|
+
'src/PayloadParser.h',
|
93
|
+
'src/SectionParserData.h',
|
94
|
+
'src/ActionParser.h',
|
95
|
+
'src/AssetParser.h',
|
96
|
+
'src/AttributesParser.h',
|
97
|
+
'src/Blueprint.h',
|
98
|
+
'src/BlueprintParser.h',
|
99
|
+
'src/BlueprintSourcemap.h',
|
100
|
+
'src/BlueprintUtility.h',
|
101
|
+
'src/CodeBlockUtility.h',
|
102
|
+
'src/DataStructureGroupParser.h',
|
103
|
+
'src/HeadersParser.h',
|
104
|
+
'src/HeadersParser.cc',
|
105
|
+
'src/ModelTable.h',
|
106
|
+
'src/MSON.h',
|
107
|
+
'src/MSONSourcemap.h',
|
108
|
+
'src/MSONMixinParser.h',
|
109
|
+
'src/MSONNamedTypeParser.h',
|
110
|
+
'src/MSONOneOfParser.h',
|
111
|
+
'src/MSONParameterParser.h',
|
112
|
+
'src/MSONPropertyMemberParser.h',
|
113
|
+
'src/MSONTypeSectionParser.h',
|
114
|
+
'src/MSONUtility.h',
|
115
|
+
'src/MSONValueMemberParser.h',
|
116
|
+
'src/ParameterParser.h',
|
117
|
+
'src/ParametersParser.h',
|
118
|
+
'src/Platform.h',
|
119
|
+
'src/RegexMatch.h',
|
120
|
+
'src/RelationParser.h',
|
121
|
+
'src/ResourceGroupParser.h',
|
122
|
+
'src/ResourceParser.h',
|
123
|
+
'src/SectionParser.h',
|
124
|
+
'src/SectionProcessor.h',
|
125
|
+
'src/SignatureSectionProcessor.h',
|
126
|
+
'src/SourceAnnotation.h',
|
127
|
+
'src/StringUtility.h',
|
128
|
+
'src/ValuesParser.h',
|
129
|
+
],
|
130
|
+
'conditions': [
|
131
|
+
[ 'OS=="win"',
|
132
|
+
{ 'sources': [ 'src/win/RegexMatch.cc' ] },
|
133
|
+
{ 'sources': [ 'src/posix/RegexMatch.cc' ] } # OS != Windows
|
134
|
+
]
|
135
|
+
],
|
136
|
+
'dependencies': [
|
137
|
+
'libmarkdownparser',
|
138
|
+
]
|
139
|
+
},
|
140
|
+
{
|
141
|
+
'target_name': 'test-libsnowcrash',
|
142
|
+
'type': 'executable',
|
143
|
+
'include_dirs': [
|
144
|
+
'test/vendor/Catch/include',
|
145
|
+
],
|
146
|
+
'sources': [
|
147
|
+
'test/test-ActionParser.cc',
|
148
|
+
'test/test-AssetParser.cc',
|
149
|
+
'test/test-AttributesParser.cc',
|
150
|
+
'test/test-Blueprint.cc',
|
151
|
+
'test/test-BlueprintParser.cc',
|
152
|
+
'test/test-BlueprintUtility.cc',
|
153
|
+
'test/test-DataStructureGroupParser.cc',
|
154
|
+
'test/test-HeadersParser.cc',
|
155
|
+
'test/test-Indentation.cc',
|
156
|
+
'test/test-ModelTable.cc',
|
157
|
+
'test/test-MSONMixinParser.cc',
|
158
|
+
'test/test-MSONNamedTypeParser.cc',
|
159
|
+
'test/test-MSONOneOfParser.cc',
|
160
|
+
'test/test-MSONParameterParser.cc',
|
161
|
+
'test/test-MSONPropertyMemberParser.cc',
|
162
|
+
'test/test-MSONTypeSectionParser.cc',
|
163
|
+
'test/test-MSONUtility.cc',
|
164
|
+
'test/test-MSONValueMemberParser.cc',
|
165
|
+
'test/test-ParameterParser.cc',
|
166
|
+
'test/test-ParametersParser.cc',
|
167
|
+
'test/test-PayloadParser.cc',
|
168
|
+
'test/test-RegexMatch.cc',
|
169
|
+
'test/test-RelationParser.cc',
|
170
|
+
'test/test-ResourceParser.cc',
|
171
|
+
'test/test-ResourceGroupParser.cc',
|
172
|
+
'test/test-SectionParser.cc',
|
173
|
+
'test/test-Signature.cc',
|
174
|
+
'test/test-StringUtility.cc',
|
175
|
+
'test/test-SymbolIdentifier.cc',
|
176
|
+
'test/test-UriTemplateParser.cc',
|
177
|
+
'test/test-ValuesParser.cc',
|
178
|
+
'test/test-Warnings.cc',
|
179
|
+
'test/test-snowcrash.cc'
|
180
|
+
],
|
181
|
+
'dependencies': [
|
182
|
+
'libsnowcrash',
|
183
|
+
]
|
184
|
+
},
|
185
|
+
{
|
186
|
+
'target_name': 'perf-libsnowcrash',
|
187
|
+
'type': 'executable',
|
188
|
+
'sources': [
|
189
|
+
'test/performance/perf-snowcrash.cc'
|
190
|
+
],
|
191
|
+
'dependencies': [
|
192
|
+
'libsnowcrash',
|
193
|
+
]
|
194
|
+
}
|
195
|
+
]
|
196
|
+
}
|