package p5scm
 sectionYPositions = computeSectionYPositions($el), 10)"
  x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
  >
  
  
  Scheme via camlp5
Install
    
    dune-project
 Dependency
Authors
Maintainers
Sources
  
    
      0.5.0.tar.gz
    
    
        
    
  
  
  
    
  
  
    
  
        md5=e0fe733bb7a8cccc94bfbbd3b58e6d76
    
    
  sha512=4f4efad8bb7b2ab5cfc0fff9bb48e45df8e7396d288d52f5c84b53919e1979720bbd909e82e714e1eb6fe8d3b83c14656167199373a197a6082eab2457fea94d
    
    
  doc/src/p5scm.lib/pp_ast.ml.html
Source file pp_ast.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23(* The MIT License Copyright (c) 2021 Jason D. Nielsen <drjdnielsen@gmail.com> *) open Ast open Sexp_pretty let rec ast_to_p5scm = function | Plist i -> String.concat "\n" (List.map ast_to_p5scm i) | Slist i -> "(" ^ String.concat " " (List.map ast_to_p5scm i) ^ ")" | Stlist i -> "{" ^ String.concat " " (List.map ast_to_p5scm i) ^ "}" | Vlist i -> "#(" ^ String.concat " " (List.map ast_to_p5scm i) ^ ")" | Alist i -> "[" ^ String.concat " " (List.map ast_to_p5scm i) ^ "]" | Lpatt (i, j) -> "[" ^ (ast_to_p5scm i) ^ " . " ^ (ast_to_p5scm j) ^ "]" | Atom (_, i) -> i | Toplv (i, j) -> utop_action i j and utop_action s1 s2 = match s1 with | "#require" -> "(UTop.require [" ^ s2 ^ "])" | "#use" -> "(Toploop.use_file Format.std_formatter " ^ s2 ^")" | _ -> failwith "Not a known utop directive!"
 sectionYPositions = computeSectionYPositions($el), 10)"
  x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
  >