本 gist 是对 WGSL-20240205 标准的一个简单 tree-sitter 实现
参考官方教程,通过 npm 安装 tree-sitter-cli,将 grammar.js 放在项目根目录,scanner.c 放在 src 目录,通过 tree-sitter generate
命令生成可用的 tree-sitter parser。
本 gist 代码参考了以下项目:
本 gist 是对 WGSL-20240205 标准的一个简单 tree-sitter 实现
参考官方教程,通过 npm 安装 tree-sitter-cli,将 grammar.js 放在项目根目录,scanner.c 放在 src 目录,通过 tree-sitter generate
命令生成可用的 tree-sitter parser。
本 gist 代码参考了以下项目:
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>First WebGPU APP</title> | |
</head> | |
<body> | |
<canvas width="720" height="720"></canvas> | |
</body> | |
<script src="./index.js"></script> | |
</html> |
cmake_minimum_required(VERSION 3.14) | |
project(unitree_guide) | |
set(ROBOT_TYPE Go1) # The type of robot, support Go1 and A1 currently | |
set(PLATFORM amd64) # The platform to compile, support amd64 and arm64 | |
set(CATKIN_MAKE ON) # Use CATKIN_MAKE or not, ON or OFF | |
set(SIMULATION ON) # Use Gazebo or not, ON or OFF | |
set(REAL_ROBOT OFF) # Link real robot or not, ON or OFF | |
set(DEBUG OFF) # Use debug functions or not, ON or OFF |
;;; init.el --- include-yy's emacs config -*- lexical-binding:t;no-byte-compile:t; -*- | |
;; Copyright (C) 2023 include-yy <yy@egh0bww1.com> | |
;; Author: include-yy <yy@egh0bww1.com> | |
;; Created: 17 Jun 2023 | |
;; Version: 0.1 | |
;; Keywords: config | |
;; URL: https://gist.github.com/include-yy/e70dcbfc1a80403814d0b7a7357971d9 |
周末光追的 ReScript 实现
直接编译运行即可