Mercurial Hosting > nabble
view src/nabble/view/web/template/NamlTest.java @ 62:4674ed7d56df default tip
remove n2
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sat, 30 Sep 2023 20:25:29 -0600 |
parents | 7ecd1a4ef557 |
children |
line wrap: on
line source
package nabble.view.web.template; import java.net.URL; import fschmidt.util.java.IoUtils; import nabble.naml.dom.Naml; import nabble.naml.dom.ParseException; public final class NamlTest { public static void main(String[] args) throws Exception { for( URL url : IoUtils.getResources(NamlTest.class) ) { String name = url.toString(); if( name.endsWith(".naml") ) { String content = IoUtils.read(url); try { Naml.parser().parse(content); } catch(ParseException e) { throw new RuntimeException("failed to parse "+name,e); } } } } }