-
Notifications
You must be signed in to change notification settings - Fork 0
/
parsers.lisp
18 lines (13 loc) · 1.01 KB
/
parsers.lisp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#|
(setf str-ar "['c:\\last-files\\my-projects\\commad-of-carla\\cl-to-python', 'C:\\last-files\\sources\\carla-venv\\Scripts\\python37.zip', 'C:\\Users\\LinkFly\\AppData\\Local\\Programs\\Python\\Python37\\DLLs', 'C:\\Users\\LinkFly\\AppData\\Local\\Programs\\Python\\Python37\\lib', 'C:\\Users\\LinkFly\\AppData\\Local\\Programs\\Python\\Python37', 'C:\\last-files\\sources\\carla-venv', 'C:\\last-files\\sources\\carla-venv\\lib\\site-packages', 'C:\\last-files\\sources\\carla-venv\\lib\\site-packages\\win32', 'C:\\last-files\\sources\\carla-venv\\lib\\site-packages\\win32\\lib', 'C:\\last-files\\sources\\carla-venv\\lib\\site-packages\\Pythonwin', 'C:\\last-files\\sources\\carla\\PythonAPI\\examples']")
|#
(in-package :cl-to-python)
(defun parse-element (str)
;; this stub
str)
(defun parse-array (str-ar)
(setf str-ar (subseq str-ar 1 (1- (length str-ar))))
(mapcar #'(lambda (str)
(parse-element (string-trim " " str)))
(uiop:split-string str-ar :separator ",")))
;(parse-array str-ar)