first steps of the lexer
This commit is contained in:
@@ -0,0 +1,9 @@
|
|||||||
|
public class Lexer {
|
||||||
|
Lexer(String src_in) {
|
||||||
|
System.out.println(src_in);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void run() {
|
||||||
|
System.out.println("Lexer runs.");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
public class LexerTestApp {
|
||||||
|
public static void main(String[] Args) {
|
||||||
|
// Meldung bei Programmaufruf
|
||||||
|
System.out.println("Lexer Test App.");
|
||||||
|
|
||||||
|
Lexer this_Lexer = new Lexer("index = 2 * count + 42;");
|
||||||
|
this_Lexer.run();
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user