並び順

ブックマーク数

期間指定

  • から
  • まで

321 - 360 件 / 528件

新着順 人気順

ASTの検索結果321 - 360 件 / 528件

  • GitHub - ezequiel/cssprima: The most standards compliant CSS parser, written in JavaScript.

    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 - ezequiel/cssprima: The most standards compliant CSS parser, written in JavaScript.
    • GitHub - kataw/kataw: An 100% spec compliant ES2022 JavaScript toolchain

      An insane fast Javascript toolchain. WIP Kataw is a JavaScript toolchain that aim to unify functionality that has previously been separate tools. It features everything from low-level CST manipulation to tools like linting, code analyzes, transform, and minification. CST nodes CST keywords ESNext Diagnostics Diagnostic arguments Printing Ignore comment Linting Transformation Types Comments CST par

        GitHub - kataw/kataw: An 100% spec compliant ES2022 JavaScript toolchain
      • Challenger.js

        Pop-up JavaScript challenges in your browser Try thesedemos: Try a single challenge Try a series of challenges Challenger is a drop-in JavaScript library that adds interactive programming challenges to any page. Challenges are flexible and expressive, and are super simple to write. A challenge has requirements based on code structure and program output, and gives users a code editor to experiment

          Challenger.js
        • Towards a JavaScript Binary AST

          In this blog post, I would like to introduce the JavaScript Binary AST, an ongoing project that we hope will help make webpages load faster, along with a number of other benefits. A little background Over the years, JavaScript has grown from one of the slowest scripting languages available to a high-performance powerhouse, fast enough that it can run desktop, server, mobile and even embedded appli

            Towards a JavaScript Binary AST
          • This page has moved...

            This page has moved... Click here if you are not redirected.

            • GitHub - shift-js/shift-js: Swift to JavaScript transpiler

              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 - shift-js/shift-js: Swift to JavaScript transpiler
              • https://github.com/tc39/proposal-binary-ast/blob/master/README.md

                  https://github.com/tc39/proposal-binary-ast/blob/master/README.md
                • ClangのlibToolingでASTをダンプするツールを作ってみた - Qiita

                  C++の構文解析ライブラリが欲しい!! C++の構文解析ライブラリが欲しくて、いろいろ調べたところ、clang / LLVMのlibToolingが正にぴったりです。しかも、BSDライクなライセンスのオープン・ソース!! そこで、これを使ってC++のAST(の最低限)をダンプするごく小さなツールを作ってみました。(200行ちょっとのcppを1つだけ) AST簡易ダンプ・ツールは32bitsアプリとしてビルドしています。 Windows 7 Professionalの64bit版で動作確認しましたが、Windows 7 32bit版でも動くと思います。 1.使用ツールのインストール LLVMはWindows上ではVisual Studioのみ動作確認されているようですので、Visual Studioを使った方がよいのですが、今回はMinGW+QtCreatorを使いました。(Visual S

                    ClangのlibToolingでASTをダンプするツールを作ってみた - Qiita
                  • aster - AST-based code builder

                    View on GitHub What's that # aster is reactive builder specialized for code processing and transformations. It's built with debugging in mind and makes building JavaScript code more reliable and faster. You may want to check out presentation below: Why one more # Source maps are a great invention that is meant to simplify life by allowing developers to debug the original code (the one that they ac

                    • GitHub - teppeis/closure-ts: Generates TypeScript declarations(d.ts) from Closure Library JSDoc annotations

                      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 - teppeis/closure-ts: Generates TypeScript declarations(d.ts) from Closure Library JSDoc annotations
                      • JSオジサンで現在のJavaScript ASTについて発表してきた

                        <ul> <li> JavaScript ASTの現在 </li> <li> 簡単なAST概要 </li> <li> 実際に使われてるツールを見て </li> <li> ASTを使ってツールを書いてみる話 </li> </ul> <p> 等について書かれています。 </p> <h2> 「LTおじさんの歴史『人はなぜLTをするのか』」 &#8211; @kyo_ago </h2> <blockquote> <p> <a href="http://0-9.sakura.ne.jp/pub/lt/JSOjisan/start.html" title="LTおじさんの歴史『人はなぜLTをするのか』 #jsオジサン">LTおじさんの歴史『人はなぜLTをするのか』 #jsオジサン</a> </p> </blockquote> <ul> <li> LTオジサンの歴史 </li> <li> 週に2回ぐらい

                          JSオジサンで現在のJavaScript ASTについて発表してきた
                        • Beyond Source Maps

                          There's been some recent talk on es-discuss about standardizing source maps in ECMAScript 7. Before that happens, we should take a moment to reflect on what source maps have done well, where they are lacking, and meditate on what a more perfect debug format for compilers targeting JavaScript might be. My response quickly outgrew an email reply, and so I am collecting my thoughts and posting them h

                          • GitHub - substack/node-falafel: transform the ast on a recursive walk

                            This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

                              GitHub - substack/node-falafel: transform the ast on a recursive walk
                            • goパッケージで型情報を用いたソースコード検索を実現する

                              Takuya UedaSouzoh, Inc. (affiliated by Mercari, Inc.) - Go Engineer

                                goパッケージで型情報を用いたソースコード検索を実現する
                              • AST メタプログラミング | try! Swift Tokyo 2018 Day1-15 - niwatakoのはてなブログ

                                Swift にはランタイムにおける動的な振る舞いがほとんどありません。コード注入の実現方法や、AST を用いたアスペクト指向プログラミングについてお話します。 AST メタプログラミング こんにちは、フリーランスでデベロッパーです。メタプログラミングの手法の話をしたいと思います。 メタプログラミングは興味深いと思います。 ASTとは、通常見られません。ですが開発ツールを通してみなさん利用していると思います。幾つか種類があります。違いを説明していきます。 ASTは抽象型シンタックスツリーのことです。プログラムの構造を表します。 Xcodeもリファクタリングのために使っています。 開発ツールの中でプロウグラマティックに扱うことを可能にしています メトリクス分析は典型例です。 これらはSourceKitがつくるASTを利用して実現しています ASTを入手する方法です それぞれ違うものが入手できま

                                  AST メタプログラミング | try! Swift Tokyo 2018 Day1-15 - niwatakoのはてなブログ
                                • Design Strategies for JavaScript API

                                  Presented at O'Reilly Fluent Conference, San Francisco (March 12, 2014): http://fluentconf.com/fluent2014/public/schedule/detail/32527 Modular design of a large-scale web application encourages the right level of component coupling and at the same time it mandates a reasonable set of APIs (application programming interfaces) between those modules. The way a particular module is being used by other

                                    Design Strategies for JavaScript API
                                  • jQuery Foundation adopts Esprima | Official jQuery Blog

                                    The jQuery Foundation is excited to announce that we are now hosting the Esprima project! The Abstract Syntax Tree generated by this JavaScript parser is used by many important developer tools such as ESLint, Istanbul, JSDoc and JSCS. Ariya Hidayat has decided to transfer ownership of the Esprima project and its repo to the jQuery Foundation. We’re glad that Ariya has taken this step, since Esprim

                                    • GitHub - babel/babylon: PSA: moved into babel/babel as @babel/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 - babel/babylon: PSA: moved into babel/babel as @babel/parser -->
                                      • How to write a linter using tree-sitter in an hour

                                        This article was discussed on Hacker News. This is a continuation of my last post on how to write a tree-sitter grammar in an afternoon. Building on the grammar we wrote, now we’re going to write a linter for Imp, and it’s even easier! The final result clocks in less than 60 SLOC and can be found here. Recall that tree-sitter is an incremental parser generator. That is, you give it a description o

                                        • GitHub - whitequark/ast: A library for working with Abstract Syntax Trees.

                                          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 - whitequark/ast: A library for working with Abstract Syntax Trees.
                                          • PostCSSのASTを操作する - Qiita

                                            PostCSSには2日目で説明した、ASTを簡単に操作するためのAPIが用意されています。ASTはJavaScriptのオブジェクトなので、JavaScriptの構文で直接変換させることもできますが、より便利に、そして効率の良い処理をするためにも提供されているAPIを使います。 また、PostCSSの全てのAPIはAPIドキュメントで確認することができます。 ノードの種類 まずはASTのノードの種類です。PostCSSのASTのノードは以下の5つです。 Rootノード: ASTの1番上のノード(Rootノードは親ノードがない) Ruleノード: 1つのルールセット AtRuleノード: 1つの@ルール Declarationノード: 1プロパティ宣言 Comment: 1つのコメント これらは実装的には PostCSSの Node クラスを継承したもので、Node.type を参照すること

                                              PostCSSのASTを操作する - Qiita
                                            • Creating custom JavaScript syntax with Babel | Tan Li Hau

                                              Series: Intermediate Babel JavaScriptbabelASTtransform Overview Fork the babel Crash Course on Parsing Code to AST Our custom babel parser A new token: '@@' The new parser How parsing works this.eat, this.match, this.next Our babel plugin 1. Assume `currying` has been declared in the global scope. 2. Use the `@babel/helpers` Closing Note Editor's Note Further Reading Following my previous post on

                                                Creating custom JavaScript syntax with Babel | Tan Li Hau
                                              • ESTree 互換っぽい AST を出力する JavaScript のパーサーまとめ

                                                ESTree という JavaScript の AST の仕様がある。ESTree っぽいものを出力してくれるパーサーをまとめていく。 雑にまとめているので興味ある人とか詳しい人は適当に追記してもらって構いません。 @babel/parser Babel で使われているパーサー。最新の JavaScript だけでなく、まだ ECMAScript に入っていないプロポーザルや TypeScript、Flow もオプションで対応している。また、AST は ESTree と一部互換性がないものを出力するが、estree プラグインを使うことで、ESTree 互換の AST を出力させることもできる。 Prettier のデフォルトパーサー。@babel/eslint-parserを使うことで ESLint のパーサーとしても使うことができる。 @typescript-eslint/typesc

                                                  ESTree 互換っぽい AST を出力する JavaScript のパーサーまとめ
                                                • CPythonよりも(制約付きで)速いPythonJS

                                                  PythonJSというPythonからJavaScriptへのトランスレーターで変換されたコードが、元のCPythonコード1よりも高速になったという 記事が出ました 。ちょっと興味が湧いたので、PythonJSについて調べてみました(この記事はプログラマ向けです)。 PythonJSとは PythonJS は、正確に言うと、Pythonから、JavaScriptを含む各種プログラミング言語(現状、JavaScript,Dart,Lua,CoffeScript)へのトランスレーターです。 このトランスレーター自体はPythonで書かれていますが、empythoned を使ってNode.jsから実行することもできます(empythoned自体もPythonJSに同梱されてます)。Node.js用のライブラリとしてのインターフェイスもありますので、Node.jsアプリケーションから、Pytho

                                                    CPythonよりも(制約付きで)速いPythonJS
                                                  • Nitra goes Open Source! | The JetBrains Blog

                                                    IDEs AppCode CLion DataGrip DataSpell Fleet GoLand IntelliJ IDEA PhpStorm PyCharm RustRover Rider RubyMine WebStorm Plugins & Services Big Data Tools Code With Me Quality Assurance JetBrains Platform Scala Toolbox App Writerside JetBrains AI Grazie Team Tools Datalore Space TeamCity Upsource YouTrack Hub Qodana .NET & Visual Studio .NET Tools ReSharper C++ Languages & Frameworks Kotlin Ktor MPS Am

                                                      Nitra goes Open Source! | The JetBrains Blog
                                                    • Analyzing JavaScript Scope — Proto&Type

                                                      Proto&Type is a blog about UX, Interaction Design, and the Web.JavaScript’s scoping rules are pretty darn simple, but they make for a few implications that surprise novice and experienced developers alike. Luckily, most of those implications can be detected through static code analysis. We can use a tool like Esprima to do our scope analysis. Esprima is a JavaScript parser that builds a pretty det

                                                        Analyzing JavaScript Scope — Proto&Type
                                                      • めっちゃヤク刈った - mizchi's blog

                                                        やりたいこと: TypeScriptの型定義 *.d.tsファイルをパースして型情報を手に入れたい 最初に考えたこと: TypeScriptのASTを引っこ抜いて適当にパースすれば良いんじゃね? scala.jsの作者がTypeScriptからscala.jsへの変換を書いてるのを発見 sjrd/scala-js-ts-importer ソース読んでたら自力でTypeScriptをパースしてることを発見しヤバみを感じて撤退する scala-js-ts-importer/src/main/scala/org/scalajs/tools/tsimporter/parser/TSDefParser.scala at master · sjrd/scala-js-ts-importer 素直にTypeScriptコンパイラからASTを手に入れよう… TypeScriptのコンパイラ周りのAPIが混

                                                          めっちゃヤク刈った - mizchi's blog
                                                        • 闇PHP勉強会 #yamiphp でASTとsignalについて話してきたこと - do_aki's log

                                                          時間が開いてしまいましたが、先週 第七回闇PHP勉強化に参加し、トークしてきました。 タイトルは「PHP AST 徹底解説(補遺)」および、「signal の話 或いは Zend Signals とは何か」です。 前者は、過日 PHPカンファレンス2016 で発表した「PHP AST 徹底解説」の補足集で、PHPカンファレンス2016 では時間の都合上省略したり、発表後に指摘された内容について調べたものになります。 後者は PHP における signal 処理についての概要と、7.1 における変化を解説しました。 PHP AST 徹底解説(補遺) from do_aki signal の話 或いは Zend Signals とは何か from do_aki PHP AST 徹底解説(補遺) の、ASTに関する部分については 「PHP AST 徹底解説」にマージしてありますので、興味があれば

                                                            闇PHP勉強会 #yamiphp でASTとsignalについて話してきたこと - do_aki's log
                                                          • もっと楽して式の評価器を作る #golang - Qiita

                                                            はじめに Go Advent Calendar 2016にて、「簡単な式の評価機を作ってみる」という記事を書きました。 そこでは、抽象構文木(AST)を解析し、go/constantパッケージの機能を使って式の評価器を作るという話を書きました。 この記事では、go/typesパッケージの機能を使うことで、もっと楽して式の評価を行うプログラムを作ってみたいと思います。 なお、この記事を書いた時点におけるGoの最新バージョンは1.7.4です。 定数の評価 「Goのスコープについて考えてみよう」という記事でも触れましたが、go/typesパッケージには、以下のような機能が提供されています。 識別子の解決(identifier resolution) 型推論(type deduction) 定数の評価(constant evaluation) 「go/types: The Go Type Chec

                                                              もっと楽して式の評価器を作る #golang - Qiita
                                                            • babel-eslint/acorn-to-esprima.js at master · babel/babel-eslint · GitHub

                                                              } else if (type === tokTypes.semi || type === tokTypes.comma ||

                                                                babel-eslint/acorn-to-esprima.js at master · babel/babel-eslint · GitHub
                                                              • JavaScript Binary AST Engineering Newsletter #1

                                                                Hey, all cool kids have exciting Engineering Newsletters these days, so it’s high time the JavaScript Binary AST got one! Summary JavaScript Binary AST is a joint project between Mozilla and Facebook to rethink how JavaScript source code is stored/transmitted/parsed. We expect that this project will help visibly speed up the loading of large codebases of JS applications and will have a large impac

                                                                  JavaScript Binary AST Engineering Newsletter #1
                                                                • XPathでソースコード検索

                                                                  第七回闇PHP勉強会

                                                                    XPathでソースコード検索
                                                                  • Rubyist Magazine - スはスペックのス 【第 1 回】 RSpec の概要と、RSpec on Rails (モデル編)

                                                                    『るびま』は、Ruby に関する技術記事はもちろんのこと、Rubyist へのインタビューやエッセイ、その他をお届けするウェブ雑誌です。 Rubyist Magazine について 『Rubyist Magazine』、略して『るびま』は、Rubyist の Rubyist による、Rubyist とそうでない人のためのウェブ雑誌です。 最新号 Rubyist Magazine 0063 号 バックナンバー Rubyist Magazine 0063 号 Rubyist Magazine 0062 号 Kaigi on Rails 特集号 RubyKaigi Takeout 2020 特集号 Rubyist Magazine 0061 号 Rubyist Magazine 0060 号 RubyKaigi 2019 直前特集号 Rubyist Magazine 0059 号 Rubyist

                                                                    • GoのASTを解析してFeature Toggleを掃除する - freee Developers Hub

                                                                      この記事はfreee Developers Advent Calendar 2023の21日目の記事です。 こんにちは、金融開発部でEMをしている ogugu です。 今回は、Go言語において Feature Toggle の分岐を掃除するCLIを作ったので、ご紹介します。 ※ 毎年恒例の開発合宿 での成果になります。 Feature Toggle とは Feature Toggle とは、特定機能の有効・無効をフラグによって切り替える方法です。 金融開発部では、以下のように Feature Toggle を実現できるライブラリを用意しています。 if featflg.Enabled(ctx, "feature_name") { doNewLogic() } else { doOldLogic() } 一般に、フラグ設定は、設定ファイル・環境変数・ストレージなどから読み出し、それらに対する

                                                                        GoのASTを解析してFeature Toggleを掃除する - freee Developers Hub
                                                                      • estraverseの仕様意訳 - 若くない何かの悩み

                                                                        es**シリーズの仕様意訳第二回。前回はesprimaでした。今回はestraverse。 estraverse estraverseはASTの巡回コードをお手軽に書けるようにするモジュール。 ASTは子ノードのプロパティ名がまちまちなので、巡回させるコードを書くのが結構手間なんで重宝する。 基本的にesprimaの吐いたASTをestraverse.traverseに喰わせるだけでOK。 ここらへんも本当によくできていて、esprimaとestraverseは疎結合を保っている(AST仕様のみで結びついているといってもよい)。 ではいってみよう。estraverseと、ASTを吐かせるためのesprimaをnpmからとってくる。 npm install esprima npm install estraverse 以下のようにコードを作成。 var esprima = require('

                                                                          estraverseの仕様意訳 - 若くない何かの悩み
                                                                        • metaeES

                                                                          Writen in JavaScriptmetaES is a JavaScript meta-circular interpreter. To take most of metaES, you'll have to learn how it works otherwise you can just use tools written by others without even being aware of metaES. Integrates with your applicationNo matter what app you're building and where it's run: in a web browser,in node.js,in any other environment or custom ECMAScript interpreter, you can ben

                                                                          • ast-grepでReact 19に移行する

                                                                            はじめに こんにちは、ast-grepの作者ヘリントンです。 Reactバージョン19のリリースに伴い、新機能と改善が追加されました。 しかし、この新バージョンへのアップグレードには、ソースコードの一部を修正する必要があります。特に大規模なコードベースでは、このプロセスはかなり手間がかかり、繰り返し行う必要があります。 本記事では、ast-grepというツールの使用方法を説明します。このツールは、コードベース内でパターンを見つけて置き換えることを目的として設計されており、React 19への移行を容易にします。 以下の3つの主要なcodemodsに焦点を当てます。 <Context>をプロバイダとして使用する 暗黙のrefコールバックリターンを削除する refをpropsとして使用し、forwardRefを削除する 前提条件: ast-grepのセットアップ まず、ast-grepをセット

                                                                              ast-grepでReact 19に移行する
                                                                            • 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 - rse/astq: Abstract Syntax Tree (AST) Query 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 - rse/astq: Abstract Syntax Tree (AST) Query Engine
                                                                                • csspatterns.com is almost here!

                                                                                  The owner of this domain has not yet uploaded their website.