-
nimly - Lexer Generator and Parser Generator as a Library in Nim.
With nimly, you can make lexer/parser by writing definition in formats like lex/yacc. nimly generates lexer and parser by using macro in compile-time, so you can use nimly not as external tool of your program but as a library.
This file contains 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
;; | |
;; direct_tty.ss | |
;; | |
;; This is a demonstration program using some of the Chez Scheme FFI to put the | |
;; terminal into "raw" mode, read a line of characters, possibly containing | |
;; control characters that would normally terminate input, without echoing | |
;; the characters typed. Once the user presses the line termination character, | |
;; (user defined), the program displays the line. | |
;; | |
;; The program shows how to obtain character-by-character input with |
This file contains 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
import strutils | |
import nimterop/[build, cimport] | |
const | |
baseDir = getProjectCacheDir("meow") | |
static: | |
gitPull( | |
"https://github.com/cmuratori/meow_hash", |
This file contains 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
# nim c -d:FLAGS quickjs.nim | |
# | |
# FLAGS | |
# -d:quickjsGit | |
# -d:quickjsSetVer= | |
# -d:quickjsStatic | |
import os | |
import nimterop/[build, cimport] |
This file contains 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
#! /bin/bash | |
export GITBIN=$HOME/bin | |
mkdir -p $GITBIN | |
export PATH=$HOME/Nim/bin:$HOME/nimph:$GITBIN:$PATH | |
if ! type -P git &> /dev/null; then | |
if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then | |
export EXT=.exe |
This file contains 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
import strutils | |
import tables | |
import algorithm | |
import httpcore | |
import unicode | |
import strformat | |
import times | |
import nimcrypto | |
import httpclient | |
import utils |
This file contains 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
os: | |
- windows | |
- linux | |
- osx | |
language: c | |
env: | |
- BRANCH=0.19.6 | |
- BRANCH=0.20.2 |
This file contains 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
/* A weaponized version of PyObject. | |
* | |
* This code violates multiple tenets of the Geneva Conventions[0] | |
* the Kyoto Protocol, the United Nations Charter, the Ottawa Treaty, | |
* the Roerich Pact, both the first and second London Naval Treaties, | |
* the St. Petersburg Declaration, and the Nuremberg Priciples. It | |
* may be even run afoul of a few loosely-interpreted sections of the | |
* Paris Climate Accord due to ambiguity in the Farsi translation[1]. | |
* | |
* As such, users may be deemed a terrorist threat in (at time of |
This file contains 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
graph = JanusGraphFactory.open("conf/gremlin-server/janusgraph-cassandra-es-server.properties") | |
prop = 'some_property_name' | |
name = 'by' + prop | |
size = graph.getOpenTransactions().size() | |
if(size>0) {for(i=0;i<size;i++) {graph.getOpenTransactions().getAt(0).rollback()}} | |
graph.getOpenTransactions() | |
m = graph.openManagement() |
NewerOlder