Grammar development using antlr

Închis Postat la acum 5 ani S-au achitat serviciile după ce au fost prestate
Închis S-au achitat serviciile după ce au fost prestate

Need a grammar that switches between 2 languages , when compiling the .java file it must be able to recognize if the input file provided at the run time is correct for the language on which we are invoking. i.e while entering the executable java after javac success, u need to mention the language and the input file as CMD arguments, based on the 1st argument, a decision will be made as to which part of the garmmar needs to be executed i.e language 1 or 2 , then checks if the input file is written in that particular language and if it is in that language execute the file or else throw an error. Error must be thrown at the 1st encounter of different language. For instance the input1 file and input 2 file for language 1 and language 2 respectively, the variable declarations syntax may be same , but the print statement may be different, if while executing java file if u give the executable command to be lang1 file2, with content in file be variable declaration follwed by a print statement, AS the variable declaration of lang1 and lang2 are same 1st line should be executed properly, displaying the declaration , As the syantax of lang1 print statement is not the same for the file 2 print statement syntax, it should print error message, incase of any conditions statements for the right language with right input, the condition needs to be executed and content in the condition if true ,needs to be also executed.

Programare C Java Python Arhitectură software x86/x64 Assembler

ID Proiect: #18320390

Detalii despre proiect

2 propuneri Proiect la distanță Activ acum 5 ani

2 freelanceri plasează o ofertă medie de 38$ pentru proiect

readymakers

I am confident I am the right candidate for this project as I have done many similar projects in the past. With years of experience in this field, I believe this project will be very easy for me.

$50 USD în 25 zile
(5 recenzii)
3.2
anshsparkle

HELLO I CAN START RIGHT NOW - I AM EXPERT IN C Programming Java and I BET YOU CANNOT FIND BETTER FREELANCER THAN ME ... pLEASE MESSEGE ME AND LETS DISCUSS THE THINGS THANKS

$25 USD în 1 zi
(2 recenzii)
1.9