Console #8: Let's Make a Teeny Tiny Compiler, Part 3

  Рет қаралды 844

Jackson Kelley

Jackson Kelley

Күн бұрын

Пікірлер: 6
@muhamadarif7895
@muhamadarif7895 3 жыл бұрын
I have an error in my file like error : compiler need source file as argument, how to solve this problem?
@astongoldsmith2396
@astongoldsmith2396 4 жыл бұрын
Jackson i download whole content from github and open my PyScripter in potable python on windows then try to run file teenytiny.py from folder part3 then i receive error message about sys.argv is not 2 ..why is that ? i mean all files are there lex.py parse.py emit.py are in same folder ? .................................................................................................. def main(): print("Teeny Tiny Compiler") if len(sys.argv) != 2: sys.exit("Error: Compiler needs source file as argument.") with open(sys.argv[1], 'r') as inputFile: input = inputFile.read()
@jacksonk
@jacksonk 4 жыл бұрын
You need to pass a source file you want to compile
@astongoldsmith2396
@astongoldsmith2396 4 жыл бұрын
That is great man,,is there a way that this small compiler work on Windows too? Also do you can show simple mandelbrot dractal with 3 while loop?
@jacksonk
@jacksonk 4 жыл бұрын
Since the compiler is written in Python and compiles to C, it can run anywhere Python and C run, which includes Windows :)
@astongoldsmith2396
@astongoldsmith2396 4 жыл бұрын
@@jacksonk Ok I will try with Portable Python .
Console #9: An Intro to Compilers
11:30
Jackson Kelley
Рет қаралды 510
HELP!!!
00:46
Natan por Aí
Рет қаралды 73 МЛН
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 8 МЛН
1, 2, 3, 4, 5, 6, 7, 8, 9 🙈⚽️
00:46
Celine Dept
Рет қаралды 106 МЛН
Trapped by the Machine, Saved by Kind Strangers! #shorts
00:21
Fabiosa Best Lifehacks
Рет қаралды 41 МЛН
Zig for Impatient Devs
9:48
Isaac Harris-Holt
Рет қаралды 103 М.
If __name__ == "__main__" for Python Developers
8:47
Python Simplified
Рет қаралды 414 М.
zig will change programming forever
9:34
Low Level
Рет қаралды 346 М.
Console #10: Javascript, Interpreted or Compiled? the Debate Is Over
13:31
BEST WAY to make Desktop Applications in C++
26:00
The Cherno
Рет қаралды 934 М.
Compilers, How They Work, And Writing Them From Scratch
23:53
Adam McDaniel (kiwi)
Рет қаралды 219 М.
HELP!!!
00:46
Natan por Aí
Рет қаралды 73 МЛН