diff --git a/boring/parse.py b/boring/parse.py index 0289885..ac20bf2 100644 --- a/boring/parse.py +++ b/boring/parse.py @@ -198,7 +198,9 @@ boring_grammar = r""" %import common.SIGNED_INT %import common.SIGNED_FLOAT %import common.WS + %import common.CPP_COMMENT %ignore WS + %ignore CPP_COMMENT """ next_sub_id = 0 diff --git a/examples/math/main.bl b/examples/math/main.bl index 8f75c7d..731a848 100644 --- a/examples/math/main.bl +++ b/examples/math/main.bl @@ -1,3 +1,4 @@ +// adds a and b, but also 4 for some reason fn add(a: I32, b: I32): I32 { let foo = 4; let test_float: F32 = { diff --git a/notes.txt b/notes.txt index bfe30bf..1ae8c5b 100644 --- a/notes.txt +++ b/notes.txt @@ -31,7 +31,7 @@ class TypeUsage: TODO: * ~Float Literals~ -* Block expression +* ~Block expression~ * Return keyword * Structs * Generics