flexmc's Introduction
flexmc's People
flexmc's Issues
Add input preprocessing into lines, then tokenize only per line
std::regex
has no flag to switch of the global m
multiline flag, so the lexer cannot tokenize the complete input string. Preprocess the input so that the lexer does not encounter new lines.
Basic language error handling
Implement expression parsing
Implement a parser that converts a stream of tokens given in infix notation (produced from an input string by the Lexer
) into stack of objects representing an expression in postfix notation. This expression should then be evaluated into a float value in a straightforward way (-> tests) by popping/operating on the stack.
The above should be realized by the exceptional answer given in:
The stack of objects should should be represented by two related stacks and a choice method to chose which of the two stacks should be popped next (so that they represent the single object stack). The first stack should be the stack that eventually gets reduced into a single value, the calculated result, and should contain something like:
Operand
orRValue
(?): an object holding a fixed number that will not change during calculation
The second stack should contain adresses to a number of different
Operator
Function
both of which operate on and transform the first stack.
Profiling expressions
Clean up code so that gcc compiles
Review reduce functions compilation
Use ASAN (Adress Sanitizer) in CI builds
use std::size_t instead of size_t
list functions, expression tests
Static Variables
cmake
Use parenthesis instead of brackets for lists
Remove recursion within expression parser
fix test and project structure
Reintroduce SWIG
Try to replace subclasses of 'PostFixItem` (thus, virtual functions) with lambdas
Attempt optimization by prelacing vector of vectors
Keep swigpython up to date
Working the first time with c++, visual studio and its "solution" format, i'm not sure how to incorporate a swig/paython directory that should be completely ignored by the compiler and solution/project structure.
- Learn about the above
- Maintain
swigpython
in some way
Implement basic arithmetic operations on float and list[float]
This could include/might require some early type checking on the input
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.