Ambiguous Programming Language Grammars

  Рет қаралды 9,302

Mary Elaine Califf

Mary Elaine Califf

Күн бұрын

Пікірлер: 30
@OneT0One
@OneT0One 2 жыл бұрын
This channel deserves more views and subscribers.
@maryelainecaliff
@maryelainecaliff 2 жыл бұрын
Thank you for the compliment. I'm glad you're finding it useful.
@ollysalanson9452
@ollysalanson9452 2 жыл бұрын
I'm finding your videos to be extremely clear and helpful, thank you!!
@maryelainecaliff
@maryelainecaliff 2 жыл бұрын
Glad to hear it.
@hexinhu2591
@hexinhu2591 2 жыл бұрын
Dr.Califf, your video is so amazing and extremely helpful! Thank you so much for your work, and I am so appreciate!
@maryelainecaliff
@maryelainecaliff 2 жыл бұрын
I'm glad you found it helpful. I appreciate the kind words.
@BeatSlayer
@BeatSlayer 2 жыл бұрын
I wish that my UNI teacher were as passionate and good at teaching as you are. Liked and subbed.
@maryelainecaliff
@maryelainecaliff 2 жыл бұрын
I appreciate the compliment.
@gandalfgrey91
@gandalfgrey91 11 ай бұрын
I’m finding this series to be a very helpful supplement to Compiler Construction by Niklaus Wirth
@maryelainecaliff
@maryelainecaliff 11 ай бұрын
I'm glad. These few grammar videos provide some things that are foundational for building a compiler.
@NgabiranoMarvinArthur
@NgabiranoMarvinArthur 6 күн бұрын
I need to know when do we include "term" and "factor" in the parse tree and how are they used.
@maryelainecaliff
@maryelainecaliff 5 күн бұрын
That is purely a matter of looking at the grammar. Each parent and its children must match one of the rules for that nonterminal. And reading across the leaves of the tree from left to right, you must have the "sentence" that you're trying to parse. If both of those things are true, you have a correct parse tree.
@TheLesbianseagull69
@TheLesbianseagull69 2 жыл бұрын
If Texas Tech had professors like you I'd be programming spaceships to Mars. Your videos are great thanks!
@maryelainecaliff
@maryelainecaliff 2 жыл бұрын
I'm glad you found the videos helpful.
@siyabongampongwana990
@siyabongampongwana990 5 ай бұрын
Thank you for the video, really appreciate it.
@maryelainecaliff
@maryelainecaliff 5 ай бұрын
Glad it was helpful!
@everdrone97
@everdrone97 Жыл бұрын
Thank you for the super helpful content! I’m finding some difficulty on deciding how to correctly disambiguate and parse unary and binary operators, or infix and prefix/suffix Specifically the minus and negation operator (-) Do you have some insights or resources I can consult to better understand how to disambiguate them?
@maryelainecaliff
@maryelainecaliff Жыл бұрын
Telling unary minus from binary in an infix setting is usually straightforward, because it's a matter of whether you have operands on both sides. The unary minus will always be preceded by nothing or another operator. That does mean that a language using - for both unary minus and the subtraction operator is not actually a purely context-free grammar.
@blameItleaveit
@blameItleaveit 2 жыл бұрын
Thank you so much for the videos, it's really profound. I have one question: On slide's third statement of Dangling else, can you please explain automatic match part
@maryelainecaliff
@maryelainecaliff 2 жыл бұрын
What is meant is just that many languages (including Java and C/C++) take an ambiguous if-else and just automatically match the else to the most recent if. So if I have if (condition1) if (condition2) doStuff1(); else do Stuff2(); the else will match up to the second if, not the first. If both conditions are true, we call doStuff1(). If the first is true and the second is false, we call doStuff2(). If the first condition is false, we do nothing. I hope that helps.
@muhammetrasitsen4441
@muhammetrasitsen4441 Жыл бұрын
I find your videos very helpful
@maryelainecaliff
@maryelainecaliff Жыл бұрын
I'm glad.
@meow-iskander
@meow-iskander 2 жыл бұрын
Nice video!
@maryelainecaliff
@maryelainecaliff 2 жыл бұрын
Thanks!
@djameldjamel3241
@djameldjamel3241 2 жыл бұрын
Thank you so much🙏, it really helped me to understand ... (^_^). I hope you upload the next video soon.
@maryelainecaliff
@maryelainecaliff 2 жыл бұрын
Thanks. I'm glad it was helpful. The next video will be on hashing in the data structures playlist, but there will eventually be more on programming language concepts
@InferiorPotassium93
@InferiorPotassium93 Жыл бұрын
You make really good content. Well done
@maryelainecaliff
@maryelainecaliff Жыл бұрын
I appreciate that!
Function Activation Records
13:08
Mary Elaine Califf
Рет қаралды 4,9 М.
Introduction to Grammars and BNF
14:49
Mary Elaine Califf
Рет қаралды 69 М.
Turn Off the Vacum And Sit Back and Laugh 🤣
00:34
SKITSFUL
Рет қаралды 8 МЛН
Yay😃 Let's make a Cute Handbag for me 👜 #diycrafts #shorts
00:33
LearnToon - Learn & Play
Рет қаралды 117 МЛН
Симбу закрыли дома?! 🔒 #симба #симбочка #арти
00:41
Симбочка Пимпочка
Рет қаралды 5 МЛН
2 Years of C++ Programming
8:20
Zyger
Рет қаралды 7 М.
Parse Trees
8:37
Mary Elaine Califf
Рет қаралды 29 М.
Functional Parsing - Computerphile
22:46
Computerphile
Рет қаралды 138 М.
Resolving Ambiguous Grammar using Operator Precedence
9:28
TutorialsPoint
Рет қаралды 22 М.
Backus-Naur Form
7:44
0612 TV w/ NERDfirst
Рет қаралды 82 М.
Turn Off the Vacum And Sit Back and Laugh 🤣
00:34
SKITSFUL
Рет қаралды 8 МЛН