ข้ามไปยังเนื้อหา

ไวยากรณ์ (BNF) และสัญชาตญาณ reverse polish

แนะนำใหม่
เอกสารประกอบการเรียน
บทเรียนวิดีโอสำหรับหัวข้อนี้ เปิดหน้าวิดีโอ
13:59

ทรัพยากร คอมไพเลอร์ และ RPN

เปิดเบราว์เซอร์Playersเพลง และเกม คุณมีโปรเซสเซอร์เพียงตัวเดียว — หรือบางทีก็หลายคอร์ — แต่ทั้งหมดดูเหมือนจะทำงานพร้อมกัน และทั้งหมดต้องการมากกว่านั้น…

บรรยายภาษาอังกฤษ · สลับคำบรรยายภาษาอังกฤษและภาษาจีนได้

ในบทเรียนนี้

บทเรียนวิดีโอ
คำศัพท์
English ความหมาย
expression/ekˈspreʃn/A combination of values, variables and operators representing a quantity or a value to be evaluated.
operator/ˈɒpəreɪtə/Symbols or keywords specifying operations to perform on values or expressions.
operandsValues used by an operation to produce a result.
evaluate/ɪˈvæljuːeɪt/To work out the value of an expression.
stack/stæk/A last-in, first-out data structure in which items are added and removed at the same end.
Java Virtual MachineA system that runs Java bytecode using a stack for operations.
bytecode interpretersPrograms that read and carry out instructions written as bytecode.
postfix/ˈpəʊstfɪks/แบบต่อท้าย
precedence/ˈpresɪdəns/ลำดับความสำคัญ
grammar/ˈɡræmə/ไวยากรณ์
syntax diagram/ˈsɪntæks ˈdaɪəɡræm/แผนภาพไวยากรณ์
Reverse Polish Notation/rɪˈvɜːs ˈpəʊlɪʃ nəʊˈteɪʃn/สัญกรณ์โพลนด์กลับด้าน
Backus-Naur Form/ˈbækəs nɔː fɔːm/รูปแบบแบคกัส-นาออร์
tokens/ˈtəʊkənz/The meaningful units identified during lexical analysis, such as identifiers, keywords, operators and literals.
production rules/prəˈdʌkʃn ruːlz/กฎการผลิต
terminal/ˈtɜːmɪnl/สัญลักษณ์สิ้นสุด
non-terminal/nɒn ˈtɜːmɪnl/สัญลักษณ์ไม่สิ้นสุด
Recursion/rɪˈkɜːʃn/The use of a rule inside its own definition to express repetition.
identifier/aɪˈdentɪfaɪə/A name used to identify a program element such as a variable, function or class.
railroad diagramA picture that shows the valid sequences allowed by a grammar.
loop/luːp/A structure that repeats a sequence of instructions.
string/strɪŋ/A sequence of characters treated as a single data value.
Infix/ˈɪnfɪks/A way of writing expressions with each operator between its operands.
pop/pɒp/To remove and return the item at the top of a stack.
higher or equal precedenceDescribes an operator that has the same or greater priority than another.
push/pʊʃ/To add an item to the top of a stack.
stack machineA machine that uses a stack to hold values while carrying out operations.
lookahead/ˈlʊkəhed/The act of checking later items before deciding what to do with the current item.

เอกสารประกอบการเรียน

IGCSE, A-Level & AP