Writing custom script language [closed] - c++

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I'm not sure if this is on the right forum but im putting it here.
I am interesting in writing my own script language that is easy to embed in any language. I want to do it for educational purposes, to see how it works and to learn more about how programming languages and script languages work and how they can work together. I am a college student learning c and c++. I am eager to learn as much as I can.
Could anybody tell me where I could find some resources or books to help me get started? What else I could do to learn the same things?

Look for compiler-compilers.
As a dinosaur, I'd say look into flex/bison to have the full featured options (but also developer responsibilities):
http://www.cse.wustl.edu/~beardj/FlexBisonC++.html
It will certainly address the educational purposes. See that a programming language consists of a 'scanner', that tokenizes characters into words, and a parser, that combines words to expressions, statements, and complete programs.

Related

Programming Problems and Concepts [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I have been studying programming, C++ specifically, for about 6 months and I got in a competition in my school. The teacher said that it will have some programming problems of different difficulties, although I have been working with problems like the ones found on Project Euler, I need different ones not just ones with math. Can anyone suggest any good problems, the more advanced the better. Or some books or articles I can read to improve my programming? I have googled this however answers are not as good as I expected and are really vague. I would really appreciate a solid and clear answer from experienced developers.
Check Herb Sutter's Exceptional C++ book, it has very good challenges. If you've already read it, there are sequels to that one as well, namely More Exceptional C++ and Exceptional C++ Style
The subreddit The Daily programmer post challenges, well, daily.
They are categorized by level, so you can test yourself and see what level are you and even compete with others.
enjoy

What do I actually need in a C++ project? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I have been programming a lot in college and have a basic understanding on how to program. All the time the programming environment was configured and all necessary files were provided. Even the source files were pre-filled, where I had to only add essential lines of code. Thus, I learned the programming language and how to code, but I have no idea what is necessary besides the code to make a working application.
Now, when I want to make my own application, what is necessary to have except the functional programming code? What files are created automatically for me (such as in MS Visual Studio 2008 C++), what other files/libraries should be included by me? What are the essential project settings i should pay attention to? etc.
Most of the tutorials I found cover programming essentials and rarely mention the questions above. If someone could name the topics that cover these questions, I would greatly appreciate. The links to educational sources would be welcome.

python cookbook for beginners? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I know there's a python cookbook, and it seems to be a good one. But it also seems to be aimed more towards intermediate and advanced users.
Does anyone know of something along the lines of a python cookbook for beginners?
I'd really like some useful examples of code that I could use right away for fun things to learn about python programming, that ISN'T the absolute basics.
Here's a small set of resources you may want to study:
Hidden features of Python
What are some cool Python tricks?
Short (and useful) python snippets
30 Python Language Features and Tricks You May Not Know About
Python snippets
There are a lot of interesting examples that could help you understand the language better.
My professor recommended for me a book called "think python like computer scientist".
I'm reading it for now , it's very good at python and methods of thinking .
You can download it from :
https://greenteapress.com/thinkpython/thinkpython.pdf

Good books for Interpreter and Compiler using C++? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm planning to write a simple interpreter ( like TI-BASIC language for TI-89 ) or compiler ( C compiler ) using C++. I'm currently taking a course about programming languages, and learning the basic of BNF, EBNF. I wonder is it good enough to start on this project? In addition, could anyone know some good books about this area? Any feedback would be greatly appreciated.
Thanks,
The Dragon Book is a must read if you want to write a compiler.
Everyone I know rants and raves about Modern Compiler Construction in C, although the Java version usually gets more credit. However if you want a more C++ focused book you can't go wrong with Writing Compiler and Interpreters.

coding mental block, wants inspiration from beautiful coding [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I'm having a coding mental block and wish to draw inspiration from other's coding. Where can I find beautiful coding (elegant, succinct, self-documenting) to refresh my mind. Github can be a place to start but I don't know authors to look for.
Perhaps not what you had in mind, but the book Beautiful Code is certainly worth consideration.
In addition to the other post, I'd add maybe checking out some other languages. You'll find beautiful concepts and new ways to program in Scheme, Haskell, Ocaml, Clojure, Erlang, etc... Some of those languages have features which you can apply to C++, and some of them make really nice examples in their implementation.