{"size": 1241, "ext": "scrbl", "max_stars_repo_path": "no-vert-bar/scribblings/no-vert-bar-lang.scrbl", "max_stars_repo_name": "AlexKnauth/no-vert-bar-lang", "max_stars_repo_stars_event_min_datetime": "2020-02-04T03:07:03.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-13T06:30:53.000Z", "max_issues_repo_path": "no-vert-bar/scribblings/no-vert-bar-lang.scrbl", "max_issues_repo_name": "AlexKnauth/no-vert-bar-lang", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "no-vert-bar/scribblings/no-vert-bar-lang.scrbl", "max_forks_repo_name": "AlexKnauth/no-vert-bar-lang", "max_forks_repo_forks_event_min_datetime": "2018-02-02T04:17:08.000Z", "max_forks_repo_forks_event_max_datetime": "2018-02-02T04:17:08.000Z"}
{"max_stars_count": 4, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 22.1607142857, "max_line_length": 69, "alphanum_fraction": 0.7066881547}
#lang scribble/manual

@title{no-vert-bar-lang}

source code: @url{https://github.com/AlexKnauth/no-vert-bar-lang}

@section{#lang no-vert-bar}

@defmodule[no-vert-bar #:lang]{
A racket lang-extension that reads @litchar{|} as a normal character.

It takes another language as an argument, so that @hash-lang[]
@racketmodname[no-vert-bar] @racketmodname[racket] is a language like
@racketmodname[racket] but without the special behavior for
@litchar{|}.
}

@codeblock{
#lang no-vert-bar racket

(define (P-A|B P-A P-B P-B|A)
  (* P-B|A (/ P-A P-B)))

(define (|| a b)
  (or a b))

(define |0>
  (vector-immutable 1 0))
(define |1>
  (vector-immutable 0 1))
}

These all treat the @litchar{|} like it was any other character, so
that it doesn't interfere with how you name your identifiers.

@section{#lang no-backslash}

@defmodule[no-backslash #:lang]{
A racket lang-extension that reads @litchar{\} as a normal character.

Just like with @racketmodname[no-vert-bar], @hash-lang[]
@racketmodname[no-backslash] @racketmodname[racket] would declare a
language like @racketmodname[racket] but without the special behavior
for @litchar{\}.
}

@codeblock{
#lang no-backslash racket

(define (/\ a b)
  (and a b))

(define (\/ a b)
  (or a b))
}
