Module: Vivlio

Defined in:
lib/vivlio/starter/cli/common.rb,
lib/vivlio/starter/cli/new.rb,
lib/vivlio/starter/cli/pdf.rb,
lib/vivlio/starter/cli/toc.rb,
lib/vivlio/starter/version.rb,
lib/vivlio/starter/cli/epub.rb,
lib/vivlio/starter/cli/lint.rb,
lib/vivlio/starter/cli/build.rb,
lib/vivlio/starter/cli/clean.rb,
lib/vivlio/starter/cli/cover.rb,
lib/vivlio/starter/cli/index.rb,
lib/vivlio/starter/cli/create.rb,
lib/vivlio/starter/cli/delete.rb,
lib/vivlio/starter/cli/doctor.rb,
lib/vivlio/starter/cli/doctor.rb,
lib/vivlio/starter/cli/import.rb,
lib/vivlio/starter/cli/rename.rb,
lib/vivlio/starter/cli/resize.rb,
lib/vivlio/starter/scaffolder.rb,
lib/vivlio/starter/cli/convert.rb,
lib/vivlio/starter/cli/entries.rb,
lib/vivlio/starter/cli/metrics.rb,
lib/vivlio/starter/cli/samovar.rb,
lib/vivlio/starter/cli/startup.rb,
lib/vivlio/starter/cli/renumber.rb,
lib/vivlio/starter/cli/pre_process.rb,
lib/vivlio/starter/cli/prism_lines.rb,
lib/vivlio/starter/cli/vivliostyle.rb,
lib/vivlio/starter/cli/font_manager.rb,
lib/vivlio/starter/cli/pdf/provider.rb,
lib/vivlio/starter/cli/post_process.rb,
lib/vivlio/starter/cli/metrics/cache.rb,
lib/vivlio/starter/cli/build/pipeline.rb,
lib/vivlio/starter/cli/lint/tokenizer.rb,
lib/vivlio/starter/cli/metrics/runner.rb,
lib/vivlio/starter/cli/token_resolver.rb,
lib/vivlio/starter/cli/build/utilities.rb,
lib/vivlio/starter/cli/build/build_lock.rb,
lib/vivlio/starter/cli/build/pdf_merger.rb,
lib/vivlio/starter/cli/metrics/analyzer.rb,
lib/vivlio/starter/cli/build/pdf_builder.rb,
lib/vivlio/starter/cli/lint/dict_manager.rb,
lib/vivlio/starter/cli/metrics/formatter.rb,
lib/vivlio/starter/cli/build/epub_builder.rb,
lib/vivlio/starter/cli/lint/spell_checker.rb,
lib/vivlio/starter/cli/textlint_formatter.rb,
lib/vivlio/starter/cli/build/pdf_finalizer.rb,
lib/vivlio/starter/cli/build/toc_generator.rb,
lib/vivlio/starter/cli/index/yomi_inferrer.rb,
lib/vivlio/starter/cli/samovar/new_command.rb,
lib/vivlio/starter/cli/samovar/pdf_command.rb,
lib/vivlio/starter/cli/build/catalog_loader.rb,
lib/vivlio/starter/cli/build/chapter_config.rb,
lib/vivlio/starter/cli/build/nombre_stamper.rb,
lib/vivlio/starter/cli/build/output_helpers.rb,
lib/vivlio/starter/cli/index/scoring_engine.rb,
lib/vivlio/starter/cli/metrics/live_display.rb,
lib/vivlio/starter/cli/pdf/pdf_read_command.rb,
lib/vivlio/starter/cli/samovar/help_command.rb,
lib/vivlio/starter/cli/samovar/lint_command.rb,
lib/vivlio/starter/cli/samovar/open_command.rb,
lib/vivlio/starter/cli/samovar/root_command.rb,
lib/vivlio/starter/cli/build/catalog_updater.rb,
lib/vivlio/starter/cli/build/image_optimizer.rb,
lib/vivlio/starter/cli/build/section_builder.rb,
lib/vivlio/starter/cli/import/yaml_processor.rb,
lib/vivlio/starter/cli/metrics/config_loader.rb,
lib/vivlio/starter/cli/pdf/standard_provider.rb,
lib/vivlio/starter/cli/samovar/build_command.rb,
lib/vivlio/starter/cli/samovar/clean_command.rb,
lib/vivlio/starter/cli/samovar/cover_command.rb,
lib/vivlio/starter/cli/samovar/index_command.rb,
lib/vivlio/starter/cli/import/image_processor.rb,
lib/vivlio/starter/cli/metrics/catalog_loader.rb,
lib/vivlio/starter/cli/metrics/chapter_parser.rb,
lib/vivlio/starter/cli/samovar/create_command.rb,
lib/vivlio/starter/cli/samovar/delete_command.rb,
lib/vivlio/starter/cli/samovar/doctor_command.rb,
lib/vivlio/starter/cli/samovar/import_command.rb,
lib/vivlio/starter/cli/samovar/rename_command.rb,
lib/vivlio/starter/cli/samovar/resize_command.rb,
lib/vivlio/starter/cli/build/outline_extractor.rb,
lib/vivlio/starter/cli/metrics/parallel_runner.rb,
lib/vivlio/starter/cli/pre_process/css_updater.rb,
lib/vivlio/starter/cli/pre_process/data_render.rb,
lib/vivlio/starter/cli/samovar/metrics_command.rb,
lib/vivlio/starter/cli/index/hierarchical_index.rb,
lib/vivlio/starter/cli/post_process/html_parser.rb,
lib/vivlio/starter/cli/import/markdown_converter.rb,
lib/vivlio/starter/cli/index/index_match_scanner.rb,
lib/vivlio/starter/cli/pdf/mecab_newline_cleaner.rb,
lib/vivlio/starter/cli/samovar/preflight_command.rb,
lib/vivlio/starter/cli/build/part_title_generator.rb,
lib/vivlio/starter/cli/index/review_queue_manager.rb,
lib/vivlio/starter/cli/index/unified_page_builder.rb,
lib/vivlio/starter/cli/post_process/html_replacer.rb,
lib/vivlio/starter/cli/pre_process/markdown_utils.rb,
lib/vivlio/starter/cli/build/backlink_deduplicator.rb,
lib/vivlio/starter/cli/index/unified_index_manager.rb,
lib/vivlio/starter/cli/index/unified_terms_manager.rb,
lib/vivlio/starter/cli/pre_process/image_generator.rb,
lib/vivlio/starter/cli/build/page_mapping_extractor.rb,
lib/vivlio/starter/cli/post_process/section_wrapper.rb,
lib/vivlio/starter/cli/post_process/heading_processor.rb,
lib/vivlio/starter/cli/index/index_candidate_extractor.rb,
lib/vivlio/starter/cli/index/review_markdown_generator.rb,
lib/vivlio/starter/cli/post_process/footnote_converter.rb,
lib/vivlio/starter/cli/post_process/body_class_injector.rb,
lib/vivlio/starter/cli/pre_process/link_image_validator.rb,
lib/vivlio/starter/cli/pre_process/markdown_transformer.rb,
lib/vivlio/starter/cli/pre_process/theme_image_resolver.rb,
lib/vivlio/starter/cli/build/backlink_dedup_orchestrator.rb,
lib/vivlio/starter/cli/pre_process/frontmatter_generator.rb,
lib/vivlio/starter/cli/pre_process/image_path_normalizer.rb,
lib/vivlio/starter/cli/pre_process/markdown_preprocessor.rb,
lib/vivlio/starter/cli/pre_process/data_render/singularize.rb,
lib/vivlio/starter/cli/pre_process/cross_reference_processor.rb,
lib/vivlio/starter/cli/pre_process/data_render/template_compiler.rb,
lib/vivlio/starter/cli/pre_process/data_render/query_stream_parser.rb

Overview

File: lib/vivlio/starter/cli/pre_process/data_render/query_stream_parser.rb

責務:

QueryStream 記法(= books | tags=ruby | -title | 5 | :full)を
パースし、構造化されたクエリハッシュを返す。

パイプライン:

1. Source  - データ名(必須)
2. Filter  - 抽出条件(field=value, 比較演算子, 範囲指定)
3. Sort    - ソート条件(-field / +field)
4. Limit   - 件数制限(正の整数)
5. Style   - スタイル名(:stylename)

トークンの自動判別:

各トークンは形式で一意に判別される(省略・順序入れ替えに対応)

Defined Under Namespace

Modules: Starter