SlideShare a Scribd company logo
Смирнов Андрей
mail@ansmirnov.ru
Язык программирования Тьюрингол
Машина Тьюринга
Машина Тьюринга
Машина Тьюринга инкрементирующая
двоичное число
Q = {0, 1, 2}
Σ = {'0', '1', '_'}
q_begin = 0
q_end = -1
Грамматика языка Turingol
Letter ::= a | b | c | d | e | f | g | h | i | g | k | l | m | n | o | p | q | r | s |
t | u | v | w | x | y | z
Identifier ::= Letter Letter*
Declaration ::= tape alphabet is Identifier (, Identifier)*
PrintStatement ::= print "Identifier"
MoveStatement ::= move (left | right) one square
GoStatement ::= go to Identifier
ConditionalStatement ::= if the tape symbol is Identifier
then Statement
LabeledStatement ::= Identifier : Statement
CompoundStatement ::= { ListOfStatement }
ListOfStatement ::= Statement (; Statement)*
Statement ::= (PrintStatement | MoveStatement | GoStatement
| ConditionalStatement | LabeledStatement
| CompoundStatement)?
Program ::= Declarations ; ListOfStatements
tape alphabet is zero, one, blank;
walk:
if the tape symbol is "blank"
then go to findzero;
move right one square;
go to walk;
findzero:
if the tape symbol is "zero"
then {print "one"; move right one square; go to writezero};
if the tape symbol is "blank"
then {print "zero"; go to findzero};
move left one sqaure;
go to findzero;
writezero:
if the tape symbol is "one"
then {print "zero"; move right one square; go to writezero}
Лексический анализ
Синтаксический анализ
print 'one'
➲ A → a;
…
➲ A → z;
➲ I → A;
➲ I → IA;
➲ S → print 'I';
Применение семантических правил
➲ A → a;
● text(A) = a
…
➲ A → z;
● text(A) = z
➲ I → A;
● text(I) = text(A)
➲ I → IA;
● text(I) = text(I) text(A)
➲ S → print 'I'
● define δ(start(S), s) =
(symbol(text(I)), 0,
follow(S))
for all s in Σ
Литература
➲ Donald E. Knuth, Semantics of Context-Free Languages,
Springer-Verlang, 1967.
➲ Donald E. Knuth, The Art of Computer Programming, I,
Addison-Wesley, 1968.

More Related Content

Viewers also liked

Collective nouns
Collective nounsCollective nouns
Collective nounsmoonai
 
оновлене портфоліо
оновлене портфоліооновлене портфоліо
оновлене портфоліоannajni
 
ORGANIC CONTAMINANTS By Waqas Azeem
ORGANIC CONTAMINANTS By Waqas AzeemORGANIC CONTAMINANTS By Waqas Azeem
ORGANIC CONTAMINANTS By Waqas Azeem
Waqas Azeem
 
Look walkers in hyderabad & secunderabad
Look walkers in hyderabad & secunderabadLook walkers in hyderabad & secunderabad
Look walkers in hyderabad & secunderabad
I Need Digital Advertising Works
 
Land Grabbing; silent pain for smallholder farmers in Uganda.
Land Grabbing; silent pain for smallholder farmers in Uganda.Land Grabbing; silent pain for smallholder farmers in Uganda.
Land Grabbing; silent pain for smallholder farmers in Uganda.
Dr. Joshua Zake
 
Danh gia-cac-trang-web
Danh gia-cac-trang-webDanh gia-cac-trang-web
Danh gia-cac-trang-webheocon020192
 
Photo sebar brosur malang
Photo sebar brosur malangPhoto sebar brosur malang
Photo sebar brosur malang
Bagus Bagus
 
LG Display & LG CNS 북미사이트제안 re_11.08.12
LG Display & LG CNS 북미사이트제안 re_11.08.12LG Display & LG CNS 북미사이트제안 re_11.08.12
LG Display & LG CNS 북미사이트제안 re_11.08.12지환 윤
 
Resumen detallado y análisis espacio-temporal de "EL NOMBRE DE LA ROSA" (Yago...
Resumen detallado y análisis espacio-temporal de "EL NOMBRE DE LA ROSA" (Yago...Resumen detallado y análisis espacio-temporal de "EL NOMBRE DE LA ROSA" (Yago...
Resumen detallado y análisis espacio-temporal de "EL NOMBRE DE LA ROSA" (Yago...
Univ. of Boston
 

Viewers also liked (15)

Collective nouns
Collective nounsCollective nouns
Collective nouns
 
Baocaotiendo
BaocaotiendoBaocaotiendo
Baocaotiendo
 
оновлене портфоліо
оновлене портфоліооновлене портфоліо
оновлене портфоліо
 
Baocaotiendo
BaocaotiendoBaocaotiendo
Baocaotiendo
 
ORGANIC CONTAMINANTS By Waqas Azeem
ORGANIC CONTAMINANTS By Waqas AzeemORGANIC CONTAMINANTS By Waqas Azeem
ORGANIC CONTAMINANTS By Waqas Azeem
 
Ochuvatly
OchuvatlyOchuvatly
Ochuvatly
 
Look walkers in hyderabad & secunderabad
Look walkers in hyderabad & secunderabadLook walkers in hyderabad & secunderabad
Look walkers in hyderabad & secunderabad
 
Land Grabbing; silent pain for smallholder farmers in Uganda.
Land Grabbing; silent pain for smallholder farmers in Uganda.Land Grabbing; silent pain for smallholder farmers in Uganda.
Land Grabbing; silent pain for smallholder farmers in Uganda.
 
Danh gia-cac-trang-web
Danh gia-cac-trang-webDanh gia-cac-trang-web
Danh gia-cac-trang-web
 
Informatika
InformatikaInformatika
Informatika
 
Bigspeech2
Bigspeech2Bigspeech2
Bigspeech2
 
Photo sebar brosur malang
Photo sebar brosur malangPhoto sebar brosur malang
Photo sebar brosur malang
 
Bangdanhgianhucau
BangdanhgianhucauBangdanhgianhucau
Bangdanhgianhucau
 
LG Display & LG CNS 북미사이트제안 re_11.08.12
LG Display & LG CNS 북미사이트제안 re_11.08.12LG Display & LG CNS 북미사이트제안 re_11.08.12
LG Display & LG CNS 북미사이트제안 re_11.08.12
 
Resumen detallado y análisis espacio-temporal de "EL NOMBRE DE LA ROSA" (Yago...
Resumen detallado y análisis espacio-temporal de "EL NOMBRE DE LA ROSA" (Yago...Resumen detallado y análisis espacio-temporal de "EL NOMBRE DE LA ROSA" (Yago...
Resumen detallado y análisis espacio-temporal de "EL NOMBRE DE LA ROSA" (Yago...
 

Recently uploaded

Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
Neo4j
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
DianaGray10
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Vladimir Iglovikov, Ph.D.
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
Neo4j
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
Uni Systems S.M.S.A.
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
Kumud Singh
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Nexer Digital
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
Neo4j
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 

Recently uploaded (20)

Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 

Язык программирования Тьюрингол