This script can be used with Hummingbot to:
1- Download latest books from specified exchange,
2- Subtrct/add delta from latest buy/sell,
3- Sell back based on order amount,
In this document I wish to explain the difference between operational and denotational semantics. It may sound like a dry subject but you and I both will learn plenty from it.
Semantics of a language defines how the language behaves, where as the syntax of a programming language defines how it is formed.
Xeph.ebnf
contains the first draft of the Xeph non-pure functional language. A prototype of Xeph, compiled targeting GNU C, is at works.
EDIT: It is currently the second revision. I have added meta programming, and a lot of other imporvements.
However, the definition is weak, and it needs your feedback to be refined.
The ADTs in Xeph are taken from Zephyr ASDL (which there are many implementations of, like mine) and the rest are 'original', that is, taken from ML, Haskell, and Scheme.
This is not the final version of the grammar. The implementation at the moment is focusing on the backend and semantics. The grammar of a functional language is its most important aspect, and it can't be taken lightly.
LLOCPPX(1) User Contributed Perl Documentation ALLOCPPX(1) | |
NAME | |
allocppx.pl - A Perl script for preprocessing C files with specific | |
annotations. | |
SYNOPSIS | |
perl allocppx.pl [options] [input_file] |
I wrote an implementation of Zephyr ASDL which you can install from here:
https:///github.com/Chubek/ZephyrASDL
In this document I wanna write a short intro to ASDL and you you can utilize it.
ASDL is in use in CPython's source code. Not my implementation of course, an implementation called 'PyASDL' which parses it, and it's up to you to provide the semantics and code generation. CPython's source code uses ASDL to build the Abstract Syntax Tree for Python in C++. My implementation of ASDL translates the syntax description directly to C. You can specify the types to be also emitted in an extra header file (via the -s
flag).
Zephyr ASDL is not an standard, it's just a short paper written in 1997, by Wang, Appel, Korn and Serra, all Princeton alumni.
# Lexical and Syntactic EBNF Grammar for POSIX Shell (Non-Attributed) | |
# Authored by Chubak Bidpaa (chubakbidpaa@riseup.net) | |
# Written For the Marsh Shell (https://github.com/Chubek/Marsh) | |
# This grammar is based on POSIX specs (https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html) | |
# This document is released under `Unlicense` Public Domain License Agreement | (C) 2024 Chubak Bidpaa | No Warranty | |
# A: Lexical Grammar for POSIX Shell | |
This document describes several shell pipelines for converting PDF files to any format.
I'm not sure if it's true for all people, but my e-reader sucks at displaying PDF --- which is, in all reality, a giant executable file (we'll discuss this soon). Also, there's dozens of other reasons one may wish to convert a PDF to a better 'text format'. Let's say, you wanna put it up on your website, feed it to a mathematical optimization model, feed it to an script, etc.
Before you read this document, yes, I know there is a utility, nay, dozens that converty PDFs directly to text (like pdftotext
). I ALSO know that. there are millions, if not BILLIONS of crappy web services that serve you a malware on the platter alongisde converting the files. So let's not talk about them! It's about "owning" your software, read this!
This is not meant to be a description or history of PDF files, you can consult Sahih Al-Bukhari f
# Syntactic Grammar for ECMAScript | |
ecma-script-module ::= { top-level | ignorable } | |
top-level ::= statement | |
| function-declaration | |
| class-declaration | |
function-declaration ::= [ "async" ] "function" identifier function-params-postfix compound-statement |
Note: if you wish to understand these notations, please read this: https://gist.github.com/Chubek/52884d1fa766fa16ae8d8f226ba105ad
So, again, why did I write the EBNF grammar for AWK?
Basically, I have two ongoing projects where AWK is involved. Firs is Squawk, and implementation of AWK and second is AWK2c, which obviously translates AWK to C.
Plus, I am thinking of making a Github page called 'The Internet Grammar Database' where I would post EBNF, Yacc, PEG, Lex, definitions of languages. However, I don't have much experience in web development, so if you can help me, let me know (chubakbidpaa [at] riseup [dot] net).
So anyways, awk.ebnf
contains the EBNF grammar for AWK. Some considerations:
c.ebnf
contains grammar ofr C99. Note that this is ANSI C, not ISO C, so there are some omissions. The reason I wrote this is, I am currently writing a C compiler, with my own backend (and hopefully, frontend) in OCaml. And I needed to collect the grammar in one place.
Reading EBNF grammars is pretty simple:
?
s is a global capture, it does not mean optional. It means 'I am writing a free-style sentence'.{
and }
means : repeat at least zero times[
and ]
means : this is optional(
and )
means : this is a group