Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class LLSVX extends LX01Object {
- public checkSyntax (File f) {
- String syntax = "";
- for (String s : Files.readAllLines(f.toPath())) syntax = syntax.concat(s);
- checkSyntax(syntax, f.getName());
- }
- public checkSyntax (String syntax, String name) {
- String moduleName = name.substring(0, name.lastIndexOf(".") - 1);
- ArrayList<String> lines = Arrays.asList(syntax.split("\n"));
- for (String s : lines) {
- if (s == "") {
- lines.remove(s);
- } else if (s.startsWith("$")) {
- if (s.startsWith("$define")) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement