added comments

This commit is contained in:
Andrew Segavac
2021-05-29 12:16:03 -06:00
parent 03fb361e0b
commit 806835f2b9
3 changed files with 4 additions and 1 deletions

View File

@@ -198,7 +198,9 @@ boring_grammar = r"""
%import common.SIGNED_INT %import common.SIGNED_INT
%import common.SIGNED_FLOAT %import common.SIGNED_FLOAT
%import common.WS %import common.WS
%import common.CPP_COMMENT
%ignore WS %ignore WS
%ignore CPP_COMMENT
""" """
next_sub_id = 0 next_sub_id = 0

View File

@@ -1,3 +1,4 @@
// adds a and b, but also 4 for some reason
fn add(a: I32, b: I32): I32 { fn add(a: I32, b: I32): I32 {
let foo = 4; let foo = 4;
let test_float: F32 = { let test_float: F32 = {

View File

@@ -31,7 +31,7 @@ class TypeUsage:
TODO: TODO:
* ~Float Literals~ * ~Float Literals~
* Block expression * ~Block expression~
* Return keyword * Return keyword
* Structs * Structs
* Generics * Generics