JanetDocsPlaygroundI'm feeling luckyGitHub sign in

default-peg-grammar



    table
    boot.janet on line 2221, column 1

    The default grammar used for pegs. This grammar defines several 
    common patterns that should make it easier to write more complex 
    patterns.


4 examplesSign in to add an example
Loading...
(sort (keys default-peg-grammar))
# => @[:A :D :H :S :W :a :a* :a+ :d :d* :d+ :h :h* :h+ :s :s* :s+ :w :w* :w+]
sogaiuPlayground
(get default-peg-grammar :a+)
# => '(some :a)
sogaiuPlayground
(get default-peg-grammar :a)
# => '(range "az" "AZ")
sogaiuPlayground
(get default-peg-grammar :h)
# => '(range "09" "af" "AF")
sogaiuPlayground