demotape 0.0.0.pre.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.github/CODEOWNERS +4 -0
- data/.github/FUNDING.yml +4 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +41 -0
- data/.github/ISSUE_TEMPLATE/config.yml +5 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +23 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +38 -0
- data/.github/dependabot.yml +15 -0
- data/.github/workflows/ruby-tests.yml +53 -0
- data/.gitignore +15 -0
- data/.rubocop.yml +18 -0
- data/CHANGELOG.md +16 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/CONTRIBUTING.md +80 -0
- data/Gemfile +5 -0
- data/LICENSE.md +20 -0
- data/Makefile +29 -0
- data/README.md +574 -0
- data/Rakefile +19 -0
- data/bin/console +16 -0
- data/bin/setup +10 -0
- data/bin/themes +37 -0
- data/demotape.ascii +19 -0
- data/demotape.gemspec +55 -0
- data/demotape.jsonc +59 -0
- data/demotape.y +520 -0
- data/demotape_ascii.rb +29 -0
- data/editors/sublime-text/Comments (DemoTape).tmPreferences +21 -0
- data/editors/sublime-text/DemoTape.sublime-completions +140 -0
- data/editors/sublime-text/DemoTape.sublime-syntax +243 -0
- data/editors/vim/README.md +91 -0
- data/editors/vim/ftdetect/demotape.vim +2 -0
- data/editors/vim/syntax/demotape.vim +81 -0
- data/editors/vscode/README.md +29 -0
- data/editors/vscode/demotape.tmLanguage.json +201 -0
- data/editors/vscode/language-configuration.json +24 -0
- data/editors/vscode/package.json +30 -0
- data/examples/alt.mp4 +0 -0
- data/examples/alt.png +0 -0
- data/examples/alt.tape +9 -0
- data/examples/arrow.mp4 +0 -0
- data/examples/arrow.png +0 -0
- data/examples/arrow.tape +7 -0
- data/examples/backspace.mp4 +0 -0
- data/examples/backspace.png +0 -0
- data/examples/backspace.tape +4 -0
- data/examples/bash.mp4 +0 -0
- data/examples/bash.png +0 -0
- data/examples/bash.tape +4 -0
- data/examples/bg.jpg +0 -0
- data/examples/clear.mp4 +0 -0
- data/examples/clear.png +0 -0
- data/examples/clear.tape +6 -0
- data/examples/cli_ui_interactive_prompt.mp4 +0 -0
- data/examples/cli_ui_interactive_prompt.png +0 -0
- data/examples/cli_ui_interactive_prompt.tape +16 -0
- data/examples/cli_ui_nested_frames.mp4 +0 -0
- data/examples/cli_ui_nested_frames.png +0 -0
- data/examples/cli_ui_nested_frames.tape +15 -0
- data/examples/cli_ui_progress.mp4 +0 -0
- data/examples/cli_ui_progress.png +0 -0
- data/examples/cli_ui_progress.tape +6 -0
- data/examples/cli_ui_spinner.mp4 +0 -0
- data/examples/cli_ui_spinner.png +0 -0
- data/examples/cli_ui_spinner.tape +6 -0
- data/examples/cli_ui_status_widget.mp4 +0 -0
- data/examples/cli_ui_status_widget.png +0 -0
- data/examples/cli_ui_status_widget.tape +6 -0
- data/examples/cli_ui_symbols.mp4 +0 -0
- data/examples/cli_ui_symbols.png +0 -0
- data/examples/cli_ui_symbols.tape +6 -0
- data/examples/cli_ui_text_prompt.mp4 +0 -0
- data/examples/cli_ui_text_prompt.png +0 -0
- data/examples/cli_ui_text_prompt.tape +10 -0
- data/examples/clipboard.mp4 +0 -0
- data/examples/clipboard.png +0 -0
- data/examples/clipboard.tape +5 -0
- data/examples/ctrl.mp4 +0 -0
- data/examples/ctrl.png +0 -0
- data/examples/ctrl.tape +5 -0
- data/examples/ctrl_arrows.mp4 +0 -0
- data/examples/ctrl_arrows.png +0 -0
- data/examples/ctrl_arrows.tape +14 -0
- data/examples/demotape.mp4 +0 -0
- data/examples/demotape.png +0 -0
- data/examples/demotape.tape +6 -0
- data/examples/demotape.txt +13 -0
- data/examples/enter.mp4 +0 -0
- data/examples/enter.png +0 -0
- data/examples/enter.tape +3 -0
- data/examples/errors/include_itself.tape +1 -0
- data/examples/fastfetch.gif +0 -0
- data/examples/fastfetch.mp4 +0 -0
- data/examples/fastfetch.png +0 -0
- data/examples/fastfetch.tape +11 -0
- data/examples/fish.mp4 +0 -0
- data/examples/fish.png +0 -0
- data/examples/fish.tape +4 -0
- data/examples/format.mp4 +0 -0
- data/examples/format.png +0 -0
- data/examples/format.tape +15 -0
- data/examples/gh-cli.mp4 +0 -0
- data/examples/gh-cli.png +0 -0
- data/examples/gh-cli.tape +13 -0
- data/examples/gif_loop.gif +0 -0
- data/examples/gif_loop.png +0 -0
- data/examples/gif_loop.tape +5 -0
- data/examples/include.mp4 +0 -0
- data/examples/include.png +0 -0
- data/examples/include.tape +1 -0
- data/examples/include_with_set.mp4 +0 -0
- data/examples/include_with_set.png +0 -0
- data/examples/include_with_set.tape +2 -0
- data/examples/meta/cli.tape +10 -0
- data/examples/nerdfonts.mp4 +0 -0
- data/examples/nerdfonts.png +0 -0
- data/examples/nerdfonts.tape +9 -0
- data/examples/output.gif +0 -0
- data/examples/output.mp4 +0 -0
- data/examples/output.png +0 -0
- data/examples/output.tape +8 -0
- data/examples/output.webm +0 -0
- data/examples/products.json +1803 -0
- data/examples/screenshot.mp4 +0 -0
- data/examples/screenshot.png +0 -0
- data/examples/screenshot.tape +9 -0
- data/examples/script.rb +3 -0
- data/examples/set_cursor_bar.mp4 +0 -0
- data/examples/set_cursor_bar.png +0 -0
- data/examples/set_cursor_bar.tape +5 -0
- data/examples/set_cursor_blink.mp4 +0 -0
- data/examples/set_cursor_blink.png +0 -0
- data/examples/set_cursor_blink.tape +4 -0
- data/examples/set_cursor_underline.mp4 +0 -0
- data/examples/set_cursor_underline.png +0 -0
- data/examples/set_cursor_underline.tape +5 -0
- data/examples/set_dimensions.mp4 +0 -0
- data/examples/set_dimensions.png +0 -0
- data/examples/set_dimensions.tape +5 -0
- data/examples/set_font_family.mp4 +0 -0
- data/examples/set_font_family.png +0 -0
- data/examples/set_font_family.tape +4 -0
- data/examples/set_font_size.mp4 +0 -0
- data/examples/set_font_size.png +0 -0
- data/examples/set_font_size.tape +4 -0
- data/examples/set_line_height.mp4 +0 -0
- data/examples/set_line_height.png +0 -0
- data/examples/set_line_height.tape +8 -0
- data/examples/set_margin.mp4 +0 -0
- data/examples/set_margin.png +0 -0
- data/examples/set_margin.tape +7 -0
- data/examples/set_margin_with_border_radius.mp4 +0 -0
- data/examples/set_margin_with_border_radius.png +0 -0
- data/examples/set_margin_with_border_radius.tape +8 -0
- data/examples/set_margin_with_image.mp4 +0 -0
- data/examples/set_margin_with_image.png +0 -0
- data/examples/set_margin_with_image.tape +7 -0
- data/examples/set_padding.mp4 +0 -0
- data/examples/set_padding.png +0 -0
- data/examples/set_padding.tape +7 -0
- data/examples/set_theme.mp4 +0 -0
- data/examples/set_theme.png +0 -0
- data/examples/set_theme.tape +9 -0
- data/examples/set_theme_property.mp4 +0 -0
- data/examples/set_theme_property.png +0 -0
- data/examples/set_theme_property.tape +10 -0
- data/examples/set_typing_speed.mp4 +0 -0
- data/examples/set_typing_speed.png +0 -0
- data/examples/set_typing_speed.tape +6 -0
- data/examples/slides.mp4 +0 -0
- data/examples/slides.png +0 -0
- data/examples/slides.tape +14 -0
- data/examples/space.mp4 +0 -0
- data/examples/space.png +0 -0
- data/examples/space.tape +3 -0
- data/examples/stdin.mp4 +0 -0
- data/examples/stdin.png +0 -0
- data/examples/stdin.tape +7 -0
- data/examples/tab.mp4 +0 -0
- data/examples/tab.png +0 -0
- data/examples/tab.tape +5 -0
- data/examples/themes/3024_day.png +0 -0
- data/examples/themes/3024_night.png +0 -0
- data/examples/themes/aardvark_blue.png +0 -0
- data/examples/themes/abernathy.png +0 -0
- data/examples/themes/adventure.png +0 -0
- data/examples/themes/adventure_time.png +0 -0
- data/examples/themes/afterglow.png +0 -0
- data/examples/themes/alabaster.png +0 -0
- data/examples/themes/alien_blood.png +0 -0
- data/examples/themes/andromeda.png +0 -0
- data/examples/themes/apple_classic.png +0 -0
- data/examples/themes/apple_system_colors.png +0 -0
- data/examples/themes/arcoiris.png +0 -0
- data/examples/themes/argonaut.png +0 -0
- data/examples/themes/arthur.png +0 -0
- data/examples/themes/atelier_sulphurpool.png +0 -0
- data/examples/themes/atom.png +0 -0
- data/examples/themes/atom_one_light.png +0 -0
- data/examples/themes/aurora.png +0 -0
- data/examples/themes/ayu.png +0 -0
- data/examples/themes/ayu_light.png +0 -0
- data/examples/themes/ayu_mirage.png +0 -0
- data/examples/themes/banana_blueberry.png +0 -0
- data/examples/themes/batman.png +0 -0
- data/examples/themes/belafonte_day.png +0 -0
- data/examples/themes/belafonte_night.png +0 -0
- data/examples/themes/birds_of_paradise.png +0 -0
- data/examples/themes/blazer.png +0 -0
- data/examples/themes/blue_berry_pie.png +0 -0
- data/examples/themes/blue_dolphin.png +0 -0
- data/examples/themes/blue_matrix.png +0 -0
- data/examples/themes/bluloco_dark.png +0 -0
- data/examples/themes/bluloco_light.png +0 -0
- data/examples/themes/borland.png +0 -0
- data/examples/themes/breeze.png +0 -0
- data/examples/themes/bright_lights.png +0 -0
- data/examples/themes/broadcast.png +0 -0
- data/examples/themes/brogrammer.png +0 -0
- data/examples/themes/bubbles.png +0 -0
- data/examples/themes/builtin_dark.png +0 -0
- data/examples/themes/builtin_light.png +0 -0
- data/examples/themes/builtin_pastel_dark.png +0 -0
- data/examples/themes/builtin_solarized_dark.png +0 -0
- data/examples/themes/builtin_solarized_light.png +0 -0
- data/examples/themes/builtin_tango_dark.png +0 -0
- data/examples/themes/builtin_tango_light.png +0 -0
- data/examples/themes/c64.png +0 -0
- data/examples/themes/calamity.png +0 -0
- data/examples/themes/catppuccin_frappe.png +0 -0
- data/examples/themes/catppuccin_latte.png +0 -0
- data/examples/themes/catppuccin_macchiato.png +0 -0
- data/examples/themes/catppuccin_mocha.png +0 -0
- data/examples/themes/cga.png +0 -0
- data/examples/themes/chalk.png +0 -0
- data/examples/themes/chalkboard.png +0 -0
- data/examples/themes/challenger_deep.png +0 -0
- data/examples/themes/chester.png +0 -0
- data/examples/themes/ciapre.png +0 -0
- data/examples/themes/clrs.png +0 -0
- data/examples/themes/cobalt2.png +0 -0
- data/examples/themes/cobalt_neon.png +0 -0
- data/examples/themes/coffee_theme.png +0 -0
- data/examples/themes/contrast_light.png +0 -0
- data/examples/themes/coolnight.png +0 -0
- data/examples/themes/crayon_pony_fish.png +0 -0
- data/examples/themes/crystal_violet.png +0 -0
- data/examples/themes/cutie_pro.png +0 -0
- data/examples/themes/cyber_cube.png +0 -0
- data/examples/themes/cyber_punk2077.png +0 -0
- data/examples/themes/cyberdyne.png +0 -0
- data/examples/themes/cyberpunk.png +0 -0
- data/examples/themes/dark_pastel.png +0 -0
- data/examples/themes/dark_plus.png +0 -0
- data/examples/themes/darkermatrix.png +0 -0
- data/examples/themes/darkmatrix.png +0 -0
- data/examples/themes/darkside.png +0 -0
- data/examples/themes/dayfox.png +0 -0
- data/examples/themes/deep.png +0 -0
- data/examples/themes/desert.png +0 -0
- data/examples/themes/dimmed_monokai.png +0 -0
- data/examples/themes/django.png +0 -0
- data/examples/themes/django_reborn_again.png +0 -0
- data/examples/themes/django_smooth.png +0 -0
- data/examples/themes/doom_one.png +0 -0
- data/examples/themes/doom_peacock.png +0 -0
- data/examples/themes/dot_gov.png +0 -0
- data/examples/themes/dracula.png +0 -0
- data/examples/themes/dracula_plus.png +0 -0
- data/examples/themes/duckbones.png +0 -0
- data/examples/themes/duotone_dark.png +0 -0
- data/examples/themes/earthsong.png +0 -0
- data/examples/themes/elemental.png +0 -0
- data/examples/themes/elementary.png +0 -0
- data/examples/themes/encom.png +0 -0
- data/examples/themes/espresso.png +0 -0
- data/examples/themes/espresso_libre.png +0 -0
- data/examples/themes/everblush.png +0 -0
- data/examples/themes/fahrenheit.png +0 -0
- data/examples/themes/fairyfloss.png +0 -0
- data/examples/themes/farmhouse_dark.png +0 -0
- data/examples/themes/farmhouse_light.png +0 -0
- data/examples/themes/fideloper.png +0 -0
- data/examples/themes/firefly_traditional.png +0 -0
- data/examples/themes/firefox_dev.png +0 -0
- data/examples/themes/firewatch.png +0 -0
- data/examples/themes/fish_tank.png +0 -0
- data/examples/themes/flat.png +0 -0
- data/examples/themes/flatland.png +0 -0
- data/examples/themes/flexoki_dark.png +0 -0
- data/examples/themes/flexoki_light.png +0 -0
- data/examples/themes/floraverse.png +0 -0
- data/examples/themes/forest_blue.png +0 -0
- data/examples/themes/framer.png +0 -0
- data/examples/themes/front_end_delight.png +0 -0
- data/examples/themes/fun_forrest.png +0 -0
- data/examples/themes/galaxy.png +0 -0
- data/examples/themes/galizur.png +0 -0
- data/examples/themes/ganyu.png +0 -0
- data/examples/themes/git_hub_dark.png +0 -0
- data/examples/themes/github.png +0 -0
- data/examples/themes/glacier.png +0 -0
- data/examples/themes/glorious.png +0 -0
- data/examples/themes/grape.png +0 -0
- data/examples/themes/grass.png +0 -0
- data/examples/themes/grey_green.png +0 -0
- data/examples/themes/gruvbox_dark.png +0 -0
- data/examples/themes/gruvbox_dark_hard.png +0 -0
- data/examples/themes/gruvbox_light.png +0 -0
- data/examples/themes/guezwhoz.png +0 -0
- data/examples/themes/h4rithd.png +0 -0
- data/examples/themes/h4rithd_com.png +0 -0
- data/examples/themes/ha_x0_r_blue.png +0 -0
- data/examples/themes/ha_x0_r_gr33_n.png +0 -0
- data/examples/themes/ha_x0_r_r3_d.png +0 -0
- data/examples/themes/hacktober.png +0 -0
- data/examples/themes/hardcore.png +0 -0
- data/examples/themes/harper.png +0 -0
- data/examples/themes/highway.png +0 -0
- data/examples/themes/hipster_green.png +0 -0
- data/examples/themes/hivacruz.png +0 -0
- data/examples/themes/homebrew.png +0 -0
- data/examples/themes/hopscotch.png +0 -0
- data/examples/themes/hopscotch_256.png +0 -0
- data/examples/themes/horizon.png +0 -0
- data/examples/themes/hurtado.png +0 -0
- data/examples/themes/hybrid.png +0 -0
- data/examples/themes/hyper.png +0 -0
- data/examples/themes/ic_green_ppl.png +0 -0
- data/examples/themes/ic_orange_ppl.png +0 -0
- data/examples/themes/iceberg_dark.png +0 -0
- data/examples/themes/iceberg_light.png +0 -0
- data/examples/themes/idea.png +0 -0
- data/examples/themes/idle_toes.png +0 -0
- data/examples/themes/ir_black.png +0 -0
- data/examples/themes/iterm2_dark_background.png +0 -0
- data/examples/themes/iterm2_default.png +0 -0
- data/examples/themes/iterm2_light_background.png +0 -0
- data/examples/themes/iterm2_pastel_dark_background.png +0 -0
- data/examples/themes/iterm2_smoooooth.png +0 -0
- data/examples/themes/iterm2_solarized_dark.png +0 -0
- data/examples/themes/iterm2_solarized_light.png +0 -0
- data/examples/themes/iterm2_tango_dark.png +0 -0
- data/examples/themes/iterm2_tango_light.png +0 -0
- data/examples/themes/jackie_brown.png +0 -0
- data/examples/themes/japanesque.png +0 -0
- data/examples/themes/jellybeans.png +0 -0
- data/examples/themes/jet_brains_darcula.png +0 -0
- data/examples/themes/jubi.png +0 -0
- data/examples/themes/juicy_colors.png +0 -0
- data/examples/themes/kanagawa.png +0 -0
- data/examples/themes/kanagawabones.png +0 -0
- data/examples/themes/kibble.png +0 -0
- data/examples/themes/kolorit.png +0 -0
- data/examples/themes/konsolas.png +0 -0
- data/examples/themes/lab_fox.png +0 -0
- data/examples/themes/laser.png +0 -0
- data/examples/themes/later_this_evening.png +0 -0
- data/examples/themes/lavandula.png +0 -0
- data/examples/themes/liquid_carbon.png +0 -0
- data/examples/themes/liquid_carbon_transparent.png +0 -0
- data/examples/themes/liquid_carbon_transparent_inverse.png +0 -0
- data/examples/themes/lovelace.png +0 -0
- data/examples/themes/man_page.png +0 -0
- data/examples/themes/mariana.png +0 -0
- data/examples/themes/material.png +0 -0
- data/examples/themes/material_dark.png +0 -0
- data/examples/themes/material_darker.png +0 -0
- data/examples/themes/material_design_colors.png +0 -0
- data/examples/themes/material_ocean.png +0 -0
- data/examples/themes/mathias.png +0 -0
- data/examples/themes/matrix.png +0 -0
- data/examples/themes/medallion.png +0 -0
- data/examples/themes/mellifluous.png +0 -0
- data/examples/themes/midnight_in_mojave.png +0 -0
- data/examples/themes/mirage.png +0 -0
- data/examples/themes/misterioso.png +0 -0
- data/examples/themes/molokai.png +0 -0
- data/examples/themes/mona_lisa.png +0 -0
- data/examples/themes/monokai_cmder.png +0 -0
- data/examples/themes/monokai_pro.png +0 -0
- data/examples/themes/monokai_pro_filter_octagon.png +0 -0
- data/examples/themes/monokai_pro_filter_ristretto.png +0 -0
- data/examples/themes/monokai_remastered.png +0 -0
- data/examples/themes/monokai_soda.png +0 -0
- data/examples/themes/monokai_vivid.png +0 -0
- data/examples/themes/moonlight_ii.png +0 -0
- data/examples/themes/n0tch2k.png +0 -0
- data/examples/themes/neobones_dark.png +0 -0
- data/examples/themes/neobones_light.png +0 -0
- data/examples/themes/neon.png +0 -0
- data/examples/themes/neopolitan.png +0 -0
- data/examples/themes/neutron.png +0 -0
- data/examples/themes/night_city.png +0 -0
- data/examples/themes/night_lion_v1.png +0 -0
- data/examples/themes/night_lion_v2.png +0 -0
- data/examples/themes/night_owlish_light.png +0 -0
- data/examples/themes/nightfox.png +0 -0
- data/examples/themes/niji.png +0 -0
- data/examples/themes/nocturnal_winter.png +0 -0
- data/examples/themes/nord.png +0 -0
- data/examples/themes/nord_light.png +0 -0
- data/examples/themes/novel.png +0 -0
- data/examples/themes/nvim_dark.png +0 -0
- data/examples/themes/nvim_light.png +0 -0
- data/examples/themes/obsidian.png +0 -0
- data/examples/themes/ocean.png +0 -0
- data/examples/themes/oceanic_material.png +0 -0
- data/examples/themes/oceanic_next.png +0 -0
- data/examples/themes/ollie.png +0 -0
- data/examples/themes/one_dark.png +0 -0
- data/examples/themes/one_half_dark.png +0 -0
- data/examples/themes/one_half_light.png +0 -0
- data/examples/themes/one_star.png +0 -0
- data/examples/themes/operator_mono_dark.png +0 -0
- data/examples/themes/overnight_slumber.png +0 -0
- data/examples/themes/pale_night_hc.png +0 -0
- data/examples/themes/pandora.png +0 -0
- data/examples/themes/paraiso_dark.png +0 -0
- data/examples/themes/paul_millr.png +0 -0
- data/examples/themes/pencil_dark.png +0 -0
- data/examples/themes/pencil_light.png +0 -0
- data/examples/themes/peppermint.png +0 -0
- data/examples/themes/piatto_light.png +0 -0
- data/examples/themes/pnevma.png +0 -0
- data/examples/themes/popping_and_locking.png +0 -0
- data/examples/themes/primary.png +0 -0
- data/examples/themes/primer.png +0 -0
- data/examples/themes/pro.png +0 -0
- data/examples/themes/pro_light.png +0 -0
- data/examples/themes/purple_rain.png +0 -0
- data/examples/themes/purplepeter.png +0 -0
- data/examples/themes/qb64_super_dark_blue.png +0 -0
- data/examples/themes/rapture.png +0 -0
- data/examples/themes/raycast_dark.png +0 -0
- data/examples/themes/raycast_light.png +0 -0
- data/examples/themes/rebecca.png +0 -0
- data/examples/themes/red_alert.png +0 -0
- data/examples/themes/red_planet.png +0 -0
- data/examples/themes/red_sands.png +0 -0
- data/examples/themes/relaxed.png +0 -0
- data/examples/themes/retro.png +0 -0
- data/examples/themes/retrowave.png +0 -0
- data/examples/themes/rippedcasts.png +0 -0
- data/examples/themes/rose_pine.png +0 -0
- data/examples/themes/rose_pine_dawn.png +0 -0
- data/examples/themes/rose_pine_moon.png +0 -0
- data/examples/themes/rouge_2.png +0 -0
- data/examples/themes/royal.png +0 -0
- data/examples/themes/ryuuko.png +0 -0
- data/examples/themes/sakura.png +0 -0
- data/examples/themes/scarlet_protocol.png +0 -0
- data/examples/themes/sea_shells.png +0 -0
- data/examples/themes/seafoam_pastel.png +0 -0
- data/examples/themes/seoulbones_dark.png +0 -0
- data/examples/themes/seoulbones_light.png +0 -0
- data/examples/themes/serendipity_midnight.png +0 -0
- data/examples/themes/serendipity_morning.png +0 -0
- data/examples/themes/serendipity_sunset.png +0 -0
- data/examples/themes/seti.png +0 -0
- data/examples/themes/shades_of_purple.png +0 -0
- data/examples/themes/shaman.png +0 -0
- data/examples/themes/slate.png +0 -0
- data/examples/themes/sleepy_hollow.png +0 -0
- data/examples/themes/smyck.png +0 -0
- data/examples/themes/snazzy.png +0 -0
- data/examples/themes/soft_server.png +0 -0
- data/examples/themes/solarized_darcula.png +0 -0
- data/examples/themes/solarized_dark_higher_contrast.png +0 -0
- data/examples/themes/solarized_dark_patched.png +0 -0
- data/examples/themes/sonoran_gothic.png +0 -0
- data/examples/themes/sonoran_sunrise.png +0 -0
- data/examples/themes/space_gray.png +0 -0
- data/examples/themes/space_gray_eighties.png +0 -0
- data/examples/themes/space_gray_eighties_dull.png +0 -0
- data/examples/themes/spacedust.png +0 -0
- data/examples/themes/spiderman.png +0 -0
- data/examples/themes/spring.png +0 -0
- data/examples/themes/square.png +0 -0
- data/examples/themes/sublette.png +0 -0
- data/examples/themes/subliminal.png +0 -0
- data/examples/themes/sundried.png +0 -0
- data/examples/themes/symfonic.png +0 -0
- data/examples/themes/synthwave.png +0 -0
- data/examples/themes/synthwave_alpha.png +0 -0
- data/examples/themes/synthwave_everything.png +0 -0
- data/examples/themes/tango_adapted.png +0 -0
- data/examples/themes/tango_half_adapted.png +0 -0
- data/examples/themes/teerb.png +0 -0
- data/examples/themes/terafox.png +0 -0
- data/examples/themes/terminal_basic.png +0 -0
- data/examples/themes/thayer_bright.png +0 -0
- data/examples/themes/the_hulk.png +0 -0
- data/examples/themes/theme.tape +13 -0
- data/examples/themes/tinacious_design_dark.png +0 -0
- data/examples/themes/tinacious_design_light.png +0 -0
- data/examples/themes/tokyo_night.png +0 -0
- data/examples/themes/tokyo_night_light.png +0 -0
- data/examples/themes/tokyo_night_storm.png +0 -0
- data/examples/themes/tokyonight.png +0 -0
- data/examples/themes/tokyonight_day.png +0 -0
- data/examples/themes/tokyonight_storm.png +0 -0
- data/examples/themes/tomorrow.png +0 -0
- data/examples/themes/tomorrow_night.png +0 -0
- data/examples/themes/tomorrow_night_blue.png +0 -0
- data/examples/themes/tomorrow_night_bright.png +0 -0
- data/examples/themes/tomorrow_night_burns.png +0 -0
- data/examples/themes/tomorrow_night_eighties.png +0 -0
- data/examples/themes/toy_chest.png +0 -0
- data/examples/themes/treehouse.png +0 -0
- data/examples/themes/twilight.png +0 -0
- data/examples/themes/ubuntu.png +0 -0
- data/examples/themes/ultra_dark.png +0 -0
- data/examples/themes/ultra_violent.png +0 -0
- data/examples/themes/under_the_sea.png +0 -0
- data/examples/themes/unholy.png +0 -0
- data/examples/themes/unikitty.png +0 -0
- data/examples/themes/urple.png +0 -0
- data/examples/themes/vaughn.png +0 -0
- data/examples/themes/vesper.png +0 -0
- data/examples/themes/vibrant_ink.png +0 -0
- data/examples/themes/vimbones.png +0 -0
- data/examples/themes/violet_dark.png +0 -0
- data/examples/themes/violet_light.png +0 -0
- data/examples/themes/warm_neon.png +0 -0
- data/examples/themes/wez.png +0 -0
- data/examples/themes/whimsy.png +0 -0
- data/examples/themes/wild_cherry.png +0 -0
- data/examples/themes/wilmersdorf.png +0 -0
- data/examples/themes/wombat.png +0 -0
- data/examples/themes/wryan.png +0 -0
- data/examples/themes/zenbones.png +0 -0
- data/examples/themes/zenbones_dark.png +0 -0
- data/examples/themes/zenbones_light.png +0 -0
- data/examples/themes/zenburn.png +0 -0
- data/examples/themes/zenburned.png +0 -0
- data/examples/themes/zenwritten_dark.png +0 -0
- data/examples/themes/zenwritten_light.png +0 -0
- data/examples/themes/zeonica.png +0 -0
- data/examples/tmux.mp4 +0 -0
- data/examples/tmux.png +0 -0
- data/examples/tmux.tape +28 -0
- data/examples/type.mp4 +0 -0
- data/examples/type.png +0 -0
- data/examples/type.tape +11 -0
- data/examples/type_file.mp4 +0 -0
- data/examples/type_file.png +0 -0
- data/examples/type_file.tape +23 -0
- data/examples/variable_typing.mp4 +0 -0
- data/examples/variable_typing.png +0 -0
- data/examples/variable_typing.tape +41 -0
- data/examples/wait_until.mp4 +0 -0
- data/examples/wait_until.png +0 -0
- data/examples/wait_until.tape +8 -0
- data/examples/zsh.mp4 +0 -0
- data/examples/zsh.png +0 -0
- data/examples/zsh.tape +4 -0
- data/exe/demotape +11 -0
- data/lib/demo_tape/bounds.rb +15 -0
- data/lib/demo_tape/cli.rb +158 -0
- data/lib/demo_tape/command.rb +341 -0
- data/lib/demo_tape/duration.rb +31 -0
- data/lib/demo_tape/exporter.rb +372 -0
- data/lib/demo_tape/generator.rb +17 -0
- data/lib/demo_tape/lexer.rb +262 -0
- data/lib/demo_tape/parser.rb +889 -0
- data/lib/demo_tape/rcs/bash +32 -0
- data/lib/demo_tape/rcs/fish +31 -0
- data/lib/demo_tape/rcs/zsh +40 -0
- data/lib/demo_tape/runner.rb +722 -0
- data/lib/demo_tape/spacing.rb +5 -0
- data/lib/demo_tape/spinner.rb +37 -0
- data/lib/demo_tape/templates/.keep +0 -0
- data/lib/demo_tape/theme.rb +49 -0
- data/lib/demo_tape/themes/3024_day.json +22 -0
- data/lib/demo_tape/themes/3024_night.json +22 -0
- data/lib/demo_tape/themes/aardvark_blue.json +22 -0
- data/lib/demo_tape/themes/abernathy.json +22 -0
- data/lib/demo_tape/themes/adventure.json +22 -0
- data/lib/demo_tape/themes/adventure_time.json +22 -0
- data/lib/demo_tape/themes/afterglow.json +22 -0
- data/lib/demo_tape/themes/alabaster.json +22 -0
- data/lib/demo_tape/themes/alien_blood.json +22 -0
- data/lib/demo_tape/themes/andromeda.json +22 -0
- data/lib/demo_tape/themes/apple_classic.json +22 -0
- data/lib/demo_tape/themes/apple_system_colors.json +22 -0
- data/lib/demo_tape/themes/arcoiris.json +22 -0
- data/lib/demo_tape/themes/argonaut.json +22 -0
- data/lib/demo_tape/themes/arthur.json +22 -0
- data/lib/demo_tape/themes/atelier_sulphurpool.json +22 -0
- data/lib/demo_tape/themes/atom.json +22 -0
- data/lib/demo_tape/themes/atom_one_light.json +22 -0
- data/lib/demo_tape/themes/aurora.json +22 -0
- data/lib/demo_tape/themes/ayu.json +22 -0
- data/lib/demo_tape/themes/ayu_light.json +22 -0
- data/lib/demo_tape/themes/ayu_mirage.json +22 -0
- data/lib/demo_tape/themes/banana_blueberry.json +22 -0
- data/lib/demo_tape/themes/batman.json +22 -0
- data/lib/demo_tape/themes/belafonte_day.json +22 -0
- data/lib/demo_tape/themes/belafonte_night.json +22 -0
- data/lib/demo_tape/themes/birds_of_paradise.json +22 -0
- data/lib/demo_tape/themes/blazer.json +22 -0
- data/lib/demo_tape/themes/blue_berry_pie.json +22 -0
- data/lib/demo_tape/themes/blue_dolphin.json +22 -0
- data/lib/demo_tape/themes/blue_matrix.json +22 -0
- data/lib/demo_tape/themes/bluloco_dark.json +22 -0
- data/lib/demo_tape/themes/bluloco_light.json +22 -0
- data/lib/demo_tape/themes/borland.json +22 -0
- data/lib/demo_tape/themes/breeze.json +22 -0
- data/lib/demo_tape/themes/bright_lights.json +22 -0
- data/lib/demo_tape/themes/broadcast.json +22 -0
- data/lib/demo_tape/themes/brogrammer.json +22 -0
- data/lib/demo_tape/themes/bubbles.json +22 -0
- data/lib/demo_tape/themes/builtin_dark.json +22 -0
- data/lib/demo_tape/themes/builtin_light.json +22 -0
- data/lib/demo_tape/themes/builtin_pastel_dark.json +22 -0
- data/lib/demo_tape/themes/builtin_solarized_dark.json +22 -0
- data/lib/demo_tape/themes/builtin_solarized_light.json +22 -0
- data/lib/demo_tape/themes/builtin_tango_dark.json +22 -0
- data/lib/demo_tape/themes/builtin_tango_light.json +22 -0
- data/lib/demo_tape/themes/c64.json +22 -0
- data/lib/demo_tape/themes/calamity.json +22 -0
- data/lib/demo_tape/themes/catppuccin_frappe.json +22 -0
- data/lib/demo_tape/themes/catppuccin_latte.json +22 -0
- data/lib/demo_tape/themes/catppuccin_macchiato.json +22 -0
- data/lib/demo_tape/themes/catppuccin_mocha.json +22 -0
- data/lib/demo_tape/themes/cga.json +22 -0
- data/lib/demo_tape/themes/chalk.json +22 -0
- data/lib/demo_tape/themes/chalkboard.json +22 -0
- data/lib/demo_tape/themes/challenger_deep.json +22 -0
- data/lib/demo_tape/themes/chester.json +22 -0
- data/lib/demo_tape/themes/ciapre.json +22 -0
- data/lib/demo_tape/themes/clrs.json +22 -0
- data/lib/demo_tape/themes/cobalt2.json +22 -0
- data/lib/demo_tape/themes/cobalt_neon.json +22 -0
- data/lib/demo_tape/themes/coffee_theme.json +22 -0
- data/lib/demo_tape/themes/contrast_light.json +22 -0
- data/lib/demo_tape/themes/coolnight.json +22 -0
- data/lib/demo_tape/themes/crayon_pony_fish.json +22 -0
- data/lib/demo_tape/themes/crystal_violet.json +22 -0
- data/lib/demo_tape/themes/cutie_pro.json +22 -0
- data/lib/demo_tape/themes/cyber_cube.json +22 -0
- data/lib/demo_tape/themes/cyber_punk2077.json +22 -0
- data/lib/demo_tape/themes/cyberdyne.json +22 -0
- data/lib/demo_tape/themes/cyberpunk.json +22 -0
- data/lib/demo_tape/themes/dark_pastel.json +22 -0
- data/lib/demo_tape/themes/dark_plus.json +22 -0
- data/lib/demo_tape/themes/darkermatrix.json +22 -0
- data/lib/demo_tape/themes/darkmatrix.json +22 -0
- data/lib/demo_tape/themes/darkside.json +22 -0
- data/lib/demo_tape/themes/dayfox.json +22 -0
- data/lib/demo_tape/themes/deep.json +22 -0
- data/lib/demo_tape/themes/default_dark.json +22 -0
- data/lib/demo_tape/themes/default_light.json +22 -0
- data/lib/demo_tape/themes/desert.json +22 -0
- data/lib/demo_tape/themes/dimmed_monokai.json +22 -0
- data/lib/demo_tape/themes/django.json +22 -0
- data/lib/demo_tape/themes/django_reborn_again.json +22 -0
- data/lib/demo_tape/themes/django_smooth.json +22 -0
- data/lib/demo_tape/themes/doom_one.json +22 -0
- data/lib/demo_tape/themes/doom_peacock.json +22 -0
- data/lib/demo_tape/themes/dot_gov.json +22 -0
- data/lib/demo_tape/themes/dracula.json +22 -0
- data/lib/demo_tape/themes/dracula_plus.json +21 -0
- data/lib/demo_tape/themes/duckbones.json +22 -0
- data/lib/demo_tape/themes/duotone_dark.json +22 -0
- data/lib/demo_tape/themes/earthsong.json +22 -0
- data/lib/demo_tape/themes/elemental.json +22 -0
- data/lib/demo_tape/themes/elementary.json +22 -0
- data/lib/demo_tape/themes/encom.json +22 -0
- data/lib/demo_tape/themes/espresso.json +22 -0
- data/lib/demo_tape/themes/espresso_libre.json +22 -0
- data/lib/demo_tape/themes/everblush.json +22 -0
- data/lib/demo_tape/themes/fahrenheit.json +22 -0
- data/lib/demo_tape/themes/fairyfloss.json +22 -0
- data/lib/demo_tape/themes/farmhouse_dark.json +22 -0
- data/lib/demo_tape/themes/farmhouse_light.json +22 -0
- data/lib/demo_tape/themes/fideloper.json +22 -0
- data/lib/demo_tape/themes/firefly_traditional.json +22 -0
- data/lib/demo_tape/themes/firefox_dev.json +22 -0
- data/lib/demo_tape/themes/firewatch.json +22 -0
- data/lib/demo_tape/themes/fish_tank.json +22 -0
- data/lib/demo_tape/themes/flat.json +22 -0
- data/lib/demo_tape/themes/flatland.json +22 -0
- data/lib/demo_tape/themes/flexoki_dark.json +22 -0
- data/lib/demo_tape/themes/flexoki_light.json +22 -0
- data/lib/demo_tape/themes/floraverse.json +22 -0
- data/lib/demo_tape/themes/forest_blue.json +22 -0
- data/lib/demo_tape/themes/framer.json +22 -0
- data/lib/demo_tape/themes/front_end_delight.json +22 -0
- data/lib/demo_tape/themes/fun_forrest.json +22 -0
- data/lib/demo_tape/themes/galaxy.json +22 -0
- data/lib/demo_tape/themes/galizur.json +22 -0
- data/lib/demo_tape/themes/ganyu.json +22 -0
- data/lib/demo_tape/themes/git_hub_dark.json +22 -0
- data/lib/demo_tape/themes/github.json +22 -0
- data/lib/demo_tape/themes/glacier.json +22 -0
- data/lib/demo_tape/themes/glorious.json +21 -0
- data/lib/demo_tape/themes/grape.json +22 -0
- data/lib/demo_tape/themes/grass.json +22 -0
- data/lib/demo_tape/themes/grey_green.json +22 -0
- data/lib/demo_tape/themes/gruvbox_dark.json +22 -0
- data/lib/demo_tape/themes/gruvbox_dark_hard.json +22 -0
- data/lib/demo_tape/themes/gruvbox_light.json +22 -0
- data/lib/demo_tape/themes/guezwhoz.json +22 -0
- data/lib/demo_tape/themes/h4rithd.json +22 -0
- data/lib/demo_tape/themes/h4rithd_com.json +22 -0
- data/lib/demo_tape/themes/ha_x0_r_blue.json +22 -0
- data/lib/demo_tape/themes/ha_x0_r_gr33_n.json +22 -0
- data/lib/demo_tape/themes/ha_x0_r_r3_d.json +22 -0
- data/lib/demo_tape/themes/hacktober.json +22 -0
- data/lib/demo_tape/themes/hardcore.json +22 -0
- data/lib/demo_tape/themes/harper.json +22 -0
- data/lib/demo_tape/themes/highway.json +22 -0
- data/lib/demo_tape/themes/hipster_green.json +22 -0
- data/lib/demo_tape/themes/hivacruz.json +22 -0
- data/lib/demo_tape/themes/homebrew.json +22 -0
- data/lib/demo_tape/themes/hopscotch.json +22 -0
- data/lib/demo_tape/themes/hopscotch_256.json +22 -0
- data/lib/demo_tape/themes/horizon.json +21 -0
- data/lib/demo_tape/themes/hurtado.json +22 -0
- data/lib/demo_tape/themes/hybrid.json +22 -0
- data/lib/demo_tape/themes/hyper.json +22 -0
- data/lib/demo_tape/themes/ic_green_ppl.json +22 -0
- data/lib/demo_tape/themes/ic_orange_ppl.json +22 -0
- data/lib/demo_tape/themes/iceberg_dark.json +22 -0
- data/lib/demo_tape/themes/iceberg_light.json +22 -0
- data/lib/demo_tape/themes/idea.json +22 -0
- data/lib/demo_tape/themes/idle_toes.json +22 -0
- data/lib/demo_tape/themes/ir_black.json +22 -0
- data/lib/demo_tape/themes/iterm2_dark_background.json +22 -0
- data/lib/demo_tape/themes/iterm2_default.json +22 -0
- data/lib/demo_tape/themes/iterm2_light_background.json +22 -0
- data/lib/demo_tape/themes/iterm2_pastel_dark_background.json +22 -0
- data/lib/demo_tape/themes/iterm2_smoooooth.json +22 -0
- data/lib/demo_tape/themes/iterm2_solarized_dark.json +22 -0
- data/lib/demo_tape/themes/iterm2_solarized_light.json +22 -0
- data/lib/demo_tape/themes/iterm2_tango_dark.json +22 -0
- data/lib/demo_tape/themes/iterm2_tango_light.json +22 -0
- data/lib/demo_tape/themes/jackie_brown.json +22 -0
- data/lib/demo_tape/themes/japanesque.json +22 -0
- data/lib/demo_tape/themes/jellybeans.json +22 -0
- data/lib/demo_tape/themes/jet_brains_darcula.json +22 -0
- data/lib/demo_tape/themes/jubi.json +22 -0
- data/lib/demo_tape/themes/juicy_colors.json +22 -0
- data/lib/demo_tape/themes/kanagawa.json +22 -0
- data/lib/demo_tape/themes/kanagawabones.json +22 -0
- data/lib/demo_tape/themes/kibble.json +22 -0
- data/lib/demo_tape/themes/kolorit.json +22 -0
- data/lib/demo_tape/themes/konsolas.json +22 -0
- data/lib/demo_tape/themes/lab_fox.json +22 -0
- data/lib/demo_tape/themes/laser.json +22 -0
- data/lib/demo_tape/themes/later_this_evening.json +22 -0
- data/lib/demo_tape/themes/lavandula.json +22 -0
- data/lib/demo_tape/themes/liquid_carbon.json +22 -0
- data/lib/demo_tape/themes/liquid_carbon_transparent.json +22 -0
- data/lib/demo_tape/themes/liquid_carbon_transparent_inverse.json +22 -0
- data/lib/demo_tape/themes/lovelace.json +22 -0
- data/lib/demo_tape/themes/man_page.json +22 -0
- data/lib/demo_tape/themes/mariana.json +22 -0
- data/lib/demo_tape/themes/material.json +22 -0
- data/lib/demo_tape/themes/material_dark.json +22 -0
- data/lib/demo_tape/themes/material_darker.json +22 -0
- data/lib/demo_tape/themes/material_design_colors.json +22 -0
- data/lib/demo_tape/themes/material_ocean.json +22 -0
- data/lib/demo_tape/themes/mathias.json +22 -0
- data/lib/demo_tape/themes/matrix.json +22 -0
- data/lib/demo_tape/themes/medallion.json +22 -0
- data/lib/demo_tape/themes/mellifluous.json +22 -0
- data/lib/demo_tape/themes/midnight_in_mojave.json +22 -0
- data/lib/demo_tape/themes/mirage.json +22 -0
- data/lib/demo_tape/themes/misterioso.json +22 -0
- data/lib/demo_tape/themes/molokai.json +22 -0
- data/lib/demo_tape/themes/mona_lisa.json +22 -0
- data/lib/demo_tape/themes/monokai_cmder.json +22 -0
- data/lib/demo_tape/themes/monokai_pro.json +22 -0
- data/lib/demo_tape/themes/monokai_pro_filter_octagon.json +21 -0
- data/lib/demo_tape/themes/monokai_pro_filter_ristretto.json +22 -0
- data/lib/demo_tape/themes/monokai_remastered.json +22 -0
- data/lib/demo_tape/themes/monokai_soda.json +22 -0
- data/lib/demo_tape/themes/monokai_vivid.json +22 -0
- data/lib/demo_tape/themes/moonlight_ii.json +21 -0
- data/lib/demo_tape/themes/n0tch2k.json +22 -0
- data/lib/demo_tape/themes/neobones_dark.json +22 -0
- data/lib/demo_tape/themes/neobones_light.json +22 -0
- data/lib/demo_tape/themes/neon.json +22 -0
- data/lib/demo_tape/themes/neopolitan.json +22 -0
- data/lib/demo_tape/themes/neutron.json +22 -0
- data/lib/demo_tape/themes/night_city.json +22 -0
- data/lib/demo_tape/themes/night_lion_v1.json +22 -0
- data/lib/demo_tape/themes/night_lion_v2.json +22 -0
- data/lib/demo_tape/themes/night_owlish_light.json +22 -0
- data/lib/demo_tape/themes/nightfox.json +22 -0
- data/lib/demo_tape/themes/niji.json +22 -0
- data/lib/demo_tape/themes/nocturnal_winter.json +22 -0
- data/lib/demo_tape/themes/nord.json +22 -0
- data/lib/demo_tape/themes/nord_light.json +22 -0
- data/lib/demo_tape/themes/novel.json +22 -0
- data/lib/demo_tape/themes/nvim_dark.json +22 -0
- data/lib/demo_tape/themes/nvim_light.json +22 -0
- data/lib/demo_tape/themes/obsidian.json +22 -0
- data/lib/demo_tape/themes/ocean.json +22 -0
- data/lib/demo_tape/themes/oceanic_material.json +22 -0
- data/lib/demo_tape/themes/oceanic_next.json +22 -0
- data/lib/demo_tape/themes/ollie.json +22 -0
- data/lib/demo_tape/themes/one_dark.json +21 -0
- data/lib/demo_tape/themes/one_half_dark.json +22 -0
- data/lib/demo_tape/themes/one_half_light.json +22 -0
- data/lib/demo_tape/themes/one_star.json +21 -0
- data/lib/demo_tape/themes/operator_mono_dark.json +22 -0
- data/lib/demo_tape/themes/overnight_slumber.json +22 -0
- data/lib/demo_tape/themes/pale_night_hc.json +22 -0
- data/lib/demo_tape/themes/pandora.json +22 -0
- data/lib/demo_tape/themes/paraiso_dark.json +22 -0
- data/lib/demo_tape/themes/paul_millr.json +22 -0
- data/lib/demo_tape/themes/pencil_dark.json +22 -0
- data/lib/demo_tape/themes/pencil_light.json +22 -0
- data/lib/demo_tape/themes/peppermint.json +22 -0
- data/lib/demo_tape/themes/piatto_light.json +22 -0
- data/lib/demo_tape/themes/pnevma.json +22 -0
- data/lib/demo_tape/themes/popping_and_locking.json +22 -0
- data/lib/demo_tape/themes/primary.json +22 -0
- data/lib/demo_tape/themes/primer.json +21 -0
- data/lib/demo_tape/themes/pro.json +22 -0
- data/lib/demo_tape/themes/pro_light.json +22 -0
- data/lib/demo_tape/themes/purple_rain.json +22 -0
- data/lib/demo_tape/themes/purplepeter.json +22 -0
- data/lib/demo_tape/themes/qb64_super_dark_blue.json +22 -0
- data/lib/demo_tape/themes/rapture.json +22 -0
- data/lib/demo_tape/themes/raycast_dark.json +22 -0
- data/lib/demo_tape/themes/raycast_light.json +22 -0
- data/lib/demo_tape/themes/rebecca.json +22 -0
- data/lib/demo_tape/themes/red_alert.json +22 -0
- data/lib/demo_tape/themes/red_planet.json +22 -0
- data/lib/demo_tape/themes/red_sands.json +22 -0
- data/lib/demo_tape/themes/relaxed.json +22 -0
- data/lib/demo_tape/themes/retro.json +22 -0
- data/lib/demo_tape/themes/retrowave.json +21 -0
- data/lib/demo_tape/themes/rippedcasts.json +22 -0
- data/lib/demo_tape/themes/rose_pine.json +22 -0
- data/lib/demo_tape/themes/rose_pine_dawn.json +22 -0
- data/lib/demo_tape/themes/rose_pine_moon.json +22 -0
- data/lib/demo_tape/themes/rouge_2.json +22 -0
- data/lib/demo_tape/themes/royal.json +22 -0
- data/lib/demo_tape/themes/ryuuko.json +22 -0
- data/lib/demo_tape/themes/sakura.json +22 -0
- data/lib/demo_tape/themes/scarlet_protocol.json +22 -0
- data/lib/demo_tape/themes/sea_shells.json +22 -0
- data/lib/demo_tape/themes/seafoam_pastel.json +22 -0
- data/lib/demo_tape/themes/seoulbones_dark.json +22 -0
- data/lib/demo_tape/themes/seoulbones_light.json +22 -0
- data/lib/demo_tape/themes/serendipity_midnight.json +22 -0
- data/lib/demo_tape/themes/serendipity_morning.json +22 -0
- data/lib/demo_tape/themes/serendipity_sunset.json +22 -0
- data/lib/demo_tape/themes/seti.json +22 -0
- data/lib/demo_tape/themes/shades_of_purple.json +22 -0
- data/lib/demo_tape/themes/shaman.json +22 -0
- data/lib/demo_tape/themes/slate.json +22 -0
- data/lib/demo_tape/themes/sleepy_hollow.json +22 -0
- data/lib/demo_tape/themes/smyck.json +22 -0
- data/lib/demo_tape/themes/snazzy.json +22 -0
- data/lib/demo_tape/themes/soft_server.json +22 -0
- data/lib/demo_tape/themes/solarized_darcula.json +22 -0
- data/lib/demo_tape/themes/solarized_dark_higher_contrast.json +22 -0
- data/lib/demo_tape/themes/solarized_dark_patched.json +22 -0
- data/lib/demo_tape/themes/sonoran_gothic.json +21 -0
- data/lib/demo_tape/themes/sonoran_sunrise.json +22 -0
- data/lib/demo_tape/themes/space_gray.json +22 -0
- data/lib/demo_tape/themes/space_gray_eighties.json +22 -0
- data/lib/demo_tape/themes/space_gray_eighties_dull.json +22 -0
- data/lib/demo_tape/themes/spacedust.json +22 -0
- data/lib/demo_tape/themes/spiderman.json +22 -0
- data/lib/demo_tape/themes/spring.json +22 -0
- data/lib/demo_tape/themes/square.json +22 -0
- data/lib/demo_tape/themes/sublette.json +22 -0
- data/lib/demo_tape/themes/subliminal.json +22 -0
- data/lib/demo_tape/themes/sundried.json +22 -0
- data/lib/demo_tape/themes/symfonic.json +22 -0
- data/lib/demo_tape/themes/synthwave.json +22 -0
- data/lib/demo_tape/themes/synthwave_alpha.json +22 -0
- data/lib/demo_tape/themes/synthwave_everything.json +22 -0
- data/lib/demo_tape/themes/tango_adapted.json +22 -0
- data/lib/demo_tape/themes/tango_half_adapted.json +22 -0
- data/lib/demo_tape/themes/teerb.json +22 -0
- data/lib/demo_tape/themes/terafox.json +22 -0
- data/lib/demo_tape/themes/terminal_basic.json +22 -0
- data/lib/demo_tape/themes/thayer_bright.json +22 -0
- data/lib/demo_tape/themes/the_hulk.json +22 -0
- data/lib/demo_tape/themes/tinacious_design_dark.json +22 -0
- data/lib/demo_tape/themes/tinacious_design_light.json +22 -0
- data/lib/demo_tape/themes/tokyo_night.json +21 -0
- data/lib/demo_tape/themes/tokyo_night_light.json +21 -0
- data/lib/demo_tape/themes/tokyo_night_storm.json +21 -0
- data/lib/demo_tape/themes/tokyonight.json +22 -0
- data/lib/demo_tape/themes/tokyonight_day.json +22 -0
- data/lib/demo_tape/themes/tokyonight_storm.json +22 -0
- data/lib/demo_tape/themes/tomorrow.json +22 -0
- data/lib/demo_tape/themes/tomorrow_night.json +22 -0
- data/lib/demo_tape/themes/tomorrow_night_blue.json +22 -0
- data/lib/demo_tape/themes/tomorrow_night_bright.json +22 -0
- data/lib/demo_tape/themes/tomorrow_night_burns.json +22 -0
- data/lib/demo_tape/themes/tomorrow_night_eighties.json +22 -0
- data/lib/demo_tape/themes/toy_chest.json +22 -0
- data/lib/demo_tape/themes/treehouse.json +22 -0
- data/lib/demo_tape/themes/twilight.json +22 -0
- data/lib/demo_tape/themes/ubuntu.json +22 -0
- data/lib/demo_tape/themes/ultra_dark.json +22 -0
- data/lib/demo_tape/themes/ultra_violent.json +22 -0
- data/lib/demo_tape/themes/under_the_sea.json +22 -0
- data/lib/demo_tape/themes/unholy.json +22 -0
- data/lib/demo_tape/themes/unikitty.json +22 -0
- data/lib/demo_tape/themes/urple.json +22 -0
- data/lib/demo_tape/themes/vaughn.json +22 -0
- data/lib/demo_tape/themes/vesper.json +22 -0
- data/lib/demo_tape/themes/vibrant_ink.json +22 -0
- data/lib/demo_tape/themes/vimbones.json +22 -0
- data/lib/demo_tape/themes/violet_dark.json +22 -0
- data/lib/demo_tape/themes/violet_light.json +22 -0
- data/lib/demo_tape/themes/warm_neon.json +22 -0
- data/lib/demo_tape/themes/wez.json +22 -0
- data/lib/demo_tape/themes/whimsy.json +22 -0
- data/lib/demo_tape/themes/wild_cherry.json +22 -0
- data/lib/demo_tape/themes/wilmersdorf.json +22 -0
- data/lib/demo_tape/themes/wombat.json +22 -0
- data/lib/demo_tape/themes/wryan.json +22 -0
- data/lib/demo_tape/themes/zenbones.json +22 -0
- data/lib/demo_tape/themes/zenbones_dark.json +22 -0
- data/lib/demo_tape/themes/zenbones_light.json +22 -0
- data/lib/demo_tape/themes/zenburn.json +22 -0
- data/lib/demo_tape/themes/zenburned.json +22 -0
- data/lib/demo_tape/themes/zenwritten_dark.json +22 -0
- data/lib/demo_tape/themes/zenwritten_light.json +22 -0
- data/lib/demo_tape/themes/zeonica.json +22 -0
- data/lib/demo_tape/token.rb +24 -0
- data/lib/demo_tape/ttyd.rb +74 -0
- data/lib/demo_tape/version.rb +5 -0
- data/lib/demo_tape.rb +30 -0
- data/lib/demotape.rb +3 -0
- metadata +1209 -0
|
@@ -0,0 +1,889 @@
|
|
|
1
|
+
#
|
|
2
|
+
# DO NOT MODIFY!!!!
|
|
3
|
+
# This file is automatically generated by Racc 1.8.1
|
|
4
|
+
# from Racc grammar file "demotape.y".
|
|
5
|
+
#
|
|
6
|
+
|
|
7
|
+
require 'racc/parser.rb'
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
module DemoTape
|
|
11
|
+
class Parser < Racc::Parser
|
|
12
|
+
|
|
13
|
+
module_eval(<<'...end demotape.y/module_eval...', 'demotape.y', 442)
|
|
14
|
+
def parse(str, file: "<unknown>")
|
|
15
|
+
@file = file
|
|
16
|
+
@lexer = DemoTape::Lexer.new
|
|
17
|
+
@tokens = @lexer.tokenize(str)
|
|
18
|
+
@token_index = 0
|
|
19
|
+
do_parse
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def next_token
|
|
23
|
+
token = @tokens.shift
|
|
24
|
+
@current_token_index = @token_index
|
|
25
|
+
@token_index += 1
|
|
26
|
+
token
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
def make_token(type, value, index)
|
|
30
|
+
line_info = @lexer.line_map[index] || {}
|
|
31
|
+
token_class = case type
|
|
32
|
+
when :identifier then Token::Identifier
|
|
33
|
+
when :string then Token::String
|
|
34
|
+
when :number then Token::Number
|
|
35
|
+
when :duration then Token::Duration
|
|
36
|
+
when :regex then Token::Regex
|
|
37
|
+
when :time_unit then Token::TimeUnit
|
|
38
|
+
when :operator then Token::Operator
|
|
39
|
+
else Token::Base
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
token_class.new(
|
|
43
|
+
value,
|
|
44
|
+
line: line_info[:line],
|
|
45
|
+
column: line_info[:column],
|
|
46
|
+
raw: line_info[:raw]
|
|
47
|
+
)
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
def attach_location(command, duration_index: nil, speed_index: nil, timeout_index: nil)
|
|
51
|
+
line_info = @lexer.line_map[@command_start_index] || {}
|
|
52
|
+
command.line = line_info[:line]
|
|
53
|
+
command.column = line_info[:column]
|
|
54
|
+
command.line_content = line_info[:content]
|
|
55
|
+
command.file = @file
|
|
56
|
+
|
|
57
|
+
# Attach duration/speed/timeout specific columns if provided
|
|
58
|
+
if duration_index
|
|
59
|
+
duration_info = @lexer.line_map[duration_index] || {}
|
|
60
|
+
command.duration_column = duration_info[:column]
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
if speed_index
|
|
64
|
+
speed_info = @lexer.line_map[speed_index] || {}
|
|
65
|
+
command.speed_column = speed_info[:column]
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
if timeout_index
|
|
69
|
+
timeout_info = @lexer.line_map[timeout_index] || {}
|
|
70
|
+
command.timeout_column = timeout_info[:column]
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
command
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
def on_error(token_id, token_value, value_stack)
|
|
77
|
+
# Get line metadata from the lexer's line map
|
|
78
|
+
line_info = @lexer.line_map[@current_token_index] || {}
|
|
79
|
+
line_num = line_info[:line] || "?"
|
|
80
|
+
col_num = line_info[:column] || 1
|
|
81
|
+
line_content = line_info[:content] || ""
|
|
82
|
+
|
|
83
|
+
token_name = token_to_str(token_id) || token_id.to_s
|
|
84
|
+
|
|
85
|
+
error_msg = "Unexpected token #{token_name.inspect} at #{@file}:#{line_num}:#{col_num}:\n"
|
|
86
|
+
error_msg += " #{line_content}\n"
|
|
87
|
+
error_msg += " #{' ' * (col_num - 1)}^"
|
|
88
|
+
|
|
89
|
+
raise DemoTape::ParseError, error_msg
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
...end demotape.y/module_eval...
|
|
93
|
+
##### State transition tables begin ###
|
|
94
|
+
|
|
95
|
+
racc_action_table = [
|
|
96
|
+
37, 21, 18, 19, 40, 20, 38, 24, 25, 34,
|
|
97
|
+
24, 25, 43, 4, 44, 45, 24, 25, 6, 24,
|
|
98
|
+
25, 10, 4, 12, 47, 11, 49, 34, 13, 48,
|
|
99
|
+
14, 28, 31, 29, 32, 9, 15, 9, 17, 27,
|
|
100
|
+
30, 33, 34, 35, 36, 50, 51, 52, 53, 54,
|
|
101
|
+
55, 56, 57, 58, 59, 60 ]
|
|
102
|
+
|
|
103
|
+
racc_action_check = [
|
|
104
|
+
27, 10, 10, 10, 35, 10, 35, 10, 10, 27,
|
|
105
|
+
35, 35, 36, 0, 36, 37, 36, 36, 1, 37,
|
|
106
|
+
37, 4, 2, 4, 38, 4, 47, 38, 5, 47,
|
|
107
|
+
5, 12, 14, 12, 14, 3, 6, 7, 8, 11,
|
|
108
|
+
13, 16, 19, 21, 26, 48, 49, 50, 51, 52,
|
|
109
|
+
53, 54, 55, 57, 58, 59 ]
|
|
110
|
+
|
|
111
|
+
racc_action_pointer = [
|
|
112
|
+
9, 18, 18, 32, 18, 25, 36, 34, 36, nil,
|
|
113
|
+
-3, 33, 27, 34, 28, nil, 39, nil, nil, 30,
|
|
114
|
+
nil, 40, nil, nil, nil, nil, 41, -3, nil, nil,
|
|
115
|
+
nil, nil, nil, nil, nil, 0, 6, 9, 15, nil,
|
|
116
|
+
nil, nil, nil, nil, nil, nil, nil, 23, 36, 40,
|
|
117
|
+
41, 39, 40, 47, 45, 46, nil, 44, 51, 49,
|
|
118
|
+
nil ]
|
|
119
|
+
|
|
120
|
+
racc_action_default = [
|
|
121
|
+
-2, -39, -1, -6, -31, -9, -39, -6, -39, -5,
|
|
122
|
+
-39, -39, -39, -39, -39, 61, -39, -3, -7, -10,
|
|
123
|
+
-18, -39, -29, -30, -36, -37, -16, -15, -32, -33,
|
|
124
|
+
-8, -34, -35, -4, -38, -39, -39, -39, -26, -25,
|
|
125
|
+
-27, -28, -11, -12, -17, -13, -14, -39, -23, -39,
|
|
126
|
+
-39, -24, -21, -39, -39, -39, -19, -22, -39, -39,
|
|
127
|
+
-20 ]
|
|
128
|
+
|
|
129
|
+
racc_goto_table = [
|
|
130
|
+
22, 8, 1, 23, 26, 16, 3, 2, 7, nil,
|
|
131
|
+
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
|
132
|
+
nil, nil, nil, nil, nil, 41, 42, 46, 39 ]
|
|
133
|
+
|
|
134
|
+
racc_goto_check = [
|
|
135
|
+
7, 4, 1, 6, 6, 4, 3, 2, 3, nil,
|
|
136
|
+
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
|
137
|
+
nil, nil, nil, nil, nil, 7, 7, 7, 6 ]
|
|
138
|
+
|
|
139
|
+
racc_goto_pointer = [
|
|
140
|
+
nil, 2, 7, 6, -2, nil, -7, -10 ]
|
|
141
|
+
|
|
142
|
+
racc_goto_default = [
|
|
143
|
+
nil, nil, nil, nil, nil, 5, nil, nil ]
|
|
144
|
+
|
|
145
|
+
racc_reduce_table = [
|
|
146
|
+
0, 0, :racc_error,
|
|
147
|
+
1, 14, :_reduce_1,
|
|
148
|
+
0, 14, :_reduce_2,
|
|
149
|
+
3, 15, :_reduce_3,
|
|
150
|
+
4, 15, :_reduce_4,
|
|
151
|
+
1, 17, :_reduce_5,
|
|
152
|
+
0, 17, :_reduce_6,
|
|
153
|
+
3, 16, :_reduce_7,
|
|
154
|
+
3, 16, :_reduce_8,
|
|
155
|
+
1, 16, :_reduce_9,
|
|
156
|
+
3, 16, :_reduce_10,
|
|
157
|
+
5, 16, :_reduce_11,
|
|
158
|
+
5, 16, :_reduce_12,
|
|
159
|
+
5, 16, :_reduce_13,
|
|
160
|
+
5, 16, :_reduce_14,
|
|
161
|
+
3, 16, :_reduce_15,
|
|
162
|
+
3, 16, :_reduce_16,
|
|
163
|
+
5, 16, :_reduce_17,
|
|
164
|
+
3, 16, :_reduce_18,
|
|
165
|
+
11, 16, :_reduce_19,
|
|
166
|
+
14, 16, :_reduce_20,
|
|
167
|
+
9, 16, :_reduce_21,
|
|
168
|
+
11, 16, :_reduce_22,
|
|
169
|
+
7, 16, :_reduce_23,
|
|
170
|
+
8, 16, :_reduce_24,
|
|
171
|
+
5, 16, :_reduce_25,
|
|
172
|
+
5, 16, :_reduce_26,
|
|
173
|
+
5, 16, :_reduce_27,
|
|
174
|
+
5, 16, :_reduce_28,
|
|
175
|
+
3, 16, :_reduce_29,
|
|
176
|
+
3, 16, :_reduce_30,
|
|
177
|
+
1, 16, :_reduce_31,
|
|
178
|
+
3, 18, :_reduce_32,
|
|
179
|
+
3, 18, :_reduce_33,
|
|
180
|
+
3, 18, :_reduce_34,
|
|
181
|
+
3, 18, :_reduce_35,
|
|
182
|
+
1, 20, :_reduce_36,
|
|
183
|
+
1, 20, :_reduce_37,
|
|
184
|
+
2, 19, :_reduce_38 ]
|
|
185
|
+
|
|
186
|
+
racc_reduce_n = 39
|
|
187
|
+
|
|
188
|
+
racc_shift_n = 61
|
|
189
|
+
|
|
190
|
+
racc_token_table = {
|
|
191
|
+
false => 0,
|
|
192
|
+
:error => 1,
|
|
193
|
+
:NEWLINE => 2,
|
|
194
|
+
:SPACE => 3,
|
|
195
|
+
:IDENTIFIER => 4,
|
|
196
|
+
:PLUS => 5,
|
|
197
|
+
:NUMBER => 6,
|
|
198
|
+
:AT => 7,
|
|
199
|
+
:REGEX => 8,
|
|
200
|
+
:COMMA => 9,
|
|
201
|
+
:STRING => 10,
|
|
202
|
+
:WORD => 11,
|
|
203
|
+
:TIME_UNIT => 12 }
|
|
204
|
+
|
|
205
|
+
racc_nt_base = 13
|
|
206
|
+
|
|
207
|
+
racc_use_result_var = true
|
|
208
|
+
|
|
209
|
+
Racc_arg = [
|
|
210
|
+
racc_action_table,
|
|
211
|
+
racc_action_check,
|
|
212
|
+
racc_action_default,
|
|
213
|
+
racc_action_pointer,
|
|
214
|
+
racc_goto_table,
|
|
215
|
+
racc_goto_check,
|
|
216
|
+
racc_goto_default,
|
|
217
|
+
racc_goto_pointer,
|
|
218
|
+
racc_nt_base,
|
|
219
|
+
racc_reduce_table,
|
|
220
|
+
racc_token_table,
|
|
221
|
+
racc_shift_n,
|
|
222
|
+
racc_reduce_n,
|
|
223
|
+
racc_use_result_var ]
|
|
224
|
+
Ractor.make_shareable(Racc_arg) if defined?(Ractor)
|
|
225
|
+
|
|
226
|
+
Racc_token_to_s_table = [
|
|
227
|
+
"$end",
|
|
228
|
+
"error",
|
|
229
|
+
"NEWLINE",
|
|
230
|
+
"SPACE",
|
|
231
|
+
"IDENTIFIER",
|
|
232
|
+
"PLUS",
|
|
233
|
+
"NUMBER",
|
|
234
|
+
"AT",
|
|
235
|
+
"REGEX",
|
|
236
|
+
"COMMA",
|
|
237
|
+
"STRING",
|
|
238
|
+
"WORD",
|
|
239
|
+
"TIME_UNIT",
|
|
240
|
+
"$start",
|
|
241
|
+
"tape",
|
|
242
|
+
"commands",
|
|
243
|
+
"command",
|
|
244
|
+
"trailing_space",
|
|
245
|
+
"key_combo",
|
|
246
|
+
"duration",
|
|
247
|
+
"string" ]
|
|
248
|
+
Ractor.make_shareable(Racc_token_to_s_table) if defined?(Ractor)
|
|
249
|
+
|
|
250
|
+
Racc_debug_parser = false
|
|
251
|
+
|
|
252
|
+
##### State transition tables end #####
|
|
253
|
+
|
|
254
|
+
# reduce 0 omitted
|
|
255
|
+
|
|
256
|
+
module_eval(<<'.,.,', 'demotape.y', 2)
|
|
257
|
+
def _reduce_1(val, _values, result)
|
|
258
|
+
result = val[0]
|
|
259
|
+
result
|
|
260
|
+
end
|
|
261
|
+
.,.,
|
|
262
|
+
|
|
263
|
+
module_eval(<<'.,.,', 'demotape.y', 3)
|
|
264
|
+
def _reduce_2(val, _values, result)
|
|
265
|
+
result = []
|
|
266
|
+
result
|
|
267
|
+
end
|
|
268
|
+
.,.,
|
|
269
|
+
|
|
270
|
+
module_eval(<<'.,.,', 'demotape.y', 5)
|
|
271
|
+
def _reduce_3(val, _values, result)
|
|
272
|
+
result = [val[0]]
|
|
273
|
+
result
|
|
274
|
+
end
|
|
275
|
+
.,.,
|
|
276
|
+
|
|
277
|
+
module_eval(<<'.,.,', 'demotape.y', 6)
|
|
278
|
+
def _reduce_4(val, _values, result)
|
|
279
|
+
result = val[0] << val[1]
|
|
280
|
+
result
|
|
281
|
+
end
|
|
282
|
+
.,.,
|
|
283
|
+
|
|
284
|
+
module_eval(<<'.,.,', 'demotape.y', 8)
|
|
285
|
+
def _reduce_5(val, _values, result)
|
|
286
|
+
result = nil
|
|
287
|
+
result
|
|
288
|
+
end
|
|
289
|
+
.,.,
|
|
290
|
+
|
|
291
|
+
module_eval(<<'.,.,', 'demotape.y', 9)
|
|
292
|
+
def _reduce_6(val, _values, result)
|
|
293
|
+
result = nil
|
|
294
|
+
result
|
|
295
|
+
end
|
|
296
|
+
.,.,
|
|
297
|
+
|
|
298
|
+
module_eval(<<'.,.,', 'demotape.y', 12)
|
|
299
|
+
def _reduce_7(val, _values, result)
|
|
300
|
+
space_index = @token_index - 2
|
|
301
|
+
line_info = @lexer.line_map[space_index] || {}
|
|
302
|
+
error_msg = "Unexpected token \"SPACE\" at #{@file}:#{line_info[:line]}:#{line_info[:column]}:\n"
|
|
303
|
+
error_msg += " #{line_info[:content]}\n"
|
|
304
|
+
error_msg += " #{' ' * (line_info[:column] - 1)}^"
|
|
305
|
+
raise DemoTape::ParseError, error_msg
|
|
306
|
+
|
|
307
|
+
result
|
|
308
|
+
end
|
|
309
|
+
.,.,
|
|
310
|
+
|
|
311
|
+
module_eval(<<'.,.,', 'demotape.y', 20)
|
|
312
|
+
def _reduce_8(val, _values, result)
|
|
313
|
+
@command_start_index = @last_key_index
|
|
314
|
+
keys = val[0][:keys]
|
|
315
|
+
key_tokens = val[0][:tokens]
|
|
316
|
+
command_name = keys.shift
|
|
317
|
+
|
|
318
|
+
tokens = key_tokens + [make_token(:number, val[2], @token_index - 1)]
|
|
319
|
+
|
|
320
|
+
cmd = DemoTape::Command.new(command_name, "", keys:, count: val[2])
|
|
321
|
+
cmd.tokens = tokens
|
|
322
|
+
result = attach_location(cmd).prepare!
|
|
323
|
+
|
|
324
|
+
result
|
|
325
|
+
end
|
|
326
|
+
.,.,
|
|
327
|
+
|
|
328
|
+
module_eval(<<'.,.,', 'demotape.y', 32)
|
|
329
|
+
def _reduce_9(val, _values, result)
|
|
330
|
+
@command_start_index = @last_key_index
|
|
331
|
+
keys = val[0][:keys]
|
|
332
|
+
key_tokens = val[0][:tokens]
|
|
333
|
+
command_name = keys.shift
|
|
334
|
+
|
|
335
|
+
cmd = DemoTape::Command.new(command_name, "", keys:)
|
|
336
|
+
cmd.tokens = key_tokens
|
|
337
|
+
result = attach_location(cmd).prepare!
|
|
338
|
+
|
|
339
|
+
result
|
|
340
|
+
end
|
|
341
|
+
.,.,
|
|
342
|
+
|
|
343
|
+
module_eval(<<'.,.,', 'demotape.y', 42)
|
|
344
|
+
def _reduce_10(val, _values, result)
|
|
345
|
+
@command_start_index = @token_index - 4
|
|
346
|
+
duration_index = @token_index - 2
|
|
347
|
+
|
|
348
|
+
tokens = [
|
|
349
|
+
make_token(:identifier, val[0], @token_index - 4),
|
|
350
|
+
make_token(:number, val[2], @token_index - 2)
|
|
351
|
+
]
|
|
352
|
+
|
|
353
|
+
# Duration commands (Sleep, Wait) treat bare numbers as seconds
|
|
354
|
+
# Key commands treat numbers as repeat counts
|
|
355
|
+
if ["Sleep", "Wait"].include?(val[0])
|
|
356
|
+
cmd = DemoTape::Command.new(val[0], "#{val[2]}s")
|
|
357
|
+
cmd.tokens = tokens
|
|
358
|
+
result = attach_location(cmd, duration_index: duration_index).prepare!
|
|
359
|
+
else
|
|
360
|
+
cmd = DemoTape::Command.new(val[0], "", count: val[2])
|
|
361
|
+
cmd.tokens = tokens
|
|
362
|
+
result = attach_location(cmd).prepare!
|
|
363
|
+
end
|
|
364
|
+
|
|
365
|
+
result
|
|
366
|
+
end
|
|
367
|
+
.,.,
|
|
368
|
+
|
|
369
|
+
module_eval(<<'.,.,', 'demotape.y', 63)
|
|
370
|
+
def _reduce_11(val, _values, result)
|
|
371
|
+
@command_start_index = @token_index - 6
|
|
372
|
+
speed_index = @token_index - 3 # TIME_UNIT position
|
|
373
|
+
|
|
374
|
+
tokens = [
|
|
375
|
+
make_token(:identifier, val[0], @token_index - 6),
|
|
376
|
+
make_token(:operator, "@", @token_index - 5),
|
|
377
|
+
make_token(:duration, val[2], @token_index - 4),
|
|
378
|
+
make_token(:string, val[4], @token_index - 1)
|
|
379
|
+
]
|
|
380
|
+
|
|
381
|
+
cmd = DemoTape::Command.new(val[0], val[4], speed: val[2])
|
|
382
|
+
cmd.tokens = tokens
|
|
383
|
+
result = attach_location(cmd, speed_index: speed_index).prepare!
|
|
384
|
+
|
|
385
|
+
result
|
|
386
|
+
end
|
|
387
|
+
.,.,
|
|
388
|
+
|
|
389
|
+
module_eval(<<'.,.,', 'demotape.y', 78)
|
|
390
|
+
def _reduce_12(val, _values, result)
|
|
391
|
+
@command_start_index = @token_index - 6
|
|
392
|
+
speed_index = @token_index - 3 # TIME_UNIT position
|
|
393
|
+
|
|
394
|
+
tokens = [
|
|
395
|
+
make_token(:identifier, val[0], @token_index - 6),
|
|
396
|
+
make_token(:operator, "@", @token_index - 5),
|
|
397
|
+
make_token(:duration, val[2], @token_index - 4),
|
|
398
|
+
make_token(:number, val[4], @token_index - 1)
|
|
399
|
+
]
|
|
400
|
+
|
|
401
|
+
cmd = DemoTape::Command.new(val[0], "", speed: val[2], count: val[4])
|
|
402
|
+
cmd.tokens = tokens
|
|
403
|
+
result = attach_location(cmd, speed_index: speed_index).prepare!
|
|
404
|
+
|
|
405
|
+
result
|
|
406
|
+
end
|
|
407
|
+
.,.,
|
|
408
|
+
|
|
409
|
+
module_eval(<<'.,.,', 'demotape.y', 93)
|
|
410
|
+
def _reduce_13(val, _values, result)
|
|
411
|
+
@command_start_index = @token_index - 5
|
|
412
|
+
speed_index = @token_index - 3
|
|
413
|
+
|
|
414
|
+
tokens = [
|
|
415
|
+
make_token(:identifier, val[0], @token_index - 5),
|
|
416
|
+
make_token(:operator, "@", @token_index - 4),
|
|
417
|
+
make_token(:number, val[2], @token_index - 3),
|
|
418
|
+
make_token(:number, val[4], @token_index - 1)
|
|
419
|
+
]
|
|
420
|
+
|
|
421
|
+
cmd = DemoTape::Command.new(val[0], "", speed: "#{val[2]}s", count: val[4])
|
|
422
|
+
cmd.tokens = tokens
|
|
423
|
+
result = attach_location(cmd, speed_index: speed_index).prepare!
|
|
424
|
+
|
|
425
|
+
result
|
|
426
|
+
end
|
|
427
|
+
.,.,
|
|
428
|
+
|
|
429
|
+
module_eval(<<'.,.,', 'demotape.y', 108)
|
|
430
|
+
def _reduce_14(val, _values, result)
|
|
431
|
+
@command_start_index = @token_index - 5
|
|
432
|
+
speed_index = @token_index - 3
|
|
433
|
+
|
|
434
|
+
tokens = [
|
|
435
|
+
make_token(:identifier, val[0], @token_index - 5),
|
|
436
|
+
make_token(:operator, "@", @token_index - 4),
|
|
437
|
+
make_token(:number, val[2], @token_index - 3),
|
|
438
|
+
make_token(:string, val[4], @token_index - 1)
|
|
439
|
+
]
|
|
440
|
+
|
|
441
|
+
cmd = DemoTape::Command.new(val[0], val[4], speed: "#{val[2]}s")
|
|
442
|
+
cmd.tokens = tokens
|
|
443
|
+
result = attach_location(cmd, speed_index: speed_index).prepare!
|
|
444
|
+
|
|
445
|
+
result
|
|
446
|
+
end
|
|
447
|
+
.,.,
|
|
448
|
+
|
|
449
|
+
module_eval(<<'.,.,', 'demotape.y', 123)
|
|
450
|
+
def _reduce_15(val, _values, result)
|
|
451
|
+
@command_start_index = @token_index - 3
|
|
452
|
+
speed_index = @token_index - 1
|
|
453
|
+
|
|
454
|
+
tokens = [
|
|
455
|
+
make_token(:identifier, val[0], @token_index - 3),
|
|
456
|
+
make_token(:operator, "@", @token_index - 2),
|
|
457
|
+
make_token(:number, val[2], @token_index - 1)
|
|
458
|
+
]
|
|
459
|
+
|
|
460
|
+
cmd = DemoTape::Command.new(val[0], "", speed: "#{val[2]}s")
|
|
461
|
+
cmd.tokens = tokens
|
|
462
|
+
result = attach_location(cmd, speed_index: speed_index).prepare!
|
|
463
|
+
|
|
464
|
+
result
|
|
465
|
+
end
|
|
466
|
+
.,.,
|
|
467
|
+
|
|
468
|
+
module_eval(<<'.,.,', 'demotape.y', 137)
|
|
469
|
+
def _reduce_16(val, _values, result)
|
|
470
|
+
@command_start_index = @token_index - 4
|
|
471
|
+
speed_index = @token_index - 1 # TIME_UNIT position
|
|
472
|
+
|
|
473
|
+
tokens = [
|
|
474
|
+
make_token(:identifier, val[0], @token_index - 4),
|
|
475
|
+
make_token(:operator, "@", @token_index - 3),
|
|
476
|
+
make_token(:duration, val[2], @token_index - 2)
|
|
477
|
+
]
|
|
478
|
+
|
|
479
|
+
cmd = DemoTape::Command.new(val[0], "", speed: val[2])
|
|
480
|
+
cmd.tokens = tokens
|
|
481
|
+
result = attach_location(cmd, speed_index: speed_index).prepare!
|
|
482
|
+
|
|
483
|
+
result
|
|
484
|
+
end
|
|
485
|
+
.,.,
|
|
486
|
+
|
|
487
|
+
module_eval(<<'.,.,', 'demotape.y', 151)
|
|
488
|
+
def _reduce_17(val, _values, result)
|
|
489
|
+
@command_start_index = @token_index - 6
|
|
490
|
+
timeout_index = @token_index - 3 # TIME_UNIT position
|
|
491
|
+
regex_index = @token_index - 1
|
|
492
|
+
|
|
493
|
+
begin
|
|
494
|
+
Regexp.new(val[4])
|
|
495
|
+
rescue RegexpError => e
|
|
496
|
+
line_info = @lexer.line_map[regex_index] || {}
|
|
497
|
+
error_msg = "Invalid regex: #{e.message} at #{@file}:#{line_info[:line]}:#{line_info[:column]}:\n"
|
|
498
|
+
error_msg += " #{line_info[:content]}\n"
|
|
499
|
+
error_msg += " #{' ' * (line_info[:column] - 1)}^"
|
|
500
|
+
raise DemoTape::ParseError, error_msg
|
|
501
|
+
end
|
|
502
|
+
|
|
503
|
+
tokens = [
|
|
504
|
+
make_token(:identifier, val[0], @token_index - 6),
|
|
505
|
+
make_token(:operator, "@", @token_index - 5),
|
|
506
|
+
make_token(:duration, val[2], @token_index - 4),
|
|
507
|
+
make_token(:regex, val[4], regex_index)
|
|
508
|
+
]
|
|
509
|
+
|
|
510
|
+
cmd = DemoTape::Command.new(val[0], val[4], timeout: val[2])
|
|
511
|
+
cmd.tokens = tokens
|
|
512
|
+
result = attach_location(cmd, timeout_index: timeout_index).prepare!
|
|
513
|
+
|
|
514
|
+
result
|
|
515
|
+
end
|
|
516
|
+
.,.,
|
|
517
|
+
|
|
518
|
+
module_eval(<<'.,.,', 'demotape.y', 177)
|
|
519
|
+
def _reduce_18(val, _values, result)
|
|
520
|
+
@command_start_index = @token_index - 3
|
|
521
|
+
regex_index = @token_index - 1
|
|
522
|
+
|
|
523
|
+
begin
|
|
524
|
+
Regexp.new(val[2])
|
|
525
|
+
rescue RegexpError => e
|
|
526
|
+
line_info = @lexer.line_map[regex_index] || {}
|
|
527
|
+
error_msg = "Invalid regex: #{e.message} at #{@file}:#{line_info[:line]}:#{line_info[:column]}:\n"
|
|
528
|
+
error_msg += " #{line_info[:content]}\n"
|
|
529
|
+
error_msg += " #{' ' * (line_info[:column] - 1)}^"
|
|
530
|
+
raise DemoTape::ParseError, error_msg
|
|
531
|
+
end
|
|
532
|
+
|
|
533
|
+
tokens = [
|
|
534
|
+
make_token(:identifier, val[0], @token_index - 3),
|
|
535
|
+
make_token(:regex, val[2], regex_index)
|
|
536
|
+
]
|
|
537
|
+
|
|
538
|
+
cmd = DemoTape::Command.new(val[0], val[2])
|
|
539
|
+
cmd.tokens = tokens
|
|
540
|
+
result = attach_location(cmd).prepare!
|
|
541
|
+
|
|
542
|
+
result
|
|
543
|
+
end
|
|
544
|
+
.,.,
|
|
545
|
+
|
|
546
|
+
module_eval(<<'.,.,', 'demotape.y', 200)
|
|
547
|
+
def _reduce_19(val, _values, result)
|
|
548
|
+
@command_start_index = @token_index - 9
|
|
549
|
+
|
|
550
|
+
tokens = [
|
|
551
|
+
make_token(:identifier, val[0], @token_index - 9),
|
|
552
|
+
make_token(:identifier, val[2], @token_index - 7),
|
|
553
|
+
make_token(:number, val[4], @token_index - 5),
|
|
554
|
+
make_token(:operator, ",", @token_index - 4),
|
|
555
|
+
make_token(:number, val[6], @token_index - 3),
|
|
556
|
+
make_token(:operator, ",", @token_index - 2),
|
|
557
|
+
make_token(:number, val[8], @token_index - 1),
|
|
558
|
+
make_token(:operator, ",", @token_index - 1),
|
|
559
|
+
make_token(:number, val[10], @token_index - 1)
|
|
560
|
+
]
|
|
561
|
+
|
|
562
|
+
cmd = DemoTape::Command.new(val[0], [val[4], val[6], val[8], val[10]], option: val[2])
|
|
563
|
+
cmd.tokens = tokens
|
|
564
|
+
result = attach_location(cmd).prepare!
|
|
565
|
+
|
|
566
|
+
result
|
|
567
|
+
end
|
|
568
|
+
.,.,
|
|
569
|
+
|
|
570
|
+
module_eval(<<'.,.,', 'demotape.y', 219)
|
|
571
|
+
def _reduce_20(val, _values, result)
|
|
572
|
+
@command_start_index = @token_index - 13
|
|
573
|
+
|
|
574
|
+
tokens = [
|
|
575
|
+
make_token(:identifier, val[0], @token_index - 13),
|
|
576
|
+
make_token(:identifier, val[2], @token_index - 11),
|
|
577
|
+
make_token(:number, val[4], @token_index - 9),
|
|
578
|
+
make_token(:operator, ",", @token_index - 8),
|
|
579
|
+
make_token(:number, val[7], @token_index - 6),
|
|
580
|
+
make_token(:operator, ",", @token_index - 5),
|
|
581
|
+
make_token(:number, val[10], @token_index - 3),
|
|
582
|
+
make_token(:operator, ",", @token_index - 2),
|
|
583
|
+
make_token(:number, val[13], @token_index - 1)
|
|
584
|
+
]
|
|
585
|
+
|
|
586
|
+
cmd = DemoTape::Command.new(val[0], [val[4], val[7], val[10], val[13]], option: val[2])
|
|
587
|
+
cmd.tokens = tokens
|
|
588
|
+
result = attach_location(cmd).prepare!
|
|
589
|
+
|
|
590
|
+
result
|
|
591
|
+
end
|
|
592
|
+
.,.,
|
|
593
|
+
|
|
594
|
+
module_eval(<<'.,.,', 'demotape.y', 238)
|
|
595
|
+
def _reduce_21(val, _values, result)
|
|
596
|
+
@command_start_index = @token_index - 7
|
|
597
|
+
|
|
598
|
+
tokens = [
|
|
599
|
+
make_token(:identifier, val[0], @token_index - 7),
|
|
600
|
+
make_token(:identifier, val[2], @token_index - 5),
|
|
601
|
+
make_token(:number, val[4], @token_index - 3),
|
|
602
|
+
make_token(:operator, ",", @token_index - 2),
|
|
603
|
+
make_token(:number, val[6], @token_index - 1),
|
|
604
|
+
make_token(:operator, ",", @token_index - 1),
|
|
605
|
+
make_token(:number, val[8], @token_index - 1)
|
|
606
|
+
]
|
|
607
|
+
|
|
608
|
+
cmd = DemoTape::Command.new(val[0], [val[4], val[6], val[8]], option: val[2])
|
|
609
|
+
cmd.tokens = tokens
|
|
610
|
+
result = attach_location(cmd).prepare!
|
|
611
|
+
|
|
612
|
+
result
|
|
613
|
+
end
|
|
614
|
+
.,.,
|
|
615
|
+
|
|
616
|
+
module_eval(<<'.,.,', 'demotape.y', 255)
|
|
617
|
+
def _reduce_22(val, _values, result)
|
|
618
|
+
@command_start_index = @token_index - 11
|
|
619
|
+
|
|
620
|
+
tokens = [
|
|
621
|
+
make_token(:identifier, val[0], @token_index - 11),
|
|
622
|
+
make_token(:identifier, val[2], @token_index - 9),
|
|
623
|
+
make_token(:number, val[4], @token_index - 7),
|
|
624
|
+
make_token(:operator, ",", @token_index - 6),
|
|
625
|
+
make_token(:number, val[7], @token_index - 4),
|
|
626
|
+
make_token(:operator, ",", @token_index - 3),
|
|
627
|
+
make_token(:number, val[10], @token_index - 1)
|
|
628
|
+
]
|
|
629
|
+
|
|
630
|
+
cmd = DemoTape::Command.new(val[0], [val[4], val[7], val[10]], option: val[2])
|
|
631
|
+
cmd.tokens = tokens
|
|
632
|
+
result = attach_location(cmd).prepare!
|
|
633
|
+
|
|
634
|
+
result
|
|
635
|
+
end
|
|
636
|
+
.,.,
|
|
637
|
+
|
|
638
|
+
module_eval(<<'.,.,', 'demotape.y', 272)
|
|
639
|
+
def _reduce_23(val, _values, result)
|
|
640
|
+
@command_start_index = @token_index - 5
|
|
641
|
+
|
|
642
|
+
tokens = [
|
|
643
|
+
make_token(:identifier, val[0], @token_index - 5),
|
|
644
|
+
make_token(:identifier, val[2], @token_index - 3),
|
|
645
|
+
make_token(:number, val[4], @token_index - 1),
|
|
646
|
+
make_token(:operator, ",", @token_index - 1),
|
|
647
|
+
make_token(:number, val[6], @token_index - 1)
|
|
648
|
+
]
|
|
649
|
+
|
|
650
|
+
cmd = DemoTape::Command.new(val[0], [val[4], val[6]], option: val[2])
|
|
651
|
+
cmd.tokens = tokens
|
|
652
|
+
result = attach_location(cmd).prepare!
|
|
653
|
+
|
|
654
|
+
result
|
|
655
|
+
end
|
|
656
|
+
.,.,
|
|
657
|
+
|
|
658
|
+
module_eval(<<'.,.,', 'demotape.y', 287)
|
|
659
|
+
def _reduce_24(val, _values, result)
|
|
660
|
+
@command_start_index = @token_index - 8
|
|
661
|
+
|
|
662
|
+
tokens = [
|
|
663
|
+
make_token(:identifier, val[0], @token_index - 8),
|
|
664
|
+
make_token(:identifier, val[2], @token_index - 6),
|
|
665
|
+
make_token(:number, val[4], @token_index - 4),
|
|
666
|
+
make_token(:operator, ",", @token_index - 3),
|
|
667
|
+
make_token(:number, val[7], @token_index - 1)
|
|
668
|
+
]
|
|
669
|
+
|
|
670
|
+
cmd = DemoTape::Command.new(val[0], [val[4], val[7]], option: val[2])
|
|
671
|
+
cmd.tokens = tokens
|
|
672
|
+
result = attach_location(cmd).prepare!
|
|
673
|
+
|
|
674
|
+
result
|
|
675
|
+
end
|
|
676
|
+
.,.,
|
|
677
|
+
|
|
678
|
+
module_eval(<<'.,.,', 'demotape.y', 302)
|
|
679
|
+
def _reduce_25(val, _values, result)
|
|
680
|
+
@command_start_index = @token_index - 6
|
|
681
|
+
|
|
682
|
+
tokens = [
|
|
683
|
+
make_token(:identifier, val[0], @token_index - 6),
|
|
684
|
+
make_token(:identifier, val[2], @token_index - 4),
|
|
685
|
+
make_token(:duration, val[4], @token_index - 2)
|
|
686
|
+
]
|
|
687
|
+
|
|
688
|
+
cmd = DemoTape::Command.new(val[0], val[4], option: val[2])
|
|
689
|
+
cmd.tokens = tokens
|
|
690
|
+
result = attach_location(cmd).prepare!
|
|
691
|
+
|
|
692
|
+
result
|
|
693
|
+
end
|
|
694
|
+
.,.,
|
|
695
|
+
|
|
696
|
+
module_eval(<<'.,.,', 'demotape.y', 315)
|
|
697
|
+
def _reduce_26(val, _values, result)
|
|
698
|
+
@command_start_index = @token_index - 5
|
|
699
|
+
|
|
700
|
+
tokens = [
|
|
701
|
+
make_token(:identifier, val[0], @token_index - 5),
|
|
702
|
+
make_token(:identifier, val[2], @token_index - 3),
|
|
703
|
+
make_token(:number, val[4], @token_index - 1)
|
|
704
|
+
]
|
|
705
|
+
|
|
706
|
+
cmd = DemoTape::Command.new(val[0], val[4].to_s, option: val[2])
|
|
707
|
+
cmd.tokens = tokens
|
|
708
|
+
result = attach_location(cmd).prepare!
|
|
709
|
+
|
|
710
|
+
result
|
|
711
|
+
end
|
|
712
|
+
.,.,
|
|
713
|
+
|
|
714
|
+
module_eval(<<'.,.,', 'demotape.y', 328)
|
|
715
|
+
def _reduce_27(val, _values, result)
|
|
716
|
+
@command_start_index = @token_index - 5
|
|
717
|
+
|
|
718
|
+
tokens = [
|
|
719
|
+
make_token(:identifier, val[0], @token_index - 5),
|
|
720
|
+
make_token(:identifier, val[2], @token_index - 3),
|
|
721
|
+
make_token(:identifier, val[4], @token_index - 1)
|
|
722
|
+
]
|
|
723
|
+
|
|
724
|
+
cmd = DemoTape::Command.new(val[0], val[4], option: val[2])
|
|
725
|
+
cmd.tokens = tokens
|
|
726
|
+
result = attach_location(cmd).prepare!
|
|
727
|
+
|
|
728
|
+
result
|
|
729
|
+
end
|
|
730
|
+
.,.,
|
|
731
|
+
|
|
732
|
+
module_eval(<<'.,.,', 'demotape.y', 341)
|
|
733
|
+
def _reduce_28(val, _values, result)
|
|
734
|
+
@command_start_index = @token_index - 5
|
|
735
|
+
|
|
736
|
+
tokens = [
|
|
737
|
+
make_token(:identifier, val[0], @token_index - 5),
|
|
738
|
+
make_token(:identifier, val[2], @token_index - 3),
|
|
739
|
+
make_token(:string, val[4], @token_index - 1)
|
|
740
|
+
]
|
|
741
|
+
|
|
742
|
+
cmd = DemoTape::Command.new(val[0], val[4], option: val[2])
|
|
743
|
+
cmd.tokens = tokens
|
|
744
|
+
result = attach_location(cmd).prepare!
|
|
745
|
+
|
|
746
|
+
result
|
|
747
|
+
end
|
|
748
|
+
.,.,
|
|
749
|
+
|
|
750
|
+
module_eval(<<'.,.,', 'demotape.y', 354)
|
|
751
|
+
def _reduce_29(val, _values, result)
|
|
752
|
+
@command_start_index = @token_index - 3
|
|
753
|
+
|
|
754
|
+
tokens = [
|
|
755
|
+
make_token(:identifier, val[0], @token_index - 3),
|
|
756
|
+
make_token(:string, val[2], @token_index - 1)
|
|
757
|
+
]
|
|
758
|
+
|
|
759
|
+
cmd = DemoTape::Command.new(val[0], val[2])
|
|
760
|
+
cmd.tokens = tokens
|
|
761
|
+
result = attach_location(cmd).prepare!
|
|
762
|
+
|
|
763
|
+
result
|
|
764
|
+
end
|
|
765
|
+
.,.,
|
|
766
|
+
|
|
767
|
+
module_eval(<<'.,.,', 'demotape.y', 366)
|
|
768
|
+
def _reduce_30(val, _values, result)
|
|
769
|
+
@command_start_index = @token_index - 4
|
|
770
|
+
duration_index = @token_index - 1 # TIME_UNIT position
|
|
771
|
+
|
|
772
|
+
tokens = [
|
|
773
|
+
make_token(:identifier, val[0], @token_index - 4),
|
|
774
|
+
make_token(:duration, val[2], @token_index - 2)
|
|
775
|
+
]
|
|
776
|
+
|
|
777
|
+
cmd = DemoTape::Command.new(val[0], val[2])
|
|
778
|
+
cmd.tokens = tokens
|
|
779
|
+
result = attach_location(cmd, duration_index: duration_index).prepare!
|
|
780
|
+
|
|
781
|
+
result
|
|
782
|
+
end
|
|
783
|
+
.,.,
|
|
784
|
+
|
|
785
|
+
module_eval(<<'.,.,', 'demotape.y', 379)
|
|
786
|
+
def _reduce_31(val, _values, result)
|
|
787
|
+
@command_start_index = @token_index - 2
|
|
788
|
+
|
|
789
|
+
tokens = [make_token(:identifier, val[0], @token_index - 2)]
|
|
790
|
+
|
|
791
|
+
cmd = DemoTape::Command.new(val[0], "")
|
|
792
|
+
cmd.tokens = tokens
|
|
793
|
+
result = attach_location(cmd).prepare!
|
|
794
|
+
|
|
795
|
+
result
|
|
796
|
+
end
|
|
797
|
+
.,.,
|
|
798
|
+
|
|
799
|
+
module_eval(<<'.,.,', 'demotape.y', 389)
|
|
800
|
+
def _reduce_32(val, _values, result)
|
|
801
|
+
@last_key_index = @token_index - 1
|
|
802
|
+
|
|
803
|
+
tokens = [
|
|
804
|
+
make_token(:identifier, val[0], @token_index - 3),
|
|
805
|
+
make_token(:operator, "+", @token_index - 2),
|
|
806
|
+
make_token(:identifier, val[2], @token_index - 1)
|
|
807
|
+
]
|
|
808
|
+
|
|
809
|
+
result = { keys: [val[0], val[2]], tokens: tokens }
|
|
810
|
+
|
|
811
|
+
result
|
|
812
|
+
end
|
|
813
|
+
.,.,
|
|
814
|
+
|
|
815
|
+
module_eval(<<'.,.,', 'demotape.y', 400)
|
|
816
|
+
def _reduce_33(val, _values, result)
|
|
817
|
+
@last_key_index = @token_index - 1
|
|
818
|
+
|
|
819
|
+
tokens = [
|
|
820
|
+
make_token(:identifier, val[0], @token_index - 3),
|
|
821
|
+
make_token(:operator, "+", @token_index - 2),
|
|
822
|
+
make_token(:number, val[2], @token_index - 1)
|
|
823
|
+
]
|
|
824
|
+
|
|
825
|
+
result = { keys: [val[0], val[2].to_s], tokens: tokens }
|
|
826
|
+
|
|
827
|
+
result
|
|
828
|
+
end
|
|
829
|
+
.,.,
|
|
830
|
+
|
|
831
|
+
module_eval(<<'.,.,', 'demotape.y', 411)
|
|
832
|
+
def _reduce_34(val, _values, result)
|
|
833
|
+
@last_key_index = @token_index - 1
|
|
834
|
+
|
|
835
|
+
tokens = val[0][:tokens] + [
|
|
836
|
+
make_token(:operator, "+", @token_index - 2),
|
|
837
|
+
make_token(:identifier, val[2], @token_index - 1)
|
|
838
|
+
]
|
|
839
|
+
|
|
840
|
+
result = { keys: val[0][:keys] << val[2], tokens: tokens }
|
|
841
|
+
|
|
842
|
+
result
|
|
843
|
+
end
|
|
844
|
+
.,.,
|
|
845
|
+
|
|
846
|
+
module_eval(<<'.,.,', 'demotape.y', 421)
|
|
847
|
+
def _reduce_35(val, _values, result)
|
|
848
|
+
@last_key_index = @token_index - 1
|
|
849
|
+
|
|
850
|
+
tokens = val[0][:tokens] + [
|
|
851
|
+
make_token(:operator, "+", @token_index - 2),
|
|
852
|
+
make_token(:number, val[2], @token_index - 1)
|
|
853
|
+
]
|
|
854
|
+
|
|
855
|
+
result = { keys: val[0][:keys] << val[2].to_s, tokens: tokens }
|
|
856
|
+
|
|
857
|
+
result
|
|
858
|
+
end
|
|
859
|
+
.,.,
|
|
860
|
+
|
|
861
|
+
module_eval(<<'.,.,', 'demotape.y', 431)
|
|
862
|
+
def _reduce_36(val, _values, result)
|
|
863
|
+
result = val[0]
|
|
864
|
+
result
|
|
865
|
+
end
|
|
866
|
+
.,.,
|
|
867
|
+
|
|
868
|
+
module_eval(<<'.,.,', 'demotape.y', 432)
|
|
869
|
+
def _reduce_37(val, _values, result)
|
|
870
|
+
result = val[0]
|
|
871
|
+
result
|
|
872
|
+
end
|
|
873
|
+
.,.,
|
|
874
|
+
|
|
875
|
+
module_eval(<<'.,.,', 'demotape.y', 434)
|
|
876
|
+
def _reduce_38(val, _values, result)
|
|
877
|
+
result = "#{val[0]}#{val[1]}"
|
|
878
|
+
result
|
|
879
|
+
end
|
|
880
|
+
.,.,
|
|
881
|
+
|
|
882
|
+
def _reduce_none(val, _values, result)
|
|
883
|
+
val[0]
|
|
884
|
+
end
|
|
885
|
+
|
|
886
|
+
end # class Parser
|
|
887
|
+
end # module DemoTape
|
|
888
|
+
|
|
889
|
+
|