並び順

ブックマーク数

期間指定

  • から
  • まで

41 - 80 件 / 124件

新着順 人気順

parserの検索結果41 - 80 件 / 124件

  • JSON Parser 100% From Scratch in Haskell (only 111 lines)

    Twitch: https://www.twitch.tv/tsoding GitHub Repo: https://github.com/tsoding/haskell-json My Haskell Setup: https://www.youtube.com/watch?v=5p2Aq3bRuL0 Unusual video this time. This is a slightly edited recording of my Twitch stream. Initially I planned to make a regular video on this topic, but quickly realized that it's just way too much material for a single regular 10 minutes video. So I dec

      JSON Parser 100% From Scratch in Haskell (only 111 lines)
    • 週刊Railsウォッチ(20200706前編)Railsでのマルチテナンシー実装戦略を比較、Railsでサブクエリを使う、URI.parserが非推奨化ほか|TechRacho by BPS株式会社

      2020.07.06 週刊Railsウォッチ(20200706前編)Railsでのマルチテナンシー実装戦略を比較、Railsでサブクエリを使う、URI.parserが非推奨化ほか こんにちは、hachi8833です。RubyKaigiのチケット代返金処理が始まったそうです。 We've just submitted the refunds of all registrations to our payment provider. We plan to cancel all registrations from our end once we become sure the refunds are completed successfully. We thank you for patience. #rubykaigi — RubyKaigi (@rubykaigi) July 1, 202

        週刊Railsウォッチ(20200706前編)Railsでのマルチテナンシー実装戦略を比較、Railsでサブクエリを使う、URI.parserが非推奨化ほか|TechRacho by BPS株式会社
      • GitHub - parcel-bundler/lightningcss: An extremely fast CSS parser, transformer, bundler, and minifier written in Rust.

        Extremely fast – Parsing and minifying large files is completed in milliseconds, often with significantly smaller output than other tools. See benchmarks below. Typed property values – many other CSS parsers treat property values as an untyped series of tokens. This means that each transformer that wants to do something with these values must interpret them itself, leading to duplicate work and in

          GitHub - parcel-bundler/lightningcss: An extremely fast CSS parser, transformer, bundler, and minifier written in Rust.
        • GASでスクレイピングする方法!Parserライブラリを利用した手順を解説 | AutoWorker〜Google Apps Script(GAS)とSikuliで始める業務改善入門

          Google Apps Script(GAS)はサーバーレス環境で、Webページのスクレイピング するのに便利です。 そこで、GASのParserライブラリを使ったスクレイピング 方法について解説します。 GASはスクレイピングに便利な環境Google Apps Script(GAS) はWebページの情報をスクレイピングするのにとても便利です。 GASはサーバーレス環境なので、スクレイピング するために必要となるインフラ構築が必要ありません。 GASのスクリプトエディタ上でトリガー実行によるスケジュール登録もできます。 1日1回に実行2時間ごとに実行毎週○曜日に実行といった形式で端末をオフの状態でもスクレイピングが実行可能です。 さらにGASは無料で利用できるので、スクレイピング環境がタダで構築できます。 スクレイピングでよく用いられるpythonなどは環境構築が手間だったり、実行環境を

            GASでスクレイピングする方法!Parserライブラリを利用した手順を解説 | AutoWorker〜Google Apps Script(GAS)とSikuliで始める業務改善入門
          • PEP 617 – New PEG parser for CPython | peps.python.org

            PEP 617 – New PEG parser for CPython Author: Guido van Rossum <guido at python.org>, Pablo Galindo <pablogsal at python.org>, Lysandros Nikolaou <lisandrosnik at gmail.com> Discussions-To: Python-Dev list Status: Final Type: Standards Track Created: 24-Mar-2020 Python-Version: 3.9 Post-History: 02-Apr-2020 Table of Contents Overview Background on LL(1) parsers Background on PEG parsers Rationale S

              PEP 617 – New PEG parser for CPython | peps.python.org
            • Ruby Parser開発日誌 (20) - 大阪Ruby会議04で基調講演をしてきた ~ 大阪の一番暑い日 ~ - かねこにっき

              8/22から8/25の4日間、大阪Ruby会議04に参加するために大阪へ行ってきました。 大阪Ruby会議への参加は昨年の大阪Ruby会議03以来なので1年ぶり2度目でした。 今回は基調講演の依頼を受けていたので登壇者としての参加となりました。 rubykansai.github.io 事前にタイムテーブルで他の登壇者や発表の概要を見ていたので、技術寄りのコアな発表が多い会議になるのではないかと想像していました。 結果的には想像以上に濃い話を聞くことができました。全体として笑いにつつまれた発表の多い、良い大阪Ruby会議だったと思います。 会期前後の様子はハッシュタグ #osrk04 で追うことができます。 基調講演「最高の構文木の設計 2024年版」 speakerdeck.com 私と構文木 普段はparserやparser generatorの探求と開発をしている私ですが、構文木との

                Ruby Parser開発日誌 (20) - 大阪Ruby会議04で基調講演をしてきた ~ 大阪の一番暑い日 ~ - かねこにっき
              • ABNF Parser の実装 | blog.jxck.io

                Intro IETF の RFC では ABNF 形式の表現がよく使われ、たまに実装することがある。 しかし、実装するたびに前のコードを引っ張り出して思い出す、を繰り返しているので、自分用にメモとしてやり方をまとめる。 完全に我流であり、目的は「その ABNF が正しいかを確認すること」なので、高速化や効率的を求める実用実装とは目的が違う点は先に言っておく。 ABNF パーサ 筆者が直近で書いた RFC 8941: Structured Field Values for HTTP を例にする。 例えば、ヘッダが複数の値をリスト形式で取る場合 Example-List: sugar, tea, rum これを ABNF で表現するとこうなる。 sf-list = list-member *( OWS "," OWS list-member ) list-member = sf-item /

                  ABNF Parser の実装 | blog.jxck.io
                • GitHub - humanwhocodes/momoa: A JSON parser, tokenizer, traverser, and printer.

                  You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                    GitHub - humanwhocodes/momoa: A JSON parser, tokenizer, traverser, and printer.
                  • GitHub - alecthomas/kong: Kong is a command-line parser for Go

                    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                      GitHub - alecthomas/kong: Kong is a command-line parser for Go
                    • Ruby: parser gemで未解決の定数を検出する(翻訳)|TechRacho by BPS株式会社

                      概要 元サイトの許諾を得て翻訳・公開いたします。 英語記事: Tracking down not resolving constants in Ruby with parser | Arkency Blog 原文公開日: 2023/03/02 原著者: Piotr Jurewicz サイト: Arkency Blog 日本語タイトルは内容に即したものにしました。 最近の私たちは、とあるRubyアプリで古くなったスタックをアップグレードする作業に従事しています。このアプリケーションはRuby 2.4で動いていました。使われていないgemを50個も削除し、セキュリティアップデートをかけ、非推奨警告を消し去って、いよいよRuby本体をアップグレードするときが来たと判断しました。 しかし、本当のお話はここから始まるのです。古いRubyの内部に興味のない方も、ぜひこのままお読みください。本記事の最後

                        Ruby: parser gemで未解決の定数を検出する(翻訳)|TechRacho by BPS株式会社
                      • GitHub - yui-knk/lr-parser-101

                        You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                          GitHub - yui-knk/lr-parser-101
                        • This is why you should never use parser combinators and PEG

                          Let me tell you why you should (nearly) never use PEG (parsing expression grammars). Nearly everything I will say applies to parser combinators (parsec in Haskell, nom in Rust), too. So, don't use PEG. Use CFGs (context-free grammars) instead. They are more natural. I feel that CFGs more naturally represent how we think. Thus when you have some language in your head and you try to write it down as

                            This is why you should never use parser combinators and PEG
                          • GitHub - gajus/liqe: Lightweight and performant Lucene-like parser, serializer and search engine.

                            You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                              GitHub - gajus/liqe: Lightweight and performant Lucene-like parser, serializer and search engine.
                            • The fastest HTTP parser of Rust - kawasin73のブログ

                              速さは正義。どうも、かわしんです。 Rust で一番速い HTTP パーサーは C で書かれた picohttpparser の Rust バインディング、picohttpparser-sys です。ガハハ。 $ RUSTFLAGS="-C target-feature=+sse4.2" cargo +nightly bench Finished bench [optimized] target(s) in 0.28s warning: the following packages contain code that will be rejected by a future version of Rust: traitobject v0.1.0 note: to see what the problems were, use the option `--future-incompat-re

                                The fastest HTTP parser of Rust - kawasin73のブログ
                              • Ruby Parser開発日誌 (2) - かねこにっき

                                前回のあらすじ Ruby Parser開発日誌 (1) - かねこにっき Ruby 3.3にむけてLALR parserを前提にError Recoveryを実装していくことになりました。 現在の進捗 Corchuelo et al. のサブセットを実装した error recovery tokenのsemantic valueやlocationを設定できるようにした "Repairing Syntax Errors in LR Parsers" Don’t Panic! Better, Fewer, Syntax Errors for LR Parsers も参考にしている論文に Repairing Syntax Errors in LR Parsers があります。 この論文では insertions: 現在のlookahead tokenの前に1つtokenを追加する (追加したうえ

                                  Ruby Parser開発日誌 (2) - かねこにっき
                                • 2021年 PHP 8 でスクレイピングするなら php-html-parser - 猫でもわかるWeb開発・プログラミング

                                  phpQuery vs php-html-parser この記事で扱う PHP のバージョン php-html-parser をインストール 実際に使ってみる まとめ phpQuery vs php-html-parser 以前、以下の記事を書きました。この記事では phpQuery というライブラリを使いましたが、phpQuery は3年以上更新が止まっており、最新の PHP に対応してないなど問題がありました。 www.utakata.work 別のライブラリを探していたら、 php-html-parser がかなり良かったので紹介します。 github.com この記事で扱う PHP のバージョン 今回、 PHP のバージョンは 8.0 を使っていますが、7.4 とか、7系でも問題なく動くと思います。 $ php -v PHP 8.0.0 (cli) (built: Nov 30 2

                                    2021年 PHP 8 でスクレイピングするなら php-html-parser - 猫でもわかるWeb開発・プログラミング
                                  • Parser generators vs. handwritten parsers: surveying major language implementations in 2021 | notes.eatonphil.com

                                    Parser generators vs. handwritten parsers: surveying major language implementations in 2021 Developers often think parser generators are the sole legit way to build programming language frontends, possibly because compiler courses in university teach lex/yacc variants. But do any modern programming languages actually use parser generators anymore? To find out, this post presents a non-definitive s

                                    • Ruby Parser開発日誌 (16) - 2023年を振り返って - かねこにっき

                                      とにかくparserとparser generatorをやっている一年でした。世はまさに"大パーサー時代"!!! Ruby3.3 リリースが目前に迫りました! リリースに向けまつもとさんから 「大構文解析時代! Parser age」 のキーワードを頂きTシャツにアレンジしました。 多くの皆さんで Ruby3.3 リリースを祝し、関係各位に感謝しましょう。 当コレクションも、収益の一部を… pic.twitter.com/uTv3kxJ0Hz— OSS-Vision Official (@OssVision) December 14, 2023 その中でもとくに自分にとって大きな変化だったのは以下の出来事でした。 Lrama LALR (1) parser generatorを実装して、Rubyに取り込んだ。これによってRubyからGNU Bisonへの依存が消えた。 最初は一人で始めたR

                                        Ruby Parser開発日誌 (16) - 2023年を振り返って - かねこにっき
                                      • Ruby Parser開発日誌 (17) - 演算子の優先度はいつ使われるのか - かねこにっき

                                        AWKの式でa + bが構文解析でa (+b)ではなくて、(a) + (b)と解釈されるのはなぜでしょうかという質問をいただきました。 私はAWKに詳しいわけではないですが、LR parser なかでもBison用に書かれた文法定義ファイルであれば解説できると思うので、少し踏み込んで解説をしてみたいと思います。 質問者の方は https://pubs.opengroup.org/onlinepubs/9699919799/utilities/awk.html の"Expressions in awk"を読んで、+ expr (Unary plus)の方がexpr + expr (Addition)よりも優先度が高いのであるからa + bはa (+b)と解釈されるのではないかと考えていました。とても良い質問だと思います。 結論を先にいうと、ここで問題になるのは加算(Addition)と文字列

                                          Ruby Parser開発日誌 (17) - 演算子の優先度はいつ使われるのか - かねこにっき
                                        • DMARC Report Analyzer - DMARC Email XML Parser - MxToolbox

                                          ABOUT DMARC REPORT ANALYZER This tool will make DMARC Aggregate XML reports human readable by parsing and aggregating them by IP address into readable reports. DMARC Aggregate XML reports are sent by mail receivers (like Gmail, Yahoo!, & more) and include valuable data such as message volumes seen, SPF/DKIM Authentication rates, actions taken on the message (quarantine/reject), and more. The un-pa

                                            DMARC Report Analyzer - DMARC Email XML Parser - MxToolbox
                                          • The grand strategy of Ruby Parser

                                            RubyKaigi 2024 https://rubykaigi.org/2024/presentations/spikeolaf.html ruby/lrama https://github.com/ruby/lrama

                                              The grand strategy of Ruby Parser
                                            • GoでParserを書く

                                              kamakura.go #6 https://pkg.go.dev/golang.org/x/tools/cmd/goyacc https://github.com/alecthomas/participle https://github.com/karupanerura/gqlparse…

                                                GoでParserを書く
                                              • GitHub - Marwes/combine: A parser combinator library for Rust

                                                You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                  GitHub - Marwes/combine: A parser combinator library for Rust
                                                • Ruff v0.4.0: a hand-written recursive descent parser for Python

                                                  Time in milliseconds to lint and format popular repositories. Lower is better. A hand-written parser also opens the door to future optimizations and improvements, especially in error recovery. Read on for discussion of the major changes, or take a look at the changelog. A hand-written parser # Parsers form the foundational layer of any static analysis tool, transforming raw source code into Abstra

                                                    Ruff v0.4.0: a hand-written recursive descent parser for Python
                                                  • PHP-Parser入門した - ぱーぽーの日々

                                                    最近「PHPのコードをパースしていい感じにしたい」ということがあった。その時にPHP-Parserについて調べたので、使い方などを軽くメモしておく。 PHP-Parserとは このライブラリのこと。 github.com PHPのコードを静的解析して抽象構文木(AST)を生成し、そのASTに対して任意の操作を行ったり、PHPのコードに戻したりできる。ASTについてはインターネット上にいろんな記事があるのでそちらを参照してほしい。 使用例 【注意】以下のサンプルコードは、執筆時点で最新のv4.10.4を使用したものである。 PHPのコードをASTにして、何もせずPHPのコードに戻す <?php require_once __DIR__ . '/vendor/autoload.php'; use PhpParser\ParserFactory; use PhpParser\PrettyPrin

                                                      PHP-Parser入門した - ぱーぽーの日々
                                                    • Zig, Parser Combinators - and Why They're Awesome

                                                      In this article we will be exploring what parser combinators are, what runtime parser generation is - why they’re useful, and then walking through a Zig implementation of them. What are parser combinators?Why are parser combinators useful?Going deeper: runtime parser generationA note about traditional regex enginesImplementing the Parser interfaceCompile-time vs. run-timeThe parser interfaceZig ge

                                                      • GitHub - colis-anr/morbig: A static parser for POSIX Shell

                                                        You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                          GitHub - colis-anr/morbig: A static parser for POSIX Shell
                                                        • JRuby Prism - A new parser for a new era

                                                          JRuby Prism - A new parser for a new era Thomas E. Enebo - Feb 23, 2024 Introduction JRuby has added support for the new backend parser Prism via the gem: jruby-prism-parser. Installing this gem will give you access to enable Prism (export JRUBY_OPTS="-Xparser.prism"). At this stage jruby-prism-parser is at the technology preview stage but capable of running pretty much everything: Rake, RSpec, Ru

                                                          • GitHub - progfay/scrapbox-parser: Scrapbox notation → JavaScript Object

                                                            You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                              GitHub - progfay/scrapbox-parser: Scrapbox notation → JavaScript Object
                                                            • Does Ruby Parser dream of highly expressive grammar?

                                                              RubyKaigi 2024 「Does Ruby Parser dream of highly expressive grammar?」の発表スライド https://rubykaigi.org/2024/ #rubykaigi Reference: Lrama LALR (1) parse…

                                                                Does Ruby Parser dream of highly expressive grammar?
                                                              • GitHub - bloomberg/ts-blank-space: A small, fast, pure JavaScript type-stripper that uses the official TypeScript parser.

                                                                You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                                  GitHub - bloomberg/ts-blank-space: A small, fast, pure JavaScript type-stripper that uses the official TypeScript parser.
                                                                • GitHub - dtjohnson/xlsx-populate: Excel XLSX parser/generator written in JavaScript with Node.js and browser support, jQuery/d3-style method chaining, encryption, and a focus on keeping existing workbook features and styles in tact.

                                                                  You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                                    GitHub - dtjohnson/xlsx-populate: Excel XLSX parser/generator written in JavaScript with Node.js and browser support, jQuery/d3-style method chaining, encryption, and a focus on keeping existing workbook features and styles in tact.
                                                                  • Parser gemを用いたプロファイルコードの挿入 - @nnm_tech

                                                                    Rubyで簡易なプロファイル用のコードを挿入し、プロファイリングするにはどうしたらいいのか興味が出たのでやってみました。最終的にはwhitequark/parser を用いたRewrite処理で実現できました。 JavaScriptの関数の開始と終了にプロファイル用のコードを挿入し、シンプルなプロファイリングをするという記事が以下: itchyny.hatenablog.com ASTの一つの使い方としてとても面白いです。 tapでええやん Rubyには便利なtapメソッドが存在します。 ref.xaio.jp tapメソッドは、ブロック変数にレシーバ自身を入れてブロックを実行します。戻り値はレシーバ自身です。メソッドチェーンの中にtapメソッドをはさみ込み、ソースコードを簡潔にする目的で使われます。 この便利なメソッドを使い、 関数の開始で開始時刻を記録するコードを挿入し、 関数の戻り値

                                                                      Parser gemを用いたプロファイルコードの挿入 - @nnm_tech
                                                                    • rss-parser

                                                                      A small library for turning RSS XML feeds into JavaScript objects. Installation Usage You can parse RSS from a URL (parser.parseURL) or an XML string (parser.parseString). Both callbacks and Promises are supported. NodeJS Here's an example in NodeJS using Promises with async/await: let Parser = require('rss-parser'); let parser = new Parser(); (async () => { let feed = await parser.parseURL('https

                                                                        rss-parser
                                                                      • Security issue: compromised npm packages of ua-parser-js (0.7.29, 0.8.0, 1.0.0) - Questions about deprecated npm package ua-parser-js · Issue #536 · faisalman/ua-parser-js

                                                                        You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                                          Security issue: compromised npm packages of ua-parser-js (0.7.29, 0.8.0, 1.0.0) - Questions about deprecated npm package ua-parser-js · Issue #536 · faisalman/ua-parser-js
                                                                        • 🍪 Parser combinator nom 入門 | Happy developing

                                                                          nom nom nomこの記事ではparser combinator nom1について書きます。versionは v6.1を前提にしています。 nomは小さいparserを組み合わせて、目的とするデータ構造を入力から読み取るためのpackageです。 nushell のコードを読んでいてみかけたのが初めてでしたが他のpackageでも時々利用されているのをみるので、読めるようになるのが目標です。 そもそもparser combinatorといわれてもピンときていなかったので、自分と同じ様な方はLearning Parser Combinators With Rust がおすすめです。この記事を読んでparserを組み合わせるという意味がわかりました。 nomで組み合わせるparserは概ね以下のような関数signatureをしています。 fn parse_unicode<'a, E>(in

                                                                          • GitHub - remarkablemark/html-react-parser: 📝 HTML to React parser.

                                                                            You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                                              GitHub - remarkablemark/html-react-parser: 📝 HTML to React parser.
                                                                            • GitHub - leeoniya/uDSV: A faster CSV parser in 5KB (min)

                                                                              You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                                                GitHub - leeoniya/uDSV: A faster CSV parser in 5KB (min)
                                                                              • GitHub - apple/swift-argument-parser: Straightforward, type-safe argument parsing for Swift

                                                                                You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                                                  GitHub - apple/swift-argument-parser: Straightforward, type-safe argument parsing for Swift
                                                                                • lib-ruby-parser • Ilya Bylich

                                                                                  Moved to a new place

                                                                                    lib-ruby-parser • Ilya Bylich