profile
viewpoint
Christopher C. Aycock chrisaycock Clear Street Markets, LLC New York https://www.chrisaycock.com Senior Quantitive Engineer

chrisaycock/empirical-lang 1

A language for time-series analysis

empirical-soft/empirical-soft.github.io 1

Homepage for Empirical Software Solutions, LLC

issue closedempirical-soft/empirical-lang

Grammar railroad diagram

Using this tool https://www.bottlecaps.de/convert/ we can copy and paste https://github.com/empirical-soft/empirical-lang/blob/master/src/Empirical.g4 on the Input grammar: textarea then click the button Convert then after conversion click the button View Diagram to see a nice interactive railroad diagram ( https://en.wikipedia.org/wiki/Syntax_diagram ) that can also be downloaded as xhtml.

Also can be done offline using the java tool https://www.bottlecaps.de/rr/download/rr-1.63-java8.zip (link on the Welcome tab).

closed time in 20 days

mingodad

issue commentempirical-soft/empirical-lang

Grammar railroad diagram

Thanks for the heads up!

mingodad

comment created time in 20 days

startedianstormtaylor/slate

started time in a month

push eventempirical-soft/command-interface

Christopher C. Aycock

commit sha 89bc5a45efd815711538464e6d50ad8ce1c2b2fa

Renamed to "Command Interpreter" to prevent confusion with argument parsers

view details

push time in a month

issue closedempirical-soft/command-interface

Project cannot compile sussessfully in VS2019

It's a nice project of the command line argument parse! I meet one problem while compling the demo.

fatal error C1083: 无法打开包括文件: “boost/lexical_cast.hpp”: No such file or directory

It seems need some lib about "boost". I didn't find the specification about the "boost" lib at the first time, it is hidding in the last line. I recommand highlight the wiki about the dependency of other libraries which can make the user know what to install obviously.

closed time in a month

Sudouble

push eventempirical-soft/command-interface

Christopher C. Aycock

commit sha 880b54301c780e3abeb5d733e919465b0ddbb820

Highlighted dependency line in README

view details

push time in a month

issue commentempirical-soft/command-interface

Project cannot compile sussessfully in VS2019

I can highlight the dependency line to make it clearer. There is no wiki for this project.

And to be clear, this library isn't for command-line arguments (argv). It's to make a command-line interface (repl).

Sudouble

comment created time in a month

issue closedempirical-soft/command-interface

compile failed

the failure message is like below

command_interface.hpp:153:35: error: 'x6' was not declared in this scope
       return err_type_args(typeid(x##n).name(), n); \
                                   ^
/opt/include/boost/preprocessor/repetition/limits/repeat_256.hpp:282:62: note: in expansion of macro 'CAST'
 # define BOOST_PP_REPEAT_2_7(m, d) BOOST_PP_REPEAT_2_6(m, d) m(3, 6,

closed time in a month

sequoiar

push eventempirical-soft/command-interface

Christopher C. Aycock

commit sha 0d262c1ef210f743d02233399a6cba112c9f6b2c

Fix to work with C++11

view details

push time in a month

issue commentempirical-soft/command-interface

compile failed

Ah, CommandInterface requires C++14. I can reproduce your error with C++11; the code works with C++14.

sequoiar

comment created time in a month

issue commentempirical-soft/command-interface

compile failed

I am unable to reproduce the error.

#include <iostream>
#include "command_interface.hpp"

class SampleInterface : public CommandInterface {
  std::string cmd_say(std::string msg) {
    return "Received: " + msg;
  }

  void register_commands() override {
    register_command(&SampleInterface::cmd_say, "say", "Repeat a string");
  }
};

int main() {
  SampleInterface si;
  std::string text;
  std::cout << ">>> ";
  while (std::getline(std::cin, text)) {
    std::cout << si.eval(text) << std::endl << std::endl;
    std::cout << ">>> ";
  }
  return 0;
}

It compiles and runs.

>>> help
say   Repeat a string
help  Show this help

>>> say SomeText 
Received: SomeText

Are you able to show your entire code? Specifically, are you able to provide a minimal reproducible example?

Also, which compiler are you using? Which versions of C++ and Boost?

sequoiar

comment created time in a month

issue commentempirical-soft/command-interface

compile failed

Could you show me type signature of the function you registered?

sequoiar

comment created time in a month

push eventempirical-soft/command-interface

Christopher C. Aycock

commit sha 9d7cf00c122d84cd28fba7fb0f21d58be0e5601f

Decay parameter types to handle const ref

view details

push time in a month

push eventempirical-soft/command-interface

Christopher C. Aycock

commit sha ab81b2ae3dc0f4233373d65590c8e0f36d651570

Parse trailing line terminator correctly

view details

push time in a month

push eventempirical-soft/command-interface

Christopher C. Aycock

commit sha 90819453a00dde721e2dbd0d2846a67879837237

Prase trailing line terminator correctly

view details

push time in a month

delete branch empirical-soft/command-interface

delete branch : member

delete time in a month

push eventempirical-soft/command-interface

Christopher C. Aycock

commit sha 37cd31117bf92bf0ad62af943a8cf60d03067b86

Can handle member functions

view details

push time in a month

create barnchempirical-soft/command-interface

branch : member

created branch time in a month

startedrpclib/rpclib

started time in a month

push eventchrisaycock/chrisaycock

Christopher C. Aycock

commit sha 84980e2943b783f30a03b0ef4a0c23b469f07949

Update README.md

view details

push time in 2 months

more