Commit Graph

3046 Commits

Author SHA1 Message Date
gingerBill
34788bfced Merge branch 'master' of https://github.com/odin-lang/Odin 2020-12-13 17:09:47 +00:00
gingerBill
cffbd2d276 Add odin/parser/parse_files.odin 2020-12-13 17:09:41 +00:00
gingerBill
9250e4d3df Merge pull request #810 from oskarnp/fix-math-factorial
Fix math.factorial()
2020-12-13 11:17:59 +00:00
Oskar Nordquist
60b9ef1f5d Fix math.factorial() 2020-12-13 02:36:29 +01:00
gingerBill
f64584b92a Improve -insert-semicolon rules 2020-12-09 23:40:45 +00:00
gingerBill
9eb12889f4 Merge branch 'master' of https://github.com/odin-lang/Odin 2020-12-09 23:35:14 +00:00
gingerBill
6f6a3f2ccf Fix typos for -insert-semicolon 2020-12-09 23:35:08 +00:00
gingerBill
a574ebe5ec Merge pull request #805 from DanielGavin/master
small fixes to the parser
2020-12-09 23:22:11 +00:00
gingerBill
9be0272c13 Merge pull request #806 from arqv/nix
Add Nix derivation
2020-12-09 23:21:21 +00:00
Lyla Bravo
5923470e35 Add Nix derivation 2020-12-09 18:51:37 -03:00
DanielGavin
934809397f small fixes to the parser 2020-12-09 21:33:10 +01:00
gingerBill
b6aa549eb8 Fix typo 2020-12-08 17:01:28 +00:00
gingerBill
168532ae8d Add runtime.print_strings 2020-12-08 17:01:06 +00:00
gingerBill
d7a5767aa3 If ir_type_requires_mem_zero is stored with zero, don't store again with the zeroinitializer 2020-12-08 15:43:57 +00:00
gingerBill
15bf57e4e1 Fix typo 2020-12-08 15:03:46 +00:00
gingerBill
83cd2473f2 Improve rules for zeroing types with the ir.cpp backend with ir_type_requires_mem_zero 2020-12-08 15:00:07 +00:00
gingerBill
510d1f2518 Add docs to text/scanner 2020-12-07 12:43:28 +00:00
gingerBill
7b55068b04 Unify peek_n with peek and renamescan_peek_n to peek_token 2020-12-07 12:13:41 +00:00
gingerBill
b9aa94ee0d Add scan_peek_n to package text/scanner #800 2020-12-07 11:30:54 +00:00
gingerBill
96d8971d87 Add peek_n to package text/scanner 2020-12-07 10:55:27 +00:00
gingerBill
98c8fde098 Remove unused tokens 2020-12-06 13:17:48 +00:00
gingerBill
1ac84b09a1 Add comments to ast.walk related entities 2020-12-06 13:04:11 +00:00
gingerBill
21d8562923 Add ast.walk and ast.inspect 2020-12-06 12:59:26 +00:00
gingerBill
c8360f4fff Update ast.clone 2020-12-06 12:08:44 +00:00
gingerBill
fe7e4e88c6 Merge pull request #797 from Tetralux/improve-string-parsing
Improve number parsing procedures
2020-12-06 11:43:04 +00:00
Tetralux
c06528d702 Improve number parsing procedures
- No longer returns true for partial string parsing.
  All characters in the string must be part of the number.
  i.e: parse_int("2.345") no longer returns (2, true) - it now returns (2, false)

- Return (0, false) on empty strings.
2020-12-06 11:39:03 +00:00
gingerBill
ea60db9f53 Add inline asm expression to odin/parser 2020-12-06 01:14:55 +00:00
gingerBill
dff4c6b666 Clean up logic 2020-12-06 00:59:23 +00:00
gingerBill
0e9b357a5d Fix typo 2020-12-06 00:55:31 +00:00
gingerBill
1eb1bffd89 Merge pull request #799 from odin-lang/parser-experiments
Add experimental `-insert-semicolon` functionality to tokenizer and parser
2020-12-06 00:53:52 +00:00
gingerBill
e8653ac47e Update main.cpp 2020-12-06 00:51:32 +00:00
gingerBill
f0683c9102 Merge branch 'master' into parser-experiments 2020-12-06 00:49:48 +00:00
gingerBill
ca4657fd31 Add custom semicolon insertion to odin/tokenizer and odin/parser 2020-12-06 00:47:58 +00:00
gingerBill
d94414b0f4 Correct ternary if/when parsing 2020-12-06 00:15:35 +00:00
gingerBill
80fead1de5 Add ast.Selector_Expr_Call 2020-12-06 00:03:45 +00:00
gingerBill
069c6cac3f Add package name and source code location to Type_Info_Named 2020-12-05 20:47:50 +00:00
gingerBill
1a8ea6113a Remove hash field in runtime.Source_Code_Location 2020-12-05 19:52:08 +00:00
gingerBill
76e6624dbb Remove type name generation for procedures in ir.cpp 2020-12-05 19:21:00 +00:00
gingerBill
09a52b7ee6 Fix typos 2020-12-05 16:56:09 +00:00
gingerBill
7b36174c17 Fix formatting 2020-12-05 16:38:26 +00:00
gingerBill
a82c902f99 Minor correction to bytes.Buffer's vtable 2020-12-05 15:36:02 +00:00
gingerBill
14ae2e0a8d Add bufio.Writer and bufio.Read_Writer 2020-12-05 15:14:21 +00:00
gingerBill
2ab6cdb98e Add package bufio; add bufio.Reader 2020-12-05 12:03:57 +00:00
gingerBill
21c1abe15a Add fmt formatting for runtime.Source_Code_Location 2020-12-05 12:03:38 +00:00
gingerBill
4c41045133 Fix typo in package io 2020-12-05 12:03:07 +00:00
gingerBill
0ed1300bd6 Make bytes.Reader and strings.Reader have the same interface 2020-12-04 21:25:13 +00:00
gingerBill
dd63665b58 Update bytes.Reader 2020-12-04 20:33:14 +00:00
gingerBill
9b22583397 Add bytes.Buffer 2020-12-04 20:18:41 +00:00
gingerBill
63f2480951 Begin work on package bytes ([]byte equivalent of package strings) 2020-12-04 19:16:40 +00:00
gingerBill
edbb3e3b32 Fix typos 2020-12-04 18:53:17 +00:00