Logo
Explore Help
Sign In
miloignis/kraken
1
0
Fork 0
You've already forked kraken
Code Issues Pull Requests Packages Projects Releases Wiki Activity
Files
fa35a29b41b032152dc04a357495646b0efe48d5
kraken/stdlib/util.krak

13 lines
179 B
Plaintext
Raw Normal View History

Fixed some bugs in Parser::firstSet and added a bit of caching. It still doesn't work quite right, though, there's some problem with nullable left recursion. However, it's better than it was, and I need to go to bed. More work later.
2014-06-30 01:57:50 -07:00
Declarations are now written |type| identifier;, generally. Functions are similar |void| func() {}, etc. Special declarations still work, etc
2014-08-01 00:45:48 -07:00
template<T> |T| greater(|T| a, |T| b) {
Fixed some bugs in Parser::firstSet and added a bit of caching. It still doesn't work quite right, though, there's some problem with nullable left recursion. However, it's better than it was, and I need to go to bed. More work later.
2014-06-30 01:57:50 -07:00
if (a > b)
return a;
return b;
}
Declarations are now written |type| identifier;, generally. Functions are similar |void| func() {}, etc. Special declarations still work, etc
2014-08-01 00:45:48 -07:00
template<T> |T| lesser(|T| a, |T| b) {
Fixed some bugs in Parser::firstSet and added a bit of caching. It still doesn't work quite right, though, there's some problem with nullable left recursion. However, it's better than it was, and I need to go to bed. More work later.
2014-06-30 01:57:50 -07:00
if (a > b)
return b;
return a;
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 128ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API