Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { expect, test } from "bun:test"; | |
import { createToken, Lexer, CstParser } from "chevrotain"; | |
import type { CstNode, IToken } from "chevrotain"; | |
const Integer = createToken({ name: "Integer", pattern: /0|[1-9]\d*/ }); | |
const allTokens = [Integer]; | |
const lexer = new Lexer(allTokens); | |
class Parser extends CstParser { | |
constructor() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/code/ocaml/monaco-editor main | |
❯ ts2ocaml jsoo --create-minimal-lib --preset=minimal --output-dir src-minimal monaco.d.ts | |
warn: type predicate is not supported and treated as boolean at line 98, col 35 of monaco.d.ts | |
> static isUri(thing: any): thing is Uri; | |
warn: type predicate is not supported and treated as boolean at line 567, col 39 of monaco.d.ts | |
> static isIPosition(obj: any): obj is IPosition; | |
warn: type predicate is not supported and treated as boolean at line 716, col 36 of monaco.d.ts | |
> static isIRange(obj: any): obj is IRange; | |
warn: type predicate is not supported and treated as boolean at line 829, col 40 of monaco.d.ts | |
> static isISelection(obj: any): obj is ISelection; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open Bonsai_web | |
open Core_kernel | |
open Js_of_ocaml | |
module Change = struct | |
type position = | |
{ ch: int | |
; line: int | |
} |
NewerOlder