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
#! /usr/bin/env racket | |
#lang reader SRFI-105 | |
(require Scheme+) | |
(require setup/dirs) | |
(require racket/date) | |
(require srfi/13) ; for at least string-contains | |
(require upi/basename) |
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
` | |
(pretty-print (syntax->datum (expand '($nfx$ | |
data-xml | |
<- | |
(for/list | |
((one-data-row data-interpol) (one-trajectory-row data-trajectory)) | |
($nfx$ | |
(index X_MSO Y_MSO Z_MSO VALx VALy VALz) | |
<- | |
(apply values (string-split one-data-row))) |
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
#! /usr/bin/env racket | |
;;#lang racket | |
;; Copyright (C) 2012 David A. Wheeler and Alan Manuel K. Gloria. All Rights Reserved. | |
;; Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
;; The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. |
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
;; for optimisation routines in parsing | |
;; guile version | |
;;; evaluates `terms` symbolically or numerically as a basic infix expression | |
(define (!0-generic terms operator-precedence creator) | |
(display "!0-generic : terms=") (display terms) (newline) | |
;;(display "!0-generic : operator-precedence=") (display operator-precedence) (newline) |