Assalamualaikum
teman-teman , hari ini saya akan membagi informasi tentang apa itu syntax ,
yuuk mari mampir di blog delvi yaa.
Pengertian
Syntax
Syntax adalah sebuah aturan yang digunakan
untuk menulis kalimat agar mampu dimengerti oleh bahasa pemrograman. Dalam
pembuatannya, seluruh aturan syntax harus terpenuhi. Karena ketika proses
kompilasi setiap barus script akan dilakukan pengecekan. Jika terdapat syntax
yang salah maka compiler akan melaporan terjadinya error massage dan tidak akan
meneruskan pembuatan bytecodenya.
Jika tidak dihubungkan dengan dunia
pemprograman, syntax adalah seperangkat aturan, prinsip, dan proses yang
mengatur struktur kalimat dalam bahasa tertentu, biasanya termasuk urutan kata.
Hal ini sesuai yang ditulis dalam wikipedia. Istilah sintaksis juga digunakan
untuk merujuk pada studi tentang prinsip dan proses tersebut. Dalam matematika,
sintaksis mengacu pada aturan yang mengatur sistem matematika, seperti bahasa
formal yang digunakan dalam logika.
Contoh
Syntax
Untuk lebih jelasnya berikut ada
beberapa contoh syntax yang dapat kamu pelajari.
A. Syntax pada Java
- Case sensitive, merupakan suatu metode penulisan syntax yang cukup sering digunakan untuk mengelompokkan penulisan huruf menjadi besar ataupun kecil. Contohnya “Double” dan “double” yang mana berbeda arti.
- Nama Class & Program, dalam penulisan nama pada Class di Java harus diawali dengan huruf capital. Contohnya “class Nama” atau “class NamaAnda”. Selain itu, nama program juga harus sama dengan nama class yang ada. Terutama pada program yang mempunyai satu class.
- Nama Method, untuk menuliskannya harus diawali dengan huruf kecil. Namun jika suatu method mempunyai nama lebih dari satu kata maka dalam kata kedua harus diawalai huruf capital. Contohnya “public void methodSaya”.
- Main Method, main method ini wajib dimiliki oleh class yang hendak di eksekusi atau dijalanakan.
Ada dua bagian kalimat yang sangat
penting dalam menganalisis syntax, yaitu: frasa dan klausa.
- Frasa (Phrase)
Frasa merupakan sekelompok kata yang
mempunyai fungsi sebagai suatu unit pada sebuah kalimat (suatu kelompok kata
yang membentuk unit gramatikal). Frasa (Phrase) terbagi dalam beberapa, yaitu;
1.
Frasa
Nomina (Noun Phrase)
Frasa
nomina adalah frasa yang berasal dari kata benda (nouns) yang berfungsi sebagai
subjek atau objek kalimat. Frasa nomina adalah suatu nomina atau pronominal
yang didahului oleh determinan atau kata sandang atau suatu nomina yang
didahului oleh satu atau lebih adjektiva yang keseluruhanya didahului kata
sandang. Contoh :
1) The
Doctor
det noun
2) A beautiful girl
2) A beautiful girl
det adjective noun
2. Frasa Verba (Verb Phrase)
Frasa verba merupakan frasa yang
terdiri dari gabungan kata kerja bantu (axiliary verb) dengan kata kerja
(verbs). Frasa verba adalah verba yang berfrasa. Frasa verba terdiri dari frasa
tunggal yang terkadang merupakan gabungan dari main verb ( verba utama) dan
auxiliary verb ( kata kerja bantu), namun dapat pula ditambahkan specifiers,
complements, dan adjuncts. Contoh :
Binar has
taken the job.
aux verb
He has been
coming late everyday.
aux verb
3. Frasa Adjektiva (Adjective
Phrase)
Frasa kata sifat atau adjektiva
adalah frasa yang berasal dari kata sifat yang digunakan untuk memberi sifat
kepada kata benda (nouns) atau kata ganti (pronoun).
Tony lost his dark brown briefcase.
AdjP
4. Frasa Adverbial (Adverb Phrase)
Frasa adverbial adalah frasa yang
berfungsi sebagai kata keterangan yang digunakan untuk menerangkan kata kerja
(verbs).
Mika usually
gets up early.
AdvP
AdvP
5. Frasa Preposisi (Prepositional
Phrase)
- Klausa (Clause)
Klausa bebas (main clause) adalah
klausa bebas (independent clause) yang terdapat di dalam sebuah kalimat majemuk
(complex sentence).
- Klausa Bebas (Independent Clause)
Klausa bebas adalah klausa yang mempunyai
struktur lengkap dan berpotensi menjadi kalimat mayor.
2. Klausa Terikat (Dependent Clause)
Klausa terikat adalah klausa yang
mempunyai struktur tidak lengkap, biasanya disertai unsur-unsur konjungsi
subordinatif. Klausa terikat juga dapat didefinisikan sebagai klausa yang tidak
dapat berdiri sendiri sebagai kalimat sempurna, hanya mempunyai potensi sebagai
kalimat tidak sempurna. Dilihat dari fungsinya, klausa terikat ini dapat
dibedakan, yaitu;
- Klausa Nomina (Noun Clause)
Klausa yang bertindak sebagai nomina ditandai dengan adanya wh-words, how, dan that. - Klausa Adjektiva (Adjective
Clause)
Klausa terikat yang bertindak sebagai adjektiva ditandai dengan adanya relative pronoun, yaitu who, whom, which, whose, dan that. - Klausa Adverbial (Adverbial
Clause)
Klusa terikat yang bertindak sebagai adverbial ditandai dengan subordinate conjunction
Kesimpulan :
Menurut saya dari pembahasan sebelumnya , kita bias mengetahui bahwa
syntax adalah cabang yang membicarakan kalimat dengan segala bentuk dan
unsur-unsur pembentuknya. Tiga kajian syntax yakni : frase, klausa, dan
kalimat. Salah satu definisi syntax menurut para ahli yaitu ilmu yang
mempelajari hubungan antara kata atau frase , klausa atau kalimat yang satu
dengan kata atau frase (clausa atau kalimat yang lain atau tegasnya mempelajari
seluk beluk frase, klausa , kalimat, dan wacana.
Hai Delvi,just want to advise you, to change your blog background. because when the color of your writing is green and red. it disturbs the reader's vision
BalasHapushello shella, thank you for the suggestion, sorry for making you hurt my eyes to the light colored writing, maybe next time I will change the writing in black, so that your eyes do not hurt when reading on my blog
Hapusokay, thanks for the advice sheila, maybe I'll fix it
BalasHapusmy advice to you, change the background so it doesn't look boring when read π
BalasHapusokay shinta, thanks for the suggestion, maybe I will change the background of my blog so that you don't get bored reading my blog
Hapussorry delvi, but i think you have misunderstood about your material. what we discuss is about syntax in linguistics not in programming. btw, what is subordinat conjunction?
BalasHapushello vira, is that correct, oh I'm sorry for not researching what the contents of my blog are, maybe I'm too panicked I think I'm wrong
HapusAfter i read your blog, i think you need to improve the contents of your blog, because I don't understand what you want to share. It looks like you provide information about syntax from two different branches of science. So, my advice for you are try to understand syntax in linguistics before you share it on your blog and it would be better if you share the sources of the information too.
BalasHapusGood luck and fighting del.. ππ
Thank you Monaπ€
HapusHello Monalisa, I accept your suggestion, maybe I'm not careful enough and don't really understand Syntax, that's why I chose the wrong topic, once again I apologize to you
HapusCan you explain to me what examples of syntax in java are like?
BalasHapusThe example of syntax in Java :
HapusBreak
Definition: The keyword that functions to continue the statement block
Use: Used to continue the execution of a program immediately after the current attaching block or statement if followed by a label.
Syntax: break;
Example:
class TestBreak {
public static void main (String [] args) {
System.out.println ("Before for");
for (int x = 0; x <10; x ++) {
if (x == 4)
break;
System.out.pritnln ("Value x:" + x);
}
System.out.println ("After For");
}
}
fithing fithing fithing. we fithing together, not fight each otherππ I know Im awkwardπ
BalasHapusback to my advice, u need to improve u're template del. so that u're readers happy to read. and for u're content, make a simple summary please.
okay thanks for the advice kak rindi, I will try to make an interesting and understanding summary so that readers do not get bored reading this blog
HapusHm... Thats a good content.
BalasHapusBut I can't find the different of your blog and your friends blog who have same topic with you.
Try to write something with your own.
No copypaste again. But, thats not to bad.
okay thank you generous, maybe I have a lot to learn more so that I write the content with my own understanding and so that you also understand my blog content
HapusYour blog simple and i like. Thankf for information
BalasHapusthank you ririn fildasari for the comments, but in my opinion this is not how much the others, maybe the others are more interesting than me
HapusSo useful, thanks for sharing
BalasHapushello wan, thank you for coming to my blog, and you think it is very valuable and I am very happy to share information with you
HapusAfter i read n look your blog. I feel sick perut
BalasHapusmaybe because you haven't eaten from last night, so you have a stomachache seeing my blog, but my feeling is that my blog is good, next time if you read a blog, eat there first
HapusUnclear.
BalasHapusHow does the syntax word order not comply with syntax rules?
yes, in my opinion it can't be said syntax because it doesn't obey the syntax rules, because if we don't obey the syntax rules our talk will be messy
HapusI DONT understand it ..
BalasHapusHello Mary, try to explain what you don't know, maybe I will help you a little and will also understand what I'm saying
HapusHi Delvi! very ordinary, bored reading itπͺ
BalasHapushello sahara, I understand what you mean, but I will be as much as possible will make you not bored to read my blog
HapusHeii jiminn. What is the reason you chose the material?
BalasHapushello fina, the reason I chose this syntax is because I want to understand the syntax material such as grammar, subject and predicate, so that I am not mistaken in using the syntax sentence
HapusHello sis delvi,what is the difference between syntax and morphology?
BalasHapusSyntax is the grammar that is related to words in speech. Same is the case with morphology, but morphology requires grammatical structure in words. Language elements included in syntax are phrases, kalusa, and sentences. Speech in this case asked what people say in sentence form.
HapusI do not understand, can you explain what is meant by error massage and bytecode?
BalasHapusIf there is an incorrect syntax, the compiler will report an error massage and will not continue making the bytecode. might be wrong with the use of the syntax sentence.
Hapushallo Delvi! I want to give a suggestion to change the theme or change your background, so it looks more interesting when read
BalasHapushello bg rilla, i accept your suggestion, maybe i will change my background will be more interesting so you don't get bored to read and come to my blog
Hapushai delvi!!!your blog is so interesting i love it so much . i get the materi from your information thanks a lot yaaa
BalasHapushello yeyen, thank you for coming to my blog, i am very happy if you are happy and understand what i explained on my blog, thank you again yeyen
HapusYour template very flat like your content sorry delvy
BalasHapusok thanks yusfia for the bully, i really appreciate your bully, but next time your mouth will be guarded
HapusDelvi,really short, the theme is like wood, i don't like it☹️
BalasHapusoh really, but in my opinion my explanation is very long, and also other readers also feel bored by reading my blog, what do you think, do you read my blog while sleeping?
HapusHallo delvi .
BalasHapustry to give examples of noun clause?
Noun / noun = the smallest unit and can stand alone as an answer to a question and function as a subject, object and complement.
HapusAs subject = Reno studied. (Reno as subject in sentence).
As Objects = my teacher learns to the students. (The student as an object in the sentence)
As a Compliment = the woman who invited me yesterday was Jenny
I think your blog is incomplete because it is very short, I suggest you can add a little more of your knowledge about syntax
BalasHapusHi Delvi! I wanna ask to you
BalasHapusWhat is the meaning of grammatical?
Hallo delvi?how are u
BalasHapusThe bacgroun is dark,so bad
Your template so simple, you can ask your friend to help you make beautiful template. I know you tried, keep fight!
BalasHapusHuhu, same our topic Delvi. I like your blog
BalasHapusWhat are u thinking when you write this blog? Why your explanation is so long and not interest? I think people like you is better to write the diary not blog! Cause how the way you give the explanation and anything you mention in this blog is so bad and anybody to come here will not catch the point in this blog cause the explanation is very b ajahhh and its better if they not see the bad blog like this
BalasHapusHii delviiππgreetings from meπyour explain detail but i think so long explain πand make we read your blog bored,i am so sorry,i think you just explain the impirtant point of thatπbtw we have same topicπ
BalasHapusHi delvi. Your explanation is quite long. Hehe..but unfortunately in Bahasa sis. Maybe next time you need to explain more in English. Need to practice and practice, right. No improvement without practing through the tasks. Please try to do it next time delvi. π€
BalasHapusHi again delvi. Above, you have written about Adverb Clause as dependent clause. Can you give the examples about it? Is it all the adverb clause see as the dependent clause? Or not?
BalasHapusKomentar ini telah dihapus oleh pengarang.
BalasHapusHi delvi πΈhow are you ? Are you okay ? I hope yes, but your readers aren't okay delvi π its too long and not interesting π and you use Indonesian, you choose English as your major right ? But you still use Indonesia to explain about it on your blog π too bad π
BalasHapusHi Delvi!
BalasHapusmay I know where you got your topic reference from? Did you get references from books or websites? π Please tell me yes. And if you got it from Twitter, can you give me the link? Thank you, honey, see you later, honey π. Reply
Hello delvi!
Hapusi come back again in your blog to see have you given answer of my question . But you still did not give answer of my questionπ΄π΄. Maybe right now you are still busy that is why you have no time to answer my question. But it is oke i will wait you. Hope you can answer my question after you are not busy againππ
Hello delvii..
BalasHapusI have question for you delviπ
What is the difference about adverbial phrasa and adjective phrasa? Is not adverbial phrasa contain adjective? Please explain it delviπ
Hi delvi. Wow..You have long explanation about Syntax.Your writing here is focus more on students and teachers usage of Syntax. How about in Business?or Politics? How do you see these?
BalasHapushaii Delvi Yeni π I'm Lia silveria sinaga ππ this is the first I'm visit to your blog ππ and i have seen your presentation in here ππ i think your presentation is very boring ππ very long ππ make me lazy to read it ππ and i think, I'm reading a journal ππ boring once πππ sorry delvi Yeni π
BalasHapusI have the question To you Delvi yeni ππ is what makes you interested in choosing this topic? in linguistics there are still many other branches, so why did you choose it? and what made you interested in this topic? can you explain? thanks delvi yy ππ
BalasHapusi like your template! its simple yet eye catching. but maybe you need to work with your text alignments and indentation to make it easier to read. i also quite tickled when i see the post title in english while the whole post is in bahasa. you also need to work on that. other than that, i like it. keep it going.
BalasHapusHi, i need to point out that its a bit annoying when i see the title is in english but the whole post is in bahasa. maybe you can make it in english version so other than understanding the material, we also improve our way to understan written english. thank you.
BalasHapushi!, i think its important to change the language to english since we're studying english. it could improve our skill to translate and we can also understanding the subject in english.
BalasHapusKomentar ini telah dihapus oleh pengarang.
BalasHapushi delvi Yeni πππ I'm lia silveria sinaga ππ why did you use Indonesian in your explanation? You English department at UNILAK, Right? so .. why do you use Indonesian? here on your blog, you can also train yourself to write in English, it is very good in adding to your vocabulary Delvi Yeni ππ I'm seriously π you can try it delvi π i hope π
BalasHapushiii..hi.. Hi.. Hi..Delvi Yeniiii ππ I'm coming back to your blog πππ I hope you don't get bored to respond to me ππ how are you delvi ? what's wrong with you? Why don't you reply my comments delvy ? are you okay right? I Hope you will be fine ππ and immediately reply to my comments okayy ππ thank you delvy ππ
BalasHapusAnd then delvy πππ It seems you should try delvy πππ Very useful at all ππ Say hope you start trying it π Fighting delvy yeny ππ you can do it hopefully suggest from me can increase your enthusiasm and try it on your next blog later πππ okayy have a nice day Delvy yeni ππ
BalasHapusI have the question To you delvy,,, the questions is what makes you interested in choosing this topic? in linguistics there are still many other branches, so why did you choose it? and what made you interested in this topic? can you explain? thanks Delvy yeniππ ππ I hope you can respon me ππ
BalasHapusHello,Delviπππ i wanna ask you, the distinction between grammar and syntax has been somewhat disrupted by recent research in lexicogrammar. Can you give the grammar rules for syntax? Thank you, I'll waiting for your answer.
BalasHapusAre you making this blog while taking LSD and edible marijuana at the same time? It’s a disaster. Pull it togheter please. No one would read yor blog if you keep doing these things. #bully #peace
BalasHapusI can make a better posts than this one even when im in 3rd grade. No one would read yor blog if you keep doing these kind of mistakes. Please learn more about writing and many more blogging kind of things. #bully #peace
BalasHapusHello Delvi. This posting is need more information and you also not use any media like power point or video to explain your topics. So it will make the people who reads fell bored.
BalasHapusKomentar ini telah dihapus oleh pengarang.
BalasHapusYou also post with Indonesia Language even though you are student of English department also know this is Linguistics course, one of English majors courses. Please change the language okay.
BalasHapusdelvi I want to ask, are there experts who study about the science of this syntax? who are they ?
BalasHapusnothing interesting here, flat template, no moving animations or widgets. please add it to make it more interesting
BalasHapusmy advice for you, add a widget in your blog. look for resources on how to make a blog look more unique and interesting
BalasHapus