Saskrit Parser Presentation CSE
Saskrit Parser Presentation CSE
Project Guide
Aman Singhai
World's First
Programming
Language
Index
We will first put up some concepts then employ
them1. Lexical Analysis
2. Parsing
3. Advantages of using Sanskrit
4. Approach
A. Lexical Analysis in Sanskrit
B. Parsing in Sanskrit
5. Where we are now.
Vibhakti as Pointer
Vibhakti as Pointer
Consider the Sentence
OR
Fixed Morphology
Approach
eg: "!
present-tense,first-person,singular
::: Instrumental,Singular,
Approach(coding concept)
Lexical Analysis
Source
program
token
Lexical Analyzer
Parser
getNextToken
Symbol
table
To semantic
analysis
Whats a Token?
English:
noun, verb, adjective,
In
sanskrit language:
Vibhakti, kriya, vishashena, ..
17
Lexical Analyzer:
Implementation
2.
18
Lookahead
2.
Even
LEXICAL ANALYSIS
LEXICAL ANALYSIS
Consider the dhatu(verb root) meaning to
heat
The following inflections are analyzed lexically HEATS
, , " |
" |
, , |
|
, ,
HEATED
, , |
WILL HEAT
, ,
, ,
, ,
HEAT IT(order)
, , "
LEXICAL ANALYSIS
Consider the noun representing God
The following inclusions are possible
1. Nominative (subject)
2. Accusative (object)
3. Instrumental (by)
4. Dative(to)
5. Ablative(from)
6. Genitive(of)
7. Locative(in)
LEXICAL ANALYSIS
Input Sentence
Tokenize
Avyaya Analysis
Verb Analysis
Noun Analysis
Unknown word(add to database)
Parsing
Parser operations:
Report errors
Build IR
Automation:
1.
2.
3.
Simplicity of design
Improving translator efficiency
Enhancing translator portability
Boy reads
chapter
S O V
S
V
O
Thank You