Merge branch 'master' of http://gitea.stocksriddle.one/vaclavt/mlisp
This commit is contained in:
commit
2e83889b16
|
|
@ -5,3 +5,4 @@ ml
|
||||||
.DS_Store
|
.DS_Store
|
||||||
CMakeFiles
|
CMakeFiles
|
||||||
Testing
|
Testing
|
||||||
|
.cache
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ utils/local_install.sh
|
||||||
- execute system command should capture stderr
|
- execute system command should capture stderr
|
||||||
- add mem stats to benchmark
|
- add mem stats to benchmark
|
||||||
- order of arguments in functions like member and filter - filter swap lambda and list
|
- order of arguments in functions like member and filter - filter swap lambda and list
|
||||||
- better output of !e in repl
|
- better output of !e in repl (resp !e !ee)
|
||||||
|
|
||||||
#### Doc
|
#### Doc
|
||||||
- fix an error in printing multiline examples in doc
|
- fix an error in printing multiline examples in doc
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
|
||||||
|
;read file
|
||||||
|
(define web (read-file "/tmp/finviz_quote_syf.html"))
|
||||||
|
(print "file read")
|
||||||
|
|
||||||
|
; remove head section
|
||||||
|
(define pos (string-find web "<body" 0))
|
||||||
|
(define web2 (string-substr web pos 1000000))
|
||||||
|
|
||||||
|
; remove scripts
|
||||||
|
(define web3 (string-replace web2 "<script(.*?)>((.|\r?\n)*?)</script>" ""))
|
||||||
|
|
||||||
|
; extract tables
|
||||||
|
|
||||||
|
(print web3)
|
||||||
|
|
@ -136,13 +136,13 @@
|
||||||
</dict>
|
</dict>
|
||||||
<dict>
|
<dict>
|
||||||
<key>match</key>
|
<key>match</key>
|
||||||
<string>(?<=\()(?i:\*|\*\*|\*\*\*|\+|\+\+|\+\+\+|\-|/|//|///|/=|1\+|1\-|<|<=|=|>|>=|if|cond|do|for|while|scope|quote|defn|and|or|set!|eval|type|parse|list|insert|index|remove|len|push|pop|head|tail|first|last|range|map|filter|reduce|exit|quit|print|input|random|include|read-file|read-file-lines|write-file|read-url|system-cmd|ls-dir|is-file?|is-dir?|tcp-server|tcp-client|parse-csv|parse-json|get-universal-time|date-to-str|str-to-date|date-add|debug|sprintf|display|string-replace|string-replace-re|string-regex?|string-regex-list|string-split|string-pad|string-rltrim|string-case|string-len|string-substr|string-find|benchmark|thread-create|thread-under-lock|thread-sleep|threads-join|try|throw|usql|first|second|third|fourth|fifth|sixth|seventh|eight|nth|print|get-universal-time|not|is-pos?|is-neg?|neg|dec|inc|string-ltrim|string-rtrim|string-trim|string-rpad|string-lpad|string-upcase|string-downcase|string-join|itok|ktoi|sleep|get-env|member|make-list-of|make-list|empty-list?|uniq|flatten|quick-sort-by|quick-sort|quick-sort-reverse|start-of-day|end-of-day|start-of-month|start-of-next-month|end-of-next-month|end-of-month|start-of-prev-month|end-of-prev-month|start-of-year|end-of-year|make-csv)(?=\s+)</string>
|
<string>(?<=\()(?i:\*|\*\*|\*\*\*|\+|\+\+|\+\+\+|\-|/|//|///|/=|1\+|1\-|<|<=|=|>|>=|if|cond|do|for|while|scope|quote|and|or|set\!|eval|type|parse|list|insert|index|remove|len|push|pop|head|tail|first|last|range|map|filter|reduce|exit|quit|print|input|random|include|read-file|read-file-lines|write-file|read-url|system-cmd|ls-dir|is-file?|is-dir?|tcp-server|tcp-client|parse-csv|parse-json|get-universal-time|date-to-str|str-to-date|date-add|debug|sprintf|display|string-replace|string-replace-re|string-regex?|string-regex-list|string-split|string-pad|string-rltrim|string-case|string-len|string-substr|string-find|benchmark|thread-create|thread-under-lock|thread-sleep|threads-join|try|throw|usql|first|second|third|fourth|fifth|sixth|seventh|eight|nth|print|get-universal-time|not|is-pos?|is-neg?|neg|dec|inc|string-ltrim|string-rtrim|string-trim|string-rpad|string-lpad|string-upcase|string-downcase|string-join|itok|ktoi|sleep|get-env|member|make-list-of|make-list|empty-list?|uniq|flatten|quick-sort-by|quick-sort|quick-sort-reverse|start-of-day|end-of-day|start-of-month|start-of-next-month|end-of-next-month|end-of-month|start-of-prev-month|end-of-prev-month|start-of-year|end-of-year|make-csv)(?=\s+)</string>
|
||||||
<key>name</key>
|
<key>name</key>
|
||||||
<string>keyword.control.lisp</string>
|
<string>keyword.control.lisp</string>
|
||||||
</dict>
|
</dict>
|
||||||
<dict>
|
<dict>
|
||||||
<key>match</key>
|
<key>match</key>
|
||||||
<string>(?<=^|\s|[()])(?i:nil|t)(?=$|\s|[()])</string>
|
<string>(?<=^|\s|[()])(?i:nil|\#t)(?=$|\s|[()])</string>
|
||||||
<key>name</key>
|
<key>name</key>
|
||||||
<string>constant.language.lisp</string>
|
<string>constant.language.lisp</string>
|
||||||
</dict>
|
</dict>
|
||||||
|
|
|
||||||
|
|
@ -19,8 +19,6 @@ mv ./ml /usr/local/bin/ml
|
||||||
echo ""
|
echo ""
|
||||||
echo "if syntax has changed you may use"
|
echo "if syntax has changed you may use"
|
||||||
echo "cp utils/Lisp.tmLanguage ~/.vscode/extensions/mattn.lisp-0.1.12/syntaxes/"
|
echo "cp utils/Lisp.tmLanguage ~/.vscode/extensions/mattn.lisp-0.1.12/syntaxes/"
|
||||||
echo "or"
|
|
||||||
echo "cp utils/Lisp.tmLanguage ~/.vscode/extensions/mattn.lisp-0.1.12/syntaxes/"
|
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
ml -v
|
ml -v
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue