+ 2

How to use token in java?

I want to write a simple compiler .. How i can use token to define variable ? I want a short simple code to understarnd how i should be define my tokens.. have any other ways to do it?

2nd Jun 2018, 7:10 AM
Zahra
Zahra - avatar
10 Réponses
+ 2
Donna It should be write in java thank you for your help 😁
2nd Jun 2018, 9:07 AM
Zahra
Zahra - avatar
+ 1
Donna Thank you, but i want a simple code to understand how i should be define my token for example i have two variable (int , float ) How i can define my token?
2nd Jun 2018, 8:42 AM
Zahra
Zahra - avatar
+ 1
Donna this is a code in java I want to write a compiler for my own languges what i should be do now?
2nd Jun 2018, 8:55 AM
Zahra
Zahra - avatar
+ 1
Donna not a special languges this just have two types of variables and print something its a academic project
2nd Jun 2018, 8:59 AM
Zahra
Zahra - avatar
0
no im write c#
2nd Jun 2018, 7:50 AM
Nicola