first steps of the lexer

This commit is contained in:
SinusFox
2023-06-08 15:26:01 +02:00
parent 894ca9c2cf
commit 02b3792e08
2 changed files with 18 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
public class Lexer {
Lexer(String src_in) {
System.out.println(src_in);
}
public void run() {
System.out.println("Lexer runs.");
}
}
+9
View File
@@ -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();
}
}